Basic Data Structures – 1 – 1

1. main ( ) is an example of :

(a) header 
(b) statement
(c) library function
(d) user defined function 

ANSWER

EXPLANATION

2. A global variable is a variable :

(a) declared in the main ( ) function.
(b) declared in any function other than the main ( ) function.
(c) declared outside the body of every function.
(d) declared any where in the C program.

ANSWER

EXPLANATION

3. While incrementing a pointer, its value gets increased by the length of the data type to which it points. This length is called :

(a) scale factor
(b) length factor
(c) pointer factor
(d) increment factor

ANSWER

EXPLANATION

4. The first digit of a decimal constant must be :

(a) a zero
(b) a non zero number
(c) a negative number
(d) an integer

ANSWER

EXPLANATION

5. What is the output of the following statement :

printf (“%-3d”,12345);

(A) 1 2 3
(B) -1 2 3
(C) 1 2 3 4 5
(D) 12  

ANSWER

EXPLANATION

1 2

Be a Part of The New & Next

MCQs fb  MCQs G+

Share the Knowledge

Shares
Copy Protected by Chetan's WP-Copyprotect.