How many types of logical operators are there used to combine multiple conditions?
A1
B2
C3
D4
Correct Answer: Option C
Note: null
MCQ 96ALL
Which logical operator is used when all the given conditions must be satisfied?
AAnd (&&)
BOR (||)
CNOT (!)
DNone of these
Correct Answer: Option A
Note: null
MCQ 97ALL
Which logical operator is used any one of the given conditions must be satisfied?
AAnd (&&)
BOR (||)
CNOT (!)
DNone of these
Correct Answer: Option B
Note: null
MCQ 98ALL
Logical expression gives an output values either β¦β¦ or β¦β¦.
ATrue or false
BYes or not
C0 or 1
DNone of these
Correct Answer: Option C
Note: null
MCQ 99ALL
Logical expression 0 refers to β¦β¦ and 1 refers to β¦β¦.
ATrue , false
BFalse, true
C0 or 1
DNone of these
Correct Answer: Option B
Note: null
MCQ 100ALL
...... operator returns 1 only if both expressions returns 1.
AAND
BNOT
COR
DAll of the these
Correct Answer: Option A
Note: null
MCQ 101ALL
C allows us to operate directly at bit level using ................ operators
ABitwise
BLogical
CArithmetic
DRelational
Correct Answer: Option A
Note: null
MCQ 102ALL
The symbol & belong to .................... and the symbol ! belong to ......... operator types in the C .
ABoth Bitwise
BBoth Logical
CBitwise, logical
DLogical ,bitwise
Correct Answer: Option C
Note: null
MCQ 103ALL
To perform bitwise AND (&), OR (!), XOR (^ Exclusive OR), left shift (<<) and right shift(>>) require β¦β¦β¦ operands.
Aone
Btwo
Cthree
Dfour
Correct Answer: Option B
Note: null
MCQ 104ALL
To perform bitwise NOT (~) requires β¦β¦β¦β¦ operand.
Aone
Btwo
Cthree
Dfour
Correct Answer: Option A
Note: null
MCQ 105ALL
Which are the different special operators available in C?
Asizeof( ) , β,β (comma) , β.β (dot) ,
Bβο β
Cβ&β (ampersand) , β * β (asterisk)
DAll of these
Correct Answer: Option D
Note: null
MCQ 106ALL
The ..... operator is used to return size of bytes required to store an entity
Asizeof < >
Bsizeof {}
Csizeof( )
DOfsize( )
Correct Answer: Option C
Note: null
MCQ 107ALL
What will be the output of sizeof(int) ?
A2
B4
C8
D16
Correct Answer: Option B
Note: null
MCQ 108ALL
What will be the output of sizeof(double) ?
A2
B4
C8
D16
Correct Answer: Option C
Note: null
MCQ 109ALL
Which expression would be evaluated first in the statement β first + second * third βfourth β?
Afirst + second
Bsecond * third
Cthird - fourth
DAny of these
Correct Answer: Option B
Note: null
MCQ 110ALL
Which expression would be evaluated first in the statement β first + second * (third βfourth) β?
Afirst + second
Bsecond * third
Cthird - fourth
DAny of these
Correct Answer: Option C
Note: null
MCQ 111ALL
How many storage classes are provides by C language?
A2 (external, internal)
B3 (Physically, logically, mentally)
C4 (automatic, external, register and static)
DNone of these
Correct Answer: Option C
Note: null
MCQ 112ALL
β¦β¦. allows users to specify the location where he/she wants to store the variable
AInternal classes
BExternal classes
CPhysical classes
DStorage classes
Correct Answer: Option D
Note: null
MCQ 113ALL
All the variables by default have storage class as β¦β¦...
AAuto
BExtern
CStatic
DRegister
Correct Answer: Option A
Note: null
MCQ 114ALL
β¦β¦ variables are created automatically when the function is called and destroyed when the function returns the control back to the calling function
AAuto
BExtern
CStatic
DRegister
Correct Answer: Option A
Note: null
MCQ 115ALL
In β¦β¦, variable is assigned zero value by default.
AAuto
BExternal
CStatic
DBoth (b) and (c)
Correct Answer: Option C
Note: null
MCQ 116ALL
In β¦β¦, variable is assigned a garbage value by default
AAuto
BExternal
CRegister
DBoth (a) and (c)
Correct Answer: Option A
Note: null
MCQ 117ALL
In β¦β¦ , variable is stored in the primary memory.
AAuto
BExternal
CStatic
DAll of these
Correct Answer: Option B
Note: null
MCQ 118ALL
Which of the following storage class is used to store the variable in the CPU registers?
AAuto
BExternal
CStatic
DRegister
Correct Answer: Option D
Note: null
MCQ 119ALL
Storage class β¦β¦.. is use to share variables between 2 different functions or programs