LearnFrenzy
Sign in Take a free test

Bitwise Operators · Exercise 1 of 4

Bitwise Operators Bitwise Operators MCQ

  • 12 questions
  • Page 2 of 2
  • Answers explained
0Attempted
0Correct
0Wrong
Directions

Twelve multiple-choice questions on the bitwise operators, masks, shifts and their undefined cases, precedence, integer promotion and C23 literals. Pick an option to check your answer instantly.

Question 11 Medium

In C23, what is the value of 0b0001'0100?

A 10100
B 14
C 20
D A syntax error
Question page & discussion
Question 12 Hard

For unsigned char c = 0x0F;, what are the type and value of ~c?

A unsigned char, 0xF0 (240)
B unsigned int, 0xF0
C char, -16
D int, -16
Question page & discussion
Up next · Exercise 2Predict the Output12 questions

Ready to test your Programming?

Timed online tests with instant scores and explanations.

Search LearnFrenzy

Esc

Quick links