Basic Data Structures – 1 – 1

1. main ( ) is an example of :

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

Answer
Answer : (c)

Explanation
No answer description available for this question. Let us discuss.

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
Answer : (c)

Explanation
No answer description available for this question. Let us discuss.

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
Answer : (d)

Explanation
No answer description available for this question. Let us discuss.

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
Answer : (d)

Explanation
No answer description available for this question. Let us discuss.

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
Answer : (c)

Explanation
No answer description available for this question. Let us discuss.

1 2

General Knowledge Books

Be a Part of the New & Next

MCQs fb  MCQs G+

Share the Knowledge

MORE INFORMATION
GATE Total InfoGATE 2020 BooksFree Notes
IES Total InfoIES 2020 BooksFree Mock tests
JAM Total InfoJAM 2020 BooksEngg Diploma
PSUs Total InfoM Tech Total InfoUGC NET Total Info
Copy Protected by Chetan's WP-Copyprotect.