Floating and Decimal Data Types Multiple Questions and Answers.




11.The format identifier ‘%i’ is also used for _____ data type?
A. char
B. int
C. float
D. double

12.Which data type is most suitable for storing a number 65000 in a 32-bit system?
A. short
B. int
C. long
D. double

13.Which of the following is a User-defined data type?
A. typedef int Boolean;
B. typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
C. struct {char name[10], int age};
D. All of the mentioned

14.What is the size of an int data type?
A. 4 Bytes
B. 8 Bytes
C. Depends on the system/compiler
D. Cannot be determined.

15. What is short int in C programming?
A. Basic data type of C
B. Qualifier
C. short is the qualifier and int is the basic datatype
D. All of the mentioned

«»



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