Internet of Things (CS3100) Retest Nov 2024 Question Paper
RV University Retest exam for Internet of Things (CS3100), held Nov 2024, semester 5, with 15 questions. Also searched as IOT. Last updated 2026-11-14.
Questions
1. Give the output printed by the code given below.import numpy as npnpStrDef = np.dtype([('name', 'S5'), ('id', 'i4'), ('score', 'f8')]npData = np.array([(b'Alice', 42, 95.5)], dtype=npStrDef)print('Item Size:', npData.itemsize)print('Array Size:', npData.nbytes)print('Value:', npD
2. With a neat diagram explain how messages are transmitted in AMQP using publish subscriber model.
3. Consider the following C code, which is executed on a 64-bit system.Assume that the variable data is located at the memory address0x7FFFC1234560.int main() {float data = 3.14;float fPtr;fPtr = &data;fPtr++;data += 1.0;printf("The values in fPtr = %p and data = %.2f ", fPtr, data)
4. In the below given codeoutputtensor = np.array([0.1, 0.7, 0.2]) Sample outputprobabilities = np.exp(outputtensor) / np.sum(np.exp(outputtensor))topprediction = np.argmax(probabilities)Explain how the softmax probabilities are calculated and why np.argmaxis used to select the top
5. Examine the relationship between input size and the number of weights in a fully connected layer.
6. In which scenarios would you use Binary Cross-Entropy versus Categorical Cross-Entropy for a car classification model?
7. What is overfitting and underfitting in a network in terms of model size?
8. How is MAE calculated, and when would you prefer to use MAE over MSE?
9. Briefly describe the stages of TFLite Model Conversion.
10. The function initfResult sets the fResult array to zero before each prediction. Explain why this is necessary. What would happen if this step were skipped?void initfResult(float fResult){for(int i = 0; i < NUMBEROFOUTPUTS; i++){fResult[i] = 0.0f;}
11. The input features (price, maint, doors, etc.) of car model are encoded as one-hot vectors in the input arrays (input1, input2, etc.). Explain why one-hot encoding is used here and describe an alternative encoding method that could be applied to these features.
12. Briefly describe the benefits of MQTT protocol.
1. Draw the layered architecture of IoT and give a short description on each of the layers mentioning their responsibilities.
2. With an example Illustrate How does the field number affect data retrieval from ThingSpeak on ESP32?
3. Explain the purpose of Serial.begin(115200); in the setup function. Why is this important for IoT devices like the ESP32?