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
D
Explanation:
'intern' is not a keyword. Remaining are all valid keywords.
Explanation:
'intern' is not a keyword. Remaining are all valid keywords.
2) Identify wrong C Keywords below.
A) union, const, var, floatB) short, unsigned, continue, forC) signed, void, default, gotoD) sizeof, volatile, do, if
A
"var" is not a Keyword
"var" is not a Keyword
3) Identify wrong C Keywords below.
A) static, while, break, gotoB) struct, construct, signed, unsignedC) short, long, if, else
D) return, enum, struct, do
B
"construct" is not a Keyword
"construct" is not a Keyword
4) Find a correct C Keyword below.
A) breakerB) go toC) shorterD) default
D
5) Find a correct C Keyword below.
A) workB) caseC) constantD) permanent
B
6) Find a correct C Keyword.
A) FloatB) IntC) LongD) double
D
7) Types of Integers are.?
A) shortB) intC) longD) All the above
D
8) Types of Real numbers in C are.?
A) floatB) doubleC) long doubleD) All the above
D
9) signed and unsigned representation is available for.?
A) short, int, long, charB) float, double, long doubleC) A & BD) None of the above
D
Real numbers like float, double and long double do not support unsigned representation.
Real numbers like float, double and long double do not support unsigned representation.
10) Size of a Turbo C C++ compiler is.?
A) 16 bitB) 32 bitC) 64 bitD) 128 bit
A
11) Size of a GCC or Visual Studio C Compiler is.?
A) 16 bitB) 32 bitC) 64 bitD) 128 bit
B
12) Sizes of short, int and long in a Turbo C C++ compiler in bytes are.?
A) 2, 2, 4B) 2, 4, 4C) 4, 8, 16D) 8, 8, 16
A
13) Sizes of short, int and long in Visual Studio or GCC compiler in bytes are.?
A) 2, 2, 4B) 2, 4, 4C) 4, 4, 8D) 4, 8, 8
B
14) Range of signed char and unsigned char are.?
A) -128 to +1270 to 255B) 0 to 255-128 to +127C) -128 to -10 to +127D) 0 to +127-128 to -1
A
15) Ranges of signed int and unsigned int are.?
A) 0 to 65535-32768 to +32767B) -32768 to +327670 to 65535C) -32767 to +327680 to 65536D) 0 to 65536-32767 to +32768
B
16) Size of float, double and long double in Bytes are.?
A) 4, 8, 16B) 4, 8, 10C) 2, 4, 6D) 4, 6, 8
B
17) Range of singed long and unsigned long variables are.?
A) -2147483647 to +21474836480 to 4294967295B) -2147483648 to +21474836470 to 4294967296C) -2147483648 to +21474836470 to 4294967295D) 0 to 4294967295-2147483648 to +2147483647
C
18) Range of float variable is.?
A) -3.2e38 to +3.2e38B) -3.8e32 to +3.8e32C) -3.4e34 to +3.4e34D) -3.4e38 to +3.4e38
D
19) Left most bit 0 in Singed representation indicates.?
A) A Positive numberB) A Negative NumberC) An Unsigned numberD) None of the above
A
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 alwaysD) None of the above
D