Internet of Things (CS3100) CIE 2 Oct 2024 Question Paper
RV University CIE 2 exam for Internet of Things (CS3100), held Oct 2024, semester 5, with 15 questions. Also searched as IOT. Last updated 2026-11-14.
Questions
1. For the below given code, write the shape of the arrayarr1 = np.array([[1, 2, 3, 5, 8]])arr2 = np.array([[1,2]])print("arr1 shape ", arr1.shape)print("arr2 shape ", arr2.shape)
2. What will be the contents of row and column variables?a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])row = np.array([0,1,2])column = np.array([1,0,2])result = a[row, column]print(result)
3. What will be printed by the code given below?npIntStrDef = np.dtype([('integer', 'i4'), ('string', 'S5')]npData = np.array([(1, b'hello')], dtype=npIntStrDef)print('Item Size:', npData.nbytes)print('Value:', npData)
4. What is the output of this program and values in the result array?A = np.ones((3, 4, 1))B = np.zeros((1, 4, 5))result = A + Bprint("result shape: ", result.shape)print("result dim: ", result.ndim)
5. L1 = [1, 4, 5, "Hi", 5.0, 7]L2 = [6.0, 7.0, 'Hello', 8.0]for elem in L1:for x in L2:if type(elem) == type(x):print(elem, x)What will be printed by this program?Note: Order of the output also matters.
6. Assume that you have task1 and task2 that are expected to run most of the time in your application, which is ported to ESP32.How do you create these tasks using FreeRTOS APIs that would make your application run efficiently?Note: You don’t have to give all the parameters of the A
7. Give the IoT application scenarios where you would choose NB-IoT over other wireless technologies based on its features.
8. What are the four important characteristics of WSN? Give a short description on each.
9. void myFnchar(void) {char Arr[] = "abcdefgh";char cp = (char ) Arr;(cp + 2) = (cp + 5);cp++;(cp + 2) = (cp + 5);printf("Arr: %s ", Arr);}What will be printed by the above function?
10. In the given C program below, what will be printed? Assume that this is running on a 32-bit system.signed short sShortVal = 0xA234;signed int sIntVal = sShortVal;unsigned short uShortVal = 0xA234;unsigned int uIntVal = uShortVal;printf("sIntVal = %X, uIntVal = %X ", sIntVal, uInt
11. void inferenceEngine(void) {float position = staticcast(inferencecount) / staticcast(kInferencesPerCycle);xval = position kXrange;yvals.yactual = sin(xval);yvals.ypred = predict(xval);bool res = xQueueSend(xQHandle, &yvals,pdMSTOTICKS(2000));if (!res) {printf("MsgQ: Failed to sen
12. Explain how different packages such as Keras, TensorFlow and NumPy packages are integrated within the Python environment to enable ML model development.
13. a) Explain the steps involved in writing and converting a complex wave generation model developed in Python to be run on ESP32 only for inferencing. – 2 marksb) Mention couple of ways you would exploit the features of ESP32 to run the inference engine efficiently on ESP32. – 1 ma
14. a) Write a note on the rules governing the broadcasting feature of NumPy that works on multi-dimensional arrays of NumPy. – 2 marksb) Give couple of examples explaining the rules – 1 mark
15. Draw the layered architecture of IoT and give a short description of each of the layers mentioning their responsibilities.