🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

O Level Internet of Things Paper July 2022 | Set 1

Question: 5 Report Error

M2M की कौन सी विशेषता नहीं है?

Which one is not the feature of M2M?

A)
B)
C)
D)

Question: 9 Report Error

निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?

int main()
{
int i = 25;
int k =i %4;
printf("%d\n", k);
}

A)
B)
C)
D)
Explanation

The given code performs a modulo operation (%) on the variable i with 4.

Code explanation:

int i = 25;
int k = i % 4;  // Modulo operation
printf("%d\n", k);  // Prints the result

The modulo operation returns the remainder when i is divided by 4.

  • 25 divided by 4 gives a quotient of 6 with a remainder of 1.

Therefore, i % 4 equals 1.

So, the correct answer is:

(A) 1.

Correct Answer: A) 1


Question: 21 Report Error

निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?

void main()
{
int x = 5*6/2 +8;
printf("%d",x);
return 0;
}

A)
B)
C)
D)
Explanation

Let's break down the code step by step:

Code:

void main()
{
    int x = 5*6/2 + 8;
    printf("%d", x);
    return 0;
}

Step-by-step calculation:

  1. 5 * 6 gives 30.
  2. 30 / 2 gives 15.
  3. 15 + 8 gives 23.

So, the value of x will be 23.

Thus, the output of the program will be:

(C) 23.

Correct Answer: C) 23


Question: 22 Report Error

निम्नलिखित Arduino कोड का आउटपुट क्या होगा?

What will be the output of the following Arduino code?

#define X 10;
void setup(){
X=0;
Serial.begin(9600);
Serial.print(X);
}
void loop(){
//Do nothing...
}

A)
B)
D)
Explanation

The given Arduino code contains an issue in the way the macro #define X 10; is defined.

Code Breakdown:

#define X 10;
void setup(){
    X = 0;  // Trying to assign a value to X
    Serial.begin(9600);
    Serial.print(X);
}
void loop(){
    // Do nothing...
}

Issue:

  • The #define directive creates a macro replacement, but the semicolon (;) at the end of #define X 10; is incorrect. It will cause the preprocessor to insert a semicolon after the value 10, leading to an issue when trying to assign a value to X in the setup() function.
  • You cannot assign a value to X since X is treated as a constant.

Output:

Due to this error in the code, there will be a compilation error.

So, the correct answer is:

(D) Error.

Correct Answer: D) Error


Question: 23 Report Error

निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?

int main()
{
int a=5;
while(a=123)
{
    printf("RABBIT\n");
}
printf("GREEN");
return 0;
}

A)
B)
C)
D)
Explanation

Let's analyze the given code step by step:

Code:

int main()
{
    int a = 5;
    while(a = 123)  // This is an assignment, not a comparison
    {
        printf("RABBIT\n");
    }
    printf("GREEN");
    return 0;
}

Key points:

  1. while(a = 123) is an assignment operation, not a comparison. The expression a = 123 assigns the value 123 to a, and the result of the assignment is the value assigned (in this case, 123), which is non-zero. In C, any non-zero value is considered true in a boolean context.

  2. Since 123 is non-zero, the while loop will run indefinitely (infinite loop), printing "RABBIT" over and over again.

  3. The printf("GREEN") will never be reached because the program is stuck in the infinite loop inside the while.

Output:

The program will print "RABBIT" an unlimited number of times, and the word "GREEN" will never be printed.

So, the correct answer is:

(A) RABBIT is printed unlimited number of times.

Correct Answer: A) RABBIT is printed unlimited number of times


Question: 24 Report Error

यदि "पिन2" को "1011" भेजा जाता है जहां 1 5V है और 0 0V है तो "पिन1" का आउटपुट क्या है?

What is the output of “pin1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V?


int pin1 = 12;
int pin2 = 11;
void setup() {
         pinMode(pin1, OUTPUT);
         pinMode(pin2, INPUT);
         Serial.begin(9600);
}
void loop() {
     if(digitalRead(pin2)==1) {
       digitalWrite(pin1,LOW);
}
else if(digitalRead(pin2)==0) {
digitalWrite(pin1,HIGH);
}
}

A)
B)
C)
D)
Explanation

The code reads the value on pin2 and sets pin1 based on that:

  • If pin2 is HIGH (5V), pin1 is set to LOW (0V).
  • If pin2 is LOW (0V), pin1 is set to HIGH (5V).

For the sequence "1011" sent to pin2:

  • pin2 = 1 (HIGH)pin1 = LOW (0V)
  • pin2 = 0 (LOW)pin1 = HIGH (5V)
  • pin2 = 1 (HIGH)pin1 = LOW (0V)
  • pin2 = 1 (HIGH)pin1 = LOW (0V)

Thus, the output of pin1 will be 0100.

The correct answer is:

(B) 0100.

Correct Answer: B) 0100


Question: 25 Report Error
Question: 26 Report Error

साक्षात्कार की तैयारी के लिए आवश्यक क्रम है:

The sequence required for the preparation of an interview is:

A)
B)
C)
D)

Question: 27 Report Error

कोड के निम्नलिखित भाग का आउटपुट क्या होगा?

What will be the output of the following piece of code?


#include <stdio.h>
int main() {
for(i = 0;i < 8; i++);
printf("%d", i);
return 0;
}
A)
B)
C)
D)
Explanation

Let's break down the given code:

Code:

#include 

int main() {
    for(i = 0; i < 8; i++);
    printf("%d", i);
    return 0;
}

Explanation:

  • The for loop:
    The for loop has a semicolon (;) after it, which means the loop doesn't contain any body (it's an empty loop). It simply increments i from 0 to 7.

  • After the loop completes, i will be 8, because the loop condition (i < 8) fails when i reaches 8.

  • The printf("%d", i); statement:
    This prints the value of i, which is 8 after the loop terminates.

Output:

So, the output of this code will be:

(C) 8.

Correct Answer: C) 8


Question: 30 Report Error

लेखन के लाभ निर्धारित करें.

Determine the benefits of writing.

A)
B)
C)
D)

Question: 36 Report Error

Arduino UNO के एनालॉग पिन समूह के लिए कौन सा गलत है?

Which one is incorrect for the Arduino UNO's analog pin group?

A)
B)
C)
D)

Question: 39 Report Error

फ़ंक्शंस के साथ C प्रोग्राम का आउटपुट क्या है?

What is the output of C program with functions?

int main() {
   int a = 0;
  printf("AJAY ");
return 1;
  printf("VIJAY");
  return 1;
}

A)
B)
C)
D)
Explanation

Let's analyze the given C program:

Code:

int main() {
   int a = 0;
   printf("AJAY ");
   return 1;
   printf("VIJAY");
   return 1;
}

Explanation:

  • The printf("AJAY "); prints "AJAY ".
  • The return 1; statement causes the program to exit the main function immediately, returning 1.
  • Since the program exits at return 1;, the line printf("VIJAY"); is never executed.

Output:

The program prints "AJAY " and then exits. The statement to print "VIJAY" is ignored because of the return 1;.

So, the correct answer is:

(B) AJAY.

Correct Answer: B) AJAY


Question: 44 Report Error

एमक्यूटीटी का अर्थ है:

MQTT stands for :

A)
B)
C)
D)

Question: 46 Report Error

एलपीडब्ल्यूएएन:

The LPWAN :

A)
B)
C)
D)

Question: 49 Report Error

GPIO का क्या मतलब है?

What does GPIO stand for?

A)
B)
C)
D)

Question: 50 Report Error

अनुरोध-प्रतिक्रिया IoT संचार मॉडल के संबंध में कौन सा कथन सत्य है?

Which statement is true in concern with Request-response IoT communication model?

A)
B)
C)
D)

Question: 56 Report Error

C प्रोग्राम का आउटपुट क्या है?

What is the output of C Program ?

int main()
{
  int k=10;
while(k <= 12)
{
     printf("%d ", k);
     k++;
}
return 0;
}

A)
B)
C)
D)
Explanation

Let's analyze the given C program step by step:

Code:

int main() {
  int k = 10;
  while (k <= 12) {
     printf("%d ", k);
     k++;
  }
  return 0;
}

Explanation:

  • Initialization: The variable k is initialized to 10.
  • The while loop runs as long as k <= 12. It will print the value of k and then increment k after each iteration.
  • The loop executes three times with k taking values 10, 11, and 12.

Iterations:

  1. First iteration: k = 10, it prints "10 ", and then k++ makes k = 11.
  2. Second iteration: k = 11, it prints "11 ", and then k++ makes k = 12.
  3. Third iteration: k = 12, it prints "12 ", and then k++ makes k = 13. The condition k <= 12 is no longer true, so the loop stops.

Output:

The program will print: "10 11 12"

So, the correct answer is:

(C) 10 11 12.

Correct Answer: C) 10 11 12


Question: 57 Report Error

DHT11 _______ है।

DHT11 is _______.

A)
B)
C)
D)

Question: 62 Report Error

आईएसएम का मतलब है:

ISM stand for :

A)
B)
C)
D)

Question: 64 Report Error

coap://localhost:4589/तापमान/temp1, यहां 4589 है:

coap://localhost:4589/Temperature/temp1, here the 4589 is :

A)
B)
C)
D)

Question: 66 Report Error

निम्नलिखित में से कौन सा सेंसर का कार्य है?

Which of the following is a function of a sensor?

A)
B)
C)
D)

Question: 71 Report Error

लिलिपैड अरुडिनो का संबंध है:

The Lilypad Arduino is concerned with:

A)
B)
C)
D)

Question: 72 Report Error

जब a = 4, तो का मान क्या है? नीचे दिए गए कथन में

When a = 4, what is the value of in the given below statement

b = (a > 6 ? 4 : 6);
A)
B)
C)
D)
Explanation

Let's break down the given statement:

Statement:

b = (a > 6 ? 4 : 6);

This is a ternary operator statement, which works as follows:

  • The ternary operator is in the form:
    condition ? value_if_true : value_if_false

  • Condition: (a > 6)
    When a = 4, the condition (a > 6) evaluates to false (since 4 is not greater than 6).

  • Result if false: The ternary operator will return the value after the colon (:), which is 6.

So, b will be assigned the value 6.

Final Answer:

When a = 4, the value of b will be 6.

The correct answer is:

(D) 6.

Correct Answer: D) 6


Question: 73 Report Error

एपीआई का मतलब है:

API stands for :

A)
B)
C)
D)

Question: 89 Report Error

सही बॉयलरप्लेट Arduino कोड ढूंढें

Find the correct boilerplate Arduino code .

A)
B)
C)
D)

Related Papers



















































Latest Updates