Declarations and Initializations - Point Out Correct Statements Multiple Questions and Answers.




1.Which of the declaration is correct?
A. int length;
B. char int;
C. int long;
D. float double;

2.Which of the following operations are INCORRECT?
A. int i = 35; i = i%5;
B. short int j = 255; j = j;
C. long int k = 365L; k = k;
D. float a = 3.14; a = a%3;

3.Which of the following correctly represents a long double constant?
A. 6.68LF
B. 6.68f
C. 6.68L
D. 6.68

4.Which of the structure is incorrect?
1.   struct aa
      {
       int a;
       float b;
      };


2.
struct aa { int a; float b; struct aa var; };

3.
struct aa { int a; float b; struct aa *var; };
A. 1
B. 2
C. 3
D. 1, 2, 3

5.Which of the structure is correct?
A. 1
B. 2
C. 3
D. All of above

»



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