Floating and Decimal Data Types Multiple Questions and Answers.




26.What is Enum datatype syntax?
A. Enum[data type]{const1, const2, const3....}
B. Enum{const1, const2,....}
C. Enum[int datatype]
D. None

27.Character literals in C syntax are?
A. A
B. ‘A’
C. “4”
D. None

28.Range of unsigned int is?
A. 0 to 65,535 or 0 to 4,294,967,295
B. 0 to 65,535
C. 0 to 4,294,967,296
D. None of the above

29.Which is not a storage class?
A. Auto
B. Struct
C. Typedef
D. Static

30.What will be the output of the following program?

#include <stdio.h>
                              void fun()
                              {
                               fun();
                               Return 0;
                               }
                               void fun()
                               {
                                auto int I = 1;
                                register char a = ‘D’;
                                static int p = 0;
                                printf(“%d %d %ld”, I, a, p);
                                }

A. 1 D 0
B. 1 0 0
C. 0 D 1
D. 1 68 0

«



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