C Language Basics - Objective Type Questions with Answers

(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

Comment

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.

Comment

Answer: Option [B]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Article and Schedule Quiz Start Test!
(28) Which of the following is not a valid relational operator?
[A] *
[B] ==
[C] >=
[D] <=

Comment

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

Comment

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

Comment

Answer: Option [C]

Take Mock Tests

Missiles Mock Test Start Test!
SSC MTS Mock Test Start Test
IBPS CLERK MOCK TEST Start Test
SSC MTS 2022 JULY 26 Shift 1 (ENGLISH) Start Test!
SSC GD Previous Year Paper 2021 Nov 17 Shift - I (Hindi) Start Test!
SSC CGL Tier - 1 PYP 2022 April 21 Shift- 1 (ENGLISH) Start Test!
MPSC PAPER I MOCK TEST 1 (ENGLISH) Start Test!
IB Security Assistant Mock test 1 (english) Start Test!
UP POLICE CONSTABLE MOCK TEST 1 Start Test!
DELHI POLICE CONSTABLE MOCK TEST 1 (HINDI) Start Test!

Chapters