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

O Level Internet of Things Paper January 2023

Question: 1 Report Error

टीसीपी का मतलब है:

TCP stands for :

A)
B)
C)
D)

Question: 21 Report Error
Question: 34 Report Error

निम्नलिखित अरुडिनो कोड का परिणाम क्या है?

What is the outcome of the following Arduino code ?

void setup() {
Serial.begin(9600);
}
void setup() {
Serial.write(20);
}

A)
B)
C)
D)
Explanation

Let's analyze the provided Arduino code:

Code:

void setup() {
  Serial.begin(9600);
}

void setup() {
  Serial.write(20);
}

Explanation:

  1. Serial.begin(9600);:

    • This initializes serial communication at a baud rate of 9600 bits per second. It prepares the Arduino to send and receive data over the serial connection.
  2. Serial.write(20);:

    • Serial.write() sends data as bytes over the serial connection. It takes a single byte as an argument and sends it.
    • The argument 20 is a decimal value, which is equivalent to 0x14 in hexadecimal and 24 in binary.
    • The write() function sends this byte (value 20) to the serial port.

Outcome:

  • The code will send a byte with the value 20 (in decimal) through the serial connection.
    • This is not a string or number in octal/hexadecimal format, but the actual byte value 20.

Correct Answer:

(C) Send a byte with value 20 through the Serial pins.

Correct Answer: C) Send a byte with value 20 through the Serial pins


Question: 55 Report Error

अरुडिनो कोड की सही निष्पादन प्रक्रिया क्या है?

What is the correct execution process of an Arduino code ?

A)
B)
C)
D)

Question: 60 Report Error

MQ-135 __________ का एक प्रकार है।

MQ-135 is a type of __________.

A)
B)
C)
D)

Question: 63 Report Error
Question: 67 Report Error

Arduino क्या है?

What is Arduino ?

A)
B)
C)
D)

Question: 73 Report Error

एंबेडेड सी है:

Embedded C is :

A)
B)
C)
D)

Question: 80 Report Error

AnalogWrite() फ़ंक्शन किस प्रकार का आउटपुट सिग्नल देता है?

What type of signal does the analogWrite() function output ?

A)
B)
C)
D)

Question: 91 Report Error
Question: 92 Report Error
Question: 93 Report Error

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

What will be the output of the following code ?

#include <stdio.h>
void solve() {
char ch[5] = "abcde";
int ans = 0;
for(int i = 0; i< 5; i++) {
ans += (ch[i] - 'a');
}
printf("%d", ans);
}
int main() {
solve();
return 0;
}
A)
B)
C)
D)
Explanation

Code Breakdown:

  1. Character Array: The array ch[5] is initialized with the string "abcde", which means ch[0] = 'a', ch[1] = 'b', and so on.

  2. Loop & Calculation: The program loops through each character, subtracts the ASCII value of 'a' (which is 97) from each character, and adds the result to ans.

    • 'a'97 - 97 = 0
    • 'b'98 - 97 = 1
    • 'c'99 - 97 = 2
    • 'd'100 - 97 = 3
    • 'e'101 - 97 = 4
  3. Summing Up: The final sum of ans is 0 + 1 + 2 + 3 + 4 = 10.

Output:

The output will be 10.

Correct Answer:

(D) 10.

Correct Answer: D) 10


Question: 94 Report Error

यदि निम्नलिखित कोड के आक्षेपों की भविष्यवाणी करें वस्तु संवेदक से दूर जा रही है:

Predict the output of the following code if the object is moving away from the sensor :

int op = 7;
int isBarrier = HIGH;
void setup() {
pinMode(op, INPUT);
Serial.begin(9600);
}
void loop() {
isBarrier = digitalRead(op);
if (isBarrier == LOW) {
Serial.println("1+");
}
else {
Serial.print("clear+");
}
delay(100);
}

A)
B)
C)
D)

Question: 95 Report Error

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

What will be the output of the following Arduino code ?

void main() {
int k = 0;
double d = 10.21;
printf(“%lu”, sizeof(k + d));
}
void loop() {}

A)
B)
C)
D)
Explanation

The code calculates the size of the result of k + d, where k is an integer and d is a double. Since adding an integer and a double promotes the result to a double, the size of the result (k + d) is 8 bytes (the size of a double on most Arduino boards). Therefore, the output is 8.

Correct answer: (B) 8.

Correct Answer: B) 8


Question: 96 Report Error

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

What will be the output of the following code ?

#include <stdio.h>
void solve() {
int b = 4;
int res = b++ + ++b + ++b;
printf("%d", res);
}
int main() {
solve();
return 0;
}

A)
B)
C)
D)
Explanation

The code calculates the result of the expression b++ + ++b + ++b, where b starts at 4:

  • b++ uses the value 4, then increments b to 5.
  • ++b increments b to 6 and uses that value.
  • ++b increments b to 7 and uses that value.

The sum is 4 + 6 + 7 = 17.

Output: (C) 17.

Correct Answer: C) 17


Question: 97 Report Error

निम्नलिखित कार्यक्रम का आउटपुट क्या है?

What is the output of the following program ?

for( ; ; )
{
Statements
}

A)
B)
C)
D)
Explanation

The given for loop has no condition, so it runs indefinitely. This creates an infinite loop, where the statements inside the loop will execute forever.

Output: (D) Both (B) and (C).

Correct Answer: D) Both (B) and (C)


Question: 98 Report Error

नीचे दिए गए कोड का उद्देश्य क्या है यदि इसे Arduino Uno पर निष्पादित किया जाता है?

What is the objective of the code given below if it is executed on the Arduino Uno ?

#include<EEPROM.h>
int pin=13;
void setup() {
pinMode(pin,OUTPUT);
Serial.begin(9600);
}
void loop() {
for(int i=0; i<EEPROM.length(); i++) {
EEPROM.write(i, 1);
}
digitalWrite(pin,HIGH);
exit(0);
}

A)
B)
C)
D)
Explanation

The code writes 1 to every byte in the EEPROM memory of the Arduino Uno, effectively filling the EEPROM with 1s. It then turns on the onboard LED (pin 13) and exits.

Objective: (B) Fill EEPROM with 1's.

Correct Answer: B) Fill EEPROM with 1's


Question: 99 Report Error

यदि वस्तु सेंसर की ओर बढ़ रही है निम्नलिखित कोड के आउटपुट की भविष्यवाणी करें।

Predict the output of the following code if the object is moving towards the sensor.

int op = 6;
int isBarrier = HIGH;
void setup() {
pinMode(op, INPUT);
Serial.begin(9600);
}
void loop() {
isBarrier = digitalRead(op);
if (isBarrier == LOW) {
Serial.println("1+");
}
else {
Serial.print("clear+");
}
delay(100);
}

A)
B)
C)
D)
Explanation

As the object moves towards the sensor, it will block it, causing the sensor to read LOW, which prints 1+. If the object moves away, it will read HIGH, printing clear+.

Output: (A) clear+clear+1+1.

Correct Answer: B) 1+1+clear+1


Related Papers



















































Latest Updates