GkSeries.com

C Language Multiple Choice Questions with Answers

(21) Choose the option that contains only Unary operators of C:
[A] sizeof, (type conversion)
[B] short hand operator, &
[C] increment(++), >=, !
[D] ==, !=

Comment

Answer: Option [A]

The sizeof() operator is used to calculate the size of a variable. This works in single operand.

(22) Maximum value of an unsigned integer is
[A] 65535
[B] 32767
[C] -32767
[D] -65535

Comment

Answer: Option [A]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

(23) The keyword typedef is used to
[A] create a type of function
[B] define the type of function
[C] define the type of a variable
[D] create a new datatype name

Comment

Answer: Option [D]

The existing name in C program can be changed by using typedef keyword.

(24) What will happen if an element is assigned a value to an element of an array whose subscript exceeds the size of the array?
[A] It will not be allowed, but no error message will be generated
[B] Compiler will generate an error message suggesting the name
[C] The element will be assigned NULL VALUE
[D] Some other data may be overwritten

Comment

Answer: Option [D]
(25) By default a real number is treated as a
[A] float
[B] double
[C] long double
[D] integer

Comment

Answer: Option [A]

Please share this page

Chapters

Click Here to Read more questions

Teacher Eligibility Test