Join our Telegram Channel

C Language Basics - Objective Type Questions with Answers

Questions
26 The && and || operators
A compare two numeric values
B combine two numeric valuesshort hand operator, &
C compare two boolean values
D none of these

Answer: Option [C]

The logical operators in C are &&(Logical AND), ||(Logical OR) and !(Logical NOT). They compare two boolean values.

27 In an assignment statement a=b; which of the following statement is true ?
A The variable a and the variable b are same.
B The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
C The value of b is assigned to variable a but if b changes later, it will effect the value of variable a
D The value of variable a is assigned to variable b, and the value of variable b is asssigned to variable a.

Answer: Option [B]
Advertisement

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

28 Which of the following is not a valid relational operator?
A *
B ==
C >=
D <=

Answer: Option [A]
29 Which is an incorrect variable name?
A Id_No
B ID_NO
C IdNo
D Id No

Answer: Option [D]

Because there is a blank space in the variable name, which is not permitted in C.

30 Which of the following is responsible for conversion of C programs to machine language ?
A Operating system
B An editor
C A compiler
D An interpreter

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!

Chapters