aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 1 - Programming and Data Structure | Computer Science
  • Which combination of the integer variables x, y and z mak...
Multiple choice

Which combination of the integer variables x, y and z makes the variable a get the value 4 in the following expression? a = (x > y) ? ((x > z) ? x : z) : ((y > z) ? y : z)

  1. x = 3, y = 4, z = 2

  2. x = 6, y = 5, z = 3

  3. x = 6, y = 3, z = 5

  4. x = 5, y = 4, z = 5

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Keep practicing — related questions

  • Suppose i, j and k are integer variables with values 1, 2, 3 respectively, what is the value of the followi...
  • Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what ...
  • Suppose a, b and c are integer variables assigned values 8, 3 and -5 respectively. In this case, the respec...
  • Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what ...
  • Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what ...
  • Which of the following expressions multiply the value of the integer variable $a by 4?
  • If i, j and k are integer variables with values 8, 15 and 4 respectively, the arithmetic expression 2 * ((i...
  • if x, y, z are Boolean variables, then
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy