C Programming MCQ Questions and Answers on Data Types and Storage Classes 1

Image

Learn C Data Types and Storage Classes with MCQ Questions and Answers. Find questions on types of Storage Classes like Life, Scope and the default value of variables. Easily attend exams after reading these Multiple Choice Questions.

Go through C Theory Notes on Data Types and Storage Classes before studying questions.



1) Identify wrong C Keywords below.
A) auto, double, int, struct
B) break, else, long, switch
C) case, enum, register, typedef
D) char, extern, intern, return
Answer [=]
Answer[=]
2) Identify wrong C Keywords below.
A) union, const, var, float
B) short, unsigned, continue, for
C) signed, void, default, goto
D) sizeof, volatile, do, if
Answer [=]
Answer[=]
3) Identify wrong C Keywords below.
A) static, while, break, goto
B) struct, construct, signed, unsigned
C) short, long, if, else
D) return, enum, struct, do
Answer [=]
Answer[=]
4) Find a correct C Keyword below.
A) breaker
B) go to
C) shorter
D) default
Answer [=]
Answer[=]
5) Find a correct C Keyword below.
A) work
B) case
C) constant
D) permanent
Answer [=]
Answer[=]
6) Find a correct C Keyword.
A) Float
B) Int
C) Long
D) double
Answer [=]
Answer[=]
7) Types of Integers are.?
A) short
B) int
C) long
D) All the above
Answer [=]
Answer[=]


 

8) Types of Real numbers in C are.?
A) float
B) double
C) long double
D) All the above
Answer [=]
Answer[=]
9) signed and unsigned representation is available for.?
A) short, int, long, char
B) float, double, long double
C) A & B
D) None of the above
Answer [=]
Answer[=]
10) Size of a Turbo C C++ compiler is.?
A) 16 bit
B) 32 bit
C) 64 bit
D) 128 bit
Answer [=]
Answer[=]
11) Size of a GCC or Visual Studio C Compiler is.?
A) 16 bit
B) 32 bit
C) 64 bit
D) 128 bit
Answer [=]
Answer[=]
12) Sizes of short, int and long in a Turbo C C++ compiler in bytes are.?
A) 2, 2, 4
B) 2, 4, 4
C) 4, 8, 16
D) 8, 8, 16
Answer [=]
Answer[=]
13) Sizes of short, int and long in Visual Studio or GCC compiler in bytes are.?
A) 2, 2, 4
B) 2, 4, 4
C) 4, 4, 8
D) 4, 8, 8
Answer [=]
Answer[=]
14) Range of signed char and unsigned char are.?
A) -128 to +127 0 to 255
B) 0 to 255 -128 to +127
C) -128 to -1 0 to +127
D) 0 to +127 -128 to -1
Answer [=]
Answer[=]


 

15) Ranges of signed int and unsigned int are.?
A) 0 to 65535 -32768 to +32767
B) -32768 to +32767 0 to 65535
C) -32767 to +32768 0 to 65536
D) 0 to 65536 -32767 to +32768
Answer [=]
Answer[=]
16) Size of float, double and long double in Bytes are.?
A) 4, 8, 16
B) 4, 8, 10
C) 2, 4, 6
D) 4, 6, 8
Answer [=]
Answer[=]
17) Range of singed long and unsigned long variables are.?
A) -2147483647 to +2147483648 0 to 4294967295
B) -2147483648 to +2147483647 0 to 4294967296
C) -2147483648 to +2147483647 0 to 4294967295
D) 0 to 4294967295 -2147483648 to +2147483647
Answer [=]
Answer[=]
18) Range of float variable is.?
A) -3.2e38 to +3.2e38
B) -3.8e32 to +3.8e32
C) -3.4e34 to +3.4e34
D) -3.4e38 to +3.4e38
Answer [=]
Answer[=]
19) Left most bit 0 in Singed representation indicates.?
A) A Positive number
B) A Negative Number
C) An Unsigned number
D) None of the above
Answer [=]
Answer[=]
20) If you do not specify a storage class for a Variable.?
A) You get compiler error.
B) You get a compiler warning.
C) Output is null always
D) None of the above
Answer [=]
Answer[=]


Like or Share

Show some care. Like or Subscribe. [FB]...[Youtube]

C MCQ App by ExamTray 

Android APP

Java MCQ App by ExamTray 

Android APP
ALL MCQ App by ExamTray Android APP

Ad

 

Some good C Books

Book Price
1. C: The Complete Reference  Check Price
2. Let Us C Check Price
3. Programming in ANSI C Check Price
4. The C Programming Language Check Price

We may get some affiliate commission for the above purchases.