| 1. |
Which are not looping structures?
|
||||||||
|
Answer:
Option (d) |
| 2. |
How many times the following code prints the string “hello”
for(i=1;i<=50;i++) printf(“Hello”);
|
||||||||
|
Answer:
Option (b) |
| 3. |
The first expression in a for… loop is
|
||||||||
|
Answer:
Option (b) |
| 4. |
Which among the following is a unconditional control structure.
|
||||||||
|
Answer:
Option (a) |
| 5. |
Continue statement
|
||||||||
|
Answer:
Option (b) |
| 6. |
How many times following loop will be executed?
void main()
|
||||||||
|
Answer:
Option (a) |
| 7. |
What is the output of the following code:
void main() { int i; for(i=1;i<=10;i++); printf(“%d\n”,i); }
|
||||||||
|
Answer:
Option (c) |
| 8. |
What is the output of the following code:
void main() { int i; for(i=65;i<70;i++) printf(“%c,”,i); }
|
||||||||
|
Answer:
Option (c) |
| 9. |
What is the output of following code:
void main() { int i=5; switch(i) { case 3: printf(“three”); case 4: printf(“four”); case 5: printf(“five”); case 6: printf(“six”);break; case 7: printf(“seven”); default: printf(“default”); } }
|
||||||||
|
Answer:
Option (c) |
| 10. |
What is the output? void main()
|
||||||||
|
Answer:
Option (a) |