WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 15)
- If the operand is multiple of 2 then one bit Right Shift operation >> is equivalent to ?
- Division by 2
- Adding 2
- Subtracting 2
- Multiplying by 2
Answer: A
Explantion: None - Which datatype permit access to same memory locations in multiple ways ?
- pointer
- array
- union
- structure
Answer: C
Explantion: None - Which operator is used to turn OFF a particular bit in a number ?
- | OR operator
- ~ TILDE operator
- & AND operator
- ^ Exclusive Operator
Answer: C
Explantion: None. - what will be the result of the program ?
main()
{
printf("%d>>%d%d>>%d",8>>1,16>>1);
return 0 ;
}- 4>>8Garbage>>Garbage
- 8>>116>>1
- 4 8
- 8 116 1
Answer: A
Explantion: None - Which operator is used to turn ON a particular bit in a number ?
- | OR operator
- ~ TILDE operator
- & AND operator
- ^ Exclusive Operator
Answer: A
Explantion: None - What is the output of C Compiler compiling ?
- object code
- assembly code
- both A and B
- none of above
Answer: B
Explantion: None - What is the output of the Left Shift Operator << on (0000110<<2 span="">2>
- 0000011
- 0001100
- 1100000
- 0011000
Answer: D
Explantion: None - What is the Bitwise operator used to set a particular bit value to 1?
- ^ Exclusive OR
- ~ Operator
- | OR
- & AND
Answer: C
Explantion: None - What is the first step in C program building process ?
- library link
- preprocessing
- compiling
- assembling
Answer: B
Explantion: None - What is the output of the Left Shift Operator >> on (0000110>>1) ?
- 0000001
- 0000110
- 0000011
- 0011000
Answer: C
Explantion: None
More C programming MCQ for
0 Comments