Search Header Logo

11.2 Constructs Cambridge iAS 9618

Authored by Stephen Ling-Winston

Computers

11th Grade

Used 2+ times

11.2 Constructs Cambridge iAS 9618
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the IF statement in pseudocode?

It allows decision-making in the program by executing a block of code if a condition is true.

It always executes a block of code regardless of a condition.

It repeats a block of code for a fixed number of times.

It assigns a value to a variable based on a condition.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid structure for an IF statement with an ELSE clause in pseudocode?

IF X > 10 THEN OUTPUT "Greater" ELSE OUTPUT "Smaller"

IF X > 10 OUTPUT "Greater" ELSE "Smaller"

IF X > 10 OUTPUT "Greater" ELSE OUTPUT "Smaller"

IF X > 10 OUTPUT "Greater" ELSE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a nested IF statement in pseudocode?

An IF statement inside another IF statement.

A loop inside an IF statement.

An IF statement followed by a CASE structure.

An IF statement with no ELSE clause.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of a CASE structure in pseudocode?

It provides a way to choose between multiple alternatives based on a variable's value.

It loops through a list of values.

It checks conditions and executes a block of code repeatedly.

It defines a conditional check for data validation.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct CASE structure in pseudocode?

CASE X OF 1: OUTPUT "One", 2: OUTPUT "Two", 3: OUTPUT "Three"

CASE X OF 1 OUTPUT "One" 2 OUTPUT "Two" 3 OUTPUT "Three"

CASE 1 OUTPUT "One" 2 OUTPUT "Two" 3 OUTPUT "Three"

CASE X: 1 OUTPUT "One", 2 OUTPUT "Two", 3 OUTPUT "Three"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a count-controlled loop in pseudocode?

A loop that repeats a set number of times based on a counter.

A loop that repeats until a condition is met.

A loop that runs indefinitely.

A loop that runs a fixed number of times until a condition changes.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode structure is used for a count-controlled loop?

FOR X = 1 TO 10 DO OUTPUT X

WHILE X 10 DO OUTPUT X

IF X > 10 THEN OUTPUT "Greater"

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?