Quiz-1
Q 1. A switch statement is used to / एक स्विच स्टेटमेंट का उपयोग किया जाता है
- To use switching variable
- Switch between function in program char
- Switch from one variable to another variable
- To choose from multiple possibilities which may arise due to different values of a variable
Q 2. Data type of the controlling statement of a SWITCH statement cannot of the type: / SWITCH स्टेटमेंट के कंट्रोलिंग स्टेटमेंट का डेटा टाइप टाइप का नहीं हो सकता:
- int
- char
- short
- float
Q 3. In_______, the bodies of the two loops are merged together to from a single loop provided that they do not make only references to each other. / _______ में, दो लूपों के शरीर को एक लूप से एक साथ मिला दिया जाता है बशर्ते कि वे केवल एक दूसरे के संदर्भ में न हों।
- Loop unrolling
- Strength reduction
- Loop concatenation
- Loop jamming
Q 4. Example of iteration in C. / सी में पुनरावृत्ति का उदाहरण।
- for
- while
- do-while
- All of the mentioned
Q 5. Which of the following is correct with respect to “Jump Statements” in C? / C में "जंप स्टेटमेंट" के संबंध में निम्नलिखित में से कौन सा सही है?
- goto
- continue
- break
- All of the above
Q 6.
What is the output of this C code? / इस सी कोड का आउटपुट क्या है?
void main()
{
int i = 0;
int j = 0;
for (i = 0;i < 5; i++)
{
for (j = 0;j < 4; j++)
{
if (i > 1)
continue;
printf("Hi \n");
}
}
}
- Hi is printed 9 times
- Hi is printed 8 times
- Hi is printed 7 times
- Hi is printed 6 times
Q 7.
Choose a correct C Statement regarding for loop.
for(; ;);
लूप के संबंध में एक सही C कथन चुनें।
के लिए(; ;);
- for loop works exactly first time
- for loop works infinite number of times
- Compiler error
- None of the above
Q 8. Which are not looping structures? / कौन सी लूपिंग संरचनाएं नहीं हैं?
- For loop
- While loop
- Do...while loop
- if…else
Q 9. Which keyword can be used for coming out of recursion? / रिकर्सन से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है?
- break
- return
- exit
- Both (a) and (b)
Q 10.
How many times the program will print "Fliqi"? / प्रोग्राम कितनी बार "फ्लिकी" प्रिंट करेगा?
int main() {
printf("Fliqi");
main();
return 0;
}
- Infinite times
- 32767 times
- 65535 times
- Till stack overflows