C-Programming

11. Which of the following is not a valid control structure in C?

a) if-else

b) do-while

c) until

d) switch

View Answer >

12. What is the correct syntax to include a header file in C?

a) #include<filename>

b) include<filename>

c) #include “filename”

d) include “filename”

View Answer >

13. What is the output of the following code snippet?

#include<stdio.h>

int main()

{

   int x = 5;

   x += 3;

   printf(“%d”, x);

   return 0;

}

a) 5

b) 3

c) 8

d) 15

View Answer >

14. Which of the following is not a valid arithmetic operator in C?

a) +

b) +

c) *

d) %

View Answer >

15. What is the output of the following code snippet?

#include<stdio.h>

int main()

{

   int x = 5;

   int y = 3;

   printf(“%d”, x == y);

   return 0;

}

a) 0

b) 1

c) 5

d) 3

View Answer >

Leave a Comment

Note:- All Study Material Job Notice/Results/Exams/Marks/Admit Card published on this website is only for immediate information purpose. This information is not to be a Legal Document/Information. If in case any mistake, error and maybe wrong, then this website is not responsible. WE DONT HAVE ANY YOUTUBE CHANNEL.