C Language Multiple Choice Questions with Answers

Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

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

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

Answer: Option [A]
Advertisement
Article and Schedule Quiz Start Test!
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

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

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

Answer: Option [A]

Chapters

Assam Direct Recruitment Test Series

Computer Science Topics