page-banner
Chapter-4 (Part-2) Building IoT applications
Q1.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
int main(){
  int i = 25;
  int k = i % 4;
  printf("%d\n", k);
}
A. 1
B. 2
C. 3
D. 4
View Answer
Q2.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
void main() {
  int x = 5*6/2 + 8;
  printf("%d", x);
  return 0;
}
A. 20
B. 21
C. 23
D. 19
View Answer
Q3.
निम्नलिखित कोड का आउटपुट क्या होगा?

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. RABBIT is printed unlimited number of times
B. RABBIT GREEN
C. Compiler error
D. GREEN
View Answer
Q4.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following piece of code?
#include
int main() {
  int i;
  for(i = 0; i < 8; i++);
  printf("%d", i);
  return 0;
}
A. Zero
B. 1234567
C. 8
D. infinite loop
View Answer
Q5.
C में, आप एक एरे कैसे सेट अप करते हैं?

In C, how do you set up an array?
A. int k={3,4};
B. int k=new int[2];
C. int k[2] ={3,4};
D. int k(2)={3,4};
View Answer