Join our Telegram Channel

C programming short Questions with Answers

41 Choose the option that contains only valid hexadecimal integers.
A 0x9F, 0xbcd, 0x1
B 037, 00x, 01000
C 0x561u, 0x9h, 0xdd

Answer: Option [D]

The base of Hexadecimal number system is 16. It contains 0 to 9 and A,B,C.D,E,F to represent zero to fifteen.

42 Which of the following is not valid variable names in 'C'?
A float_int, keyword, A1
B ANSI, ascii, cpu
C valid, variable, name
D None of these

Answer: Option [D]


43 The result of a relational operator is always
A either True or False
B is less than or is more than
C is equal or less or more
D All of these

Answer: Option [A]

The relational operators in 'C' are ==, !=, >, <, >=, <=. They always results in either True or False.

44 Which of the following cannot be used as identifiers?
A Letters
B Digits
C Underscores
D Spaces

Answer: Option [D]

Variable name, function name, structure name etc. are called identifiers. Spaces are not used in names.

45 What is the return type of ftell function?
A double
B int
C long
D float

Answer: Option [C]

Take Mock Tests

Political Science Mock Test – 42 Start Test
History Test – 190 Start Test
Quantitative Aptitude Test Start Test!
Trigonometry - Mock Test Start Test!
Data Interpretation - Mock Test Start Test!
General Awareness - Mock Test Start Test!
Reasoning Ability - Mock Test Start Test!
Englist(Antonyms) Mock Test 1 Start Test!
Quantitative Aptitude (Percentage) Mock Test Start Test!
Economy Mock Test 1 Unlock Test!
Economy Mock Test 2 Unlock Test!
Economy Mock Test 3 Unlock Test!
Economy Mock Test 4 Unlock Test!
Economy Mock Test 5 Unlock Test!
Books & Authors - Test 2 Unlock Test!