LearnFrenzy
Sign in Take a free test

Decision Making · Exercise 1 of 4

Decision Making Decision Making MCQ

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

Twelve multiple-choice questions on truth values, De Morgan's laws, range checks, guard order, comparing strings and doubles, and choosing between if, switch and tables. Pick an option to check your answer instantly.

Question 11 Medium

Which condition is true for every int x?

A x > 5 && x < 5
B x >= 18 || x <= 60
C x == 0
D x > 0 && x < 100
Question page & discussion
Question 12 Hard

Is case 90 ... 100: valid standard C?

A Yes, since C99
B Yes, since C23
C No – case ranges are a GNU extension (proposed for the next standard); use an if-else ladder
D Only for char values
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