Programming for Problem Solving (3110003) MCQs

MCQs of Fundamentals of C

Showing 1 to 10 out of 107 Questions
1.

What is the starting point of c program execution?

(a)

#include

(b)

void main()

(c)

Opening curly braces '{'

(d)

None of these

Answer:

Option (b)

2.

C is a __________ language

(a)

High level

(b)

Middle level

(c)

Machine level

(d)

Low level

Answer:

Option (b)

3.

What symbol ends a statement in C program?

(a)

; (Semicolon) 

(b)

. (full stop)

(c)

: (Colon)

(d)

} (curly braces)

Answer:

Option (a)

4.

Header file is compulsory to include in a C program printing "Hello World"

(a)

True

(b)

False

Answer:

Option (a)

5.

How Many Keywords are there in C?

(a)

31

(b)

32

(c)

64

(d)

63

Answer:

Option (b)

6.

Which of the following is true for variable name in C?

(a)

Variable names cannot start with a digit

(b)

Variable can be of any length

(c)

They can contain alphanumeric characters as well as special characters

(d)

Reserved word can be used as a variable name

Answer:

Option (a)

7.

printf() belongs to which library of c

(a)

stdlib.h

(b)

stdio.h

(c)

stdout.h

(d)

stdoutput.h

Answer:

Option (b)

8.

Which of the following is a correct statement?

(a)

Variable name must start with underscore

(b)

Variable name must have digit

(c)

variable name must have white space character

(d)

Keyboard cannot be a variable name

Answer:

Option (d)

9.

Any C program

(a)

must contain at least on function

(b)

need not contain any function

(c)

needs input data

(d)

none of above

Answer:

Option (a)

10.

What should be written in the program to get newline on the screen?

(a)

printf("\n");

(b)

echo"\\n"

(c)

printf('\n');

(d)

printf("\\n");

Answer:

Option (a)

Showing 1 to 10 out of 107 Questions