Declarations and Initializations - General Questions Multiple Questions and Answers.




6.By default a real number is treated as a?
A. far double
B. long double
C. double
D. float

7.Which of the following is not user defined data type?
A. 1
B. 2
C. 3
D. All of above

8.Is the following statement a declaration or definition?

extern int i;

A. Error
B. Function
C. Definition
D. Declaration

9.Identify which of the following are declarations?

1 :extern int x;

2 :float square ( float x ) { ... }

3 :double pow(double, double);

A. 1
B. 2
C. 1 & 3
D. 3

10.In the following program where is the variable a getting defined and where it is getting declared?
A. extern int a is declaration, int a = 20 is the definition
B. int a = 20 is declaration, extern int a is the definition
C. int a = 20 is definition, a is not defined
D. a is declared, a is not defined

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers