Selection in JavaScript (OCR A-Level Computer Science): Quizzes

📚Quizzes
Selection in JavaScript
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

7 questions from this quiz

Show

What do selection structures do in JavaScript?

Make decisions based on conditions

Which statements are used for selection in JavaScript?

if, else, and switch

What does if...else execute code based on?

A true or false condition

When is the switch statement particularly useful?

For multiple conditions

In the example, what prints if age is 18?

You are an adult.

What is a common mistake with conditions?

Not properly formatting and closing them

What do selection structures control?

Program flow based on conditions

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Flashcards by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Quizzes with us.

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