Relational operators (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Relational operators
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

11 questions from this quiz

Show

What do relational operators return when they compare two values?

A Boolean result (True or False)

What does the << operator check?

If the first value is smaller than the second

What does the !=!= operator check?

If the values are different

What is the difference between ==== and == in programming?

==== compares, == assigns

In ASCII ordering, which type of character comes first?

Numbers (0-9)

Why is 'Apple' << 'Banana' true?

A comes before B in ASCII

Why is 'cat' >> 'Cat' true?

Lowercase c has higher ASCII value

Why is '123' << 'ABC' true?

Numbers come before letters in ASCII

What does the \geq operator check?

First value is bigger or equal to second

Which statements commonly use relational operators?

if...else and while loops

If count = 31, what does (count << 50) return?

True

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.