Q1.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
int main(){
int i = 25;
int k = i % 4;
printf("%d\n", k);
}
View Answer
Correct Answer: 1
Q2.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
void main() {
int x = 5*6/2 + 8;
printf("%d", x);
return 0;
}
View Answer
Correct Answer: 23
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
Correct Answer: RABBIT is printed unlimited number of times
Q4.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following piece of code?
#include<stdio.h>
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
Correct Answer: 8
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
Correct Answer: int k[2] ={3,4};
Q6.
फंक्शन के साथ C प्रोग्राम का आउटपुट क्या होगा?
What is the output of C program with functions?
int main() {
int a = 0;
printf("AJAY");
return 1;
printf("VIJAY");
return 1;
}
A.
AJAY VIJAY
B.
AJAY
C.
VIJAY
D.
Compiler error
View Answer
Correct Answer: AJAY
Q7.
int a : 16; 16 यहाँ क्या दर्शाता है?
int a : 16; What does 16 indicate here?
A.
Value
B.
Size
C.
Address
D.
None
View Answer
Correct Answer: Size
Q8.
C प्रोग्राम का आउटपुट क्या है?
What is the output of C Program?
int main() {
int k = 10;
while(k <= 12) {
printf("%d ", k);
k++;
}
return 0;
}
A.
10 10 10
B.
12 12 12
C.
10 11 12
D.
12 11 10
View Answer
Correct Answer: 10 11 12
Q9.
जब a = 4, तो नीचे दी गई स्टेटमेंट में b का मान क्या होगा?
When a = 4, what is the value of b in the given statement?
b = (a > 6 ? 4 : 6);
A.
Zero
B.
Error
C.
4
D.
6
View Answer
Correct Answer: 6
Q10.
एम्बेडेड C में टर्नरी ऑपरेटर के लिये सही विकल्प चुनें:
Choose the correct option for the ternary operator in embedded C:
A.
Based on ternary condition
B.
condition? Expression1: Expression2
C.
condition? Expression1 < Expression2
D.
Similar to execution of a Loop
View Answer
Correct Answer: condition? Expression1: Expression2
Q11.
दिए गए C कोड का आउटपुट है :
The output of given C code is:
#include <stdio.h>
int main() {
int x=1, y = 1, z;
z= x++ + y;
printf ("%d, %d", x, y);
}
A.
x=1, y=1
B.
x=2, y=1
C.
x=1, y=2
D.
x=2, y=2
View Answer
Correct Answer: x=2, y=1
Q12.
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
Which of the following operators have the highest precedence?
A.
== and !=
B.
Logical
C.
Relational
D.
Arithmetic
View Answer
Correct Answer: Arithmetic
Q13.
निम्नलिखित में से कौन सा ऑपरेटर बिटवाइज ऑपरेटर नहीं है?
Which of the following operators isn't a bitwise operator?
View Answer
Correct Answer: *
Q14.
for loop में दो वैरीएबल x और y को एक साथ कैसे रन करें?
How to run two variables x and y in for loop simultaneously?
A.
for (x = 0; x
B.
for (x=0, y=0; x
C.
Both A and B
D.
for (x=0; x
View Answer
Correct Answer: Both A and B
Q15.
C में लॉन्ग इन्टिजर के printf() और wprintf() के लिए प्रयोग किये जाने वाला फॉर्मेट स्पेसीफायर है:
The format specifier for printf() and wprintf() of long integer in C is denoted as:
A.
% ld
B.
% d
C.
% li
D.
% f
View Answer
Correct Answer: % ld
Q16.
दिए गए C कोड में, लूप के लिए निष्पादित करता है:
In the given C code, for loop executes for:
#include<stdio.h>
void main () {
int x=10;
for ( ; ; ) {
printf("%d\n",x);
}
}
A.
10 times
B.
9 times
C.
infinite
D.
Zero
View Answer
Correct Answer: infinite
Q17.
हम ऐरे को कैसे प्रारम्भ कर सकते है:
How can we initialize the array?
A.
Initializing
B.
Assigning array
C.
Factoring and array
D.
Populating an array
View Answer
Correct Answer: Populating an array
Q18.
दिए गए कोड के अनुक्रमण के लिए सही विकल्प चुनें:
Choose the correct option for indexing of the given code:
int main () {
int xyz[8];
return 0;
}
A.
0, 7
B.
0, 8
C.
-1, 7
D.
1, 7
View Answer
Correct Answer: 0, 7
Q19.
एरे वाले C प्रोग्राम का सही विकल्प चुनें:
Choose the correct option of C program having array:
int main () {
int xyz (4) = [10,20,30,40];
printf ("%d", xyz (1));
}
A.
Zero
B.
Compile error
C.
10
D.
20
View Answer
Correct Answer: Compile error
Q20.
If-Else और स्विच केस स्टेटमेंट में अंतर है:
The difference in If-Else and switch case statement is:
A.
If-Else बाइनरी सर्च को लागु करता है / If-Else enforces binary search
B.
स्विच-केस लीनियर सर्च को लागु करता है / Switch-case enforces linear search
C.
If-Else के अन्दर कई डिसिशन के लिए कई स्टेटमेंट का उपयोग किया जा सकता है / Multiple statements can be used for numerous decisions inside If-Else
D.
स्विच केस के अन्दर कई डिसिशन के लिए स्टेटमेंट का उपयोग किया जा सकता है / Multiple statements can be used for numerous decisions inside switch case
View Answer
Correct Answer: If-Else के अन्दर कई डिसिशन के लिए कई स्टेटमेंट का उपयोग किया जा सकता है / Multiple statements can be used for numerous decisions inside If-Else
Q21.
एक स्थिर चर को इस प्रकार घोषित किया जा सकता है
A constant variable can be declared as:
A.
only in variable declaration area
B.
After main ()
C.
const number int
D.
#define number 35
View Answer
Correct Answer: #define number 35
Q22.
एरे के चौथे एलिमेंट तक पहुचने के लिए सही विकल्प चुनें :
Choose the correct option to access the 4th element of the array:
int z [30];
int *pz;
pz = z;
A.
*(z+3)
B.
z[3]
C.
pz[3]
D.
*(*pz+3)
View Answer
Correct Answer: *(*pz+3)
Q23.
एक सारणी अनुक्रमणिका, xyz [ ] ……. से शुरू होती है :
An array index, xyz [ ] starts with…….
View Answer
Correct Answer: Zero
Q24.
निम्नलिखित कोड का आउटपुट क्या होगा ?
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;
}
View Answer
Correct Answer: 10
Q25.
आर्डुनो कोड का सही निष्पादन प्रक्रिया क्या है ?
What is the correct execution process of an Arduino code?
A.
Pre-processor → Editor → Compiler
B.
Editor → Pre-processor → Compiler
C.
Compiler → Pre-processor → Editor
D.
Editor → Compiler → Pre-processor
View Answer
Correct Answer: Editor → Pre-processor → Compiler
Q26.
निम्नलिखित Arduino कोड का आउटपुट क्या होगा?
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.
10.21
B.
8
C.
null
D.
23
View Answer
Correct Answer: 8
Q27.
कौन सी एक नियंत्रण संरचना नहीं है ?
Which one is not a control structure?
A.
while
B.
if….else
C.
#define
D.
case
View Answer
Correct Answer: #define
Q28.
निम्नलिखित कोड का आउटपुट क्या होगा?
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;
}
View Answer
Correct Answer: 17
Q29.
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program?
for(;;){
Statements
}
A.
Error
B.
Statements will run forever
C.
This an infinite loop
D.
Both B and C
View Answer
Correct Answer: Both B and C
Q30.
किसी भी लूप को समय से पहले रोकने और केवल लूप से बाहर निकलने के लिए उपयोग की जाने वाली नियंत्रण संरचना का नाम क्या है?
What is the name of the control structure used to stop any loop prematurely and only exit out of the loop, not affecting the running of the rest of the program?
A.
The continue statement
B.
The break statements
C.
The exit statements
D.
The purge statements
View Answer
Correct Answer: The break statements