logo

Pearson Edexcel GCSE (9-1) Computer Science practice

Consider the expression: `(VAL1 > VAL2) OR (VAL3 == 10)`. If VAL1 is 5, VAL2 is 8, and VAL3 is 10, what is the result?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Algorithms

Exam-style question

Try this first

Consider the expression: `(VAL1 > VAL2) OR (VAL3 == 10)`. If VAL1 is 5, VAL2 is 8, and VAL3 is 10, what is the result?.

  1. A.TRUE
  2. B.FALSE
  3. C.Error
  4. D.5

Answer and explanation

Concise answer

TRUE

Why this is correct

VAL1 > VAL2 (5 > 8) is FALSE. VAL3 == 10 (10 == 10) is TRUE. FALSE OR TRUE evaluates to TRUE.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions