0% found this document useful (0 votes)
11 views

c Programming

C language MCQs format define

Uploaded by

Dipanshu THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
11 views

c Programming

C language MCQs format define

Uploaded by

Dipanshu THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
1) 2) 4) 6.) 7.) 9.) 10.) 11.) 12.) C Programming Multiple Choice Questions Developer of °C’ language is ") a.) Dennis Richie .) Bill Gates b.) Ken Thompson d.) Peter Norton C language developed in . a.) 1970 c.) 1976 b.) 1972 4.) 1980 Cis level language. a.) High c.) Middle b.) Low d.) Machine Cis available for which OS? a.) DOS c.) Unix b.) Windows 4d.) All of above Which symbol is used for pre-processor statement? a)! b)# ©) ~ a); Which of the following is a scalar data type? a.) Float c.) Array b.) Union d.) Pointer Which of the following are tokens in C? a.) Keywords c.) Constants b.) Variables 4.) All of above Which is the valid range of “int” data type? 2.) Oto 256 ¢.) 32767 to +32768 b.) -32768 to +32767 d.) No particular range Which symbol is used to terminate a statement? a)! b.) # a) a); Which escape sequence character is a line terminator? a) \a b.) \b ce) \m 4.) \n Which escape sequence character Is used to beep from speaker? a.) \a b.) \b c.) \m d.) \n Character constants should be enclosed between : a.) Single Quotes ¢.) Both A and B b.) Double Quotes d.) None of these @ scanned with OKEN Scanner String constants should be enclosed between a.) Single Quotes .) Both A and B. b,) Double Quotes d,) None of these Which of the following is invalid? a)r' bys” c) ‘a’ d.) ‘abe’ ‘The maximum length of a variable in Cis . a) 8 b.) 16 c.) 32 d.) 64 ‘The maximum size of ‘float’ variable is . a.) 1byte _b.) 2 bytes c)4 bytes d.) & bytes The maximum size of ‘double’ variable is a.) Lbyte — b.) 2 bytes c.) 4 bytes d.) 8 bytes A declaration of float a; double b; occupies of memory. a.) Lbyte b.) 6 bytes c.) 10 bytes d.) 12 bytes The size of a string variable is___. a.) Lbyte _b,)'10 bytes ©.) 20 bytes.) Not specific Which is an example of compounded assignment statement? 20.) b.)a=b c)asb=c — d.) at=10 a) ‘The operator && is used for 5 a.) Value assignment .) Logical comparison b.) Increment by 1 4.) Condition Checking ‘The operator & is used for .) Pointer to the variable a.) Bitwise AND b,) Logical AND d.) None of these ‘The equality operator is represented by : a) i= BER <= 4) 23.) 24.) Operator's precedence determines which operator is 2.) Faster .) Take no argument b.) Take less memory 4.) Evaluated first ‘The bitwise AND Is used for _- a.) Masking .) Division b,) Comparison 4d.) Shifting bits 25.) ‘The operator << Is used for 5 a.) Shifting bits to lert\ c,) Equality Checking b.) Shifting bits to right d,) None of these Which of the following has the HIGHEST precedence? a) * b.) o) = 4.) + 7S) @ scanned with OKEN Scanner 27.) 28.) 29.) 30.) 31.) 32.) 33.) 34.) 35.) 36.) 37.) 38.) 39.) 40.) ‘The associability of = operator is a.) Right to Left @) None of these b.) Left to Right d.) All of above Which operator has LOWEST priority? a) tt b.) % ©) II 40 Which operator has HIGHEST priority? a) 0 byl 6) % 6.) ++ Integer Division results in . a.) Truncating the fractional part c,) Floating value b.) Rounding the fractional part d,) An error is generated Which is a Ternary Operator? a) ?: b)* c) sizeof ds) ‘The typecast operator is __. a.) cast () ©) // b.) (data type) aj"" Explicit type conversion is known as a.) Separation b.) Casting ‘e) Conversion 4.) Disjunction b.) atd=a p++ executes faster than p=p+t because ————______. c) p+ is a single instruction a.) puses registers d.) All of above b.) ++ Is faster than + Which statement Is correct? a.) C Library functions provide b,) C inherent 1/0 facilities ¢.) C doesn’t have 1/0 facilities 4d.) Both (a) and (c) 1/0 facilities Header files in € contain ____— 2.) Compiler Commands @.) Header information of C Programs b.) Library functions d,) Operators for files Which pair Is used for single character 1/0.? a.) getchar() and putchar() ) Input() and output) b.) seanf() and printf() d.) None of these value when an error occurs, ,) Negative Value d.) None of these ‘The printf() returns a.) Positive value b,) Zero Page 3 @ scanned with OKEN Scanner

You might also like