C Program MCQ online Test 1

Please enter your email:

1. First operating system designed using C programming language.

 
 
 
 

2. The scanf() function returns …………

 
 
 
 

3. The recursive functions are executed in a ………..

 
 
 
 

4. what will be the output of the following code?

main()

{

printf(“%p”, main);

}

 
 
 
 

5. what will be the output ?

int main()

{

int x=4, y, z;

y = –x;

z = x–;

printf(“%d, %d, %d\n”, x, y, z);

return 0;

}

 
 
 
 

6. Find out the output?

int main()

{

int x = 0;

if (x++)

printf(“true\n”);

else if (x == 1)

printf(“false\n”);

}

 
 
 
 

7. Find out the output?

#include <stdio.h>

int x;

void main()

{

if (x)

printf(“hi”);

else

printf(“how are u”);

}

 
 
 
 

8. Which of the following reduces the size of a structure?

 
 
 
 

9. MS-Word is a

 
 
 
 

10. Which header file should be included to use functions like malloc() and calloc()?

 
 
 
 

basicittopic

basicittopic

A Computer Science Study for IT students and people of IT community

Leave a Reply