Search Header Logo

Q&A – Predicting Outcomes of Repetition (Primary 4 – 4CT.05)

Authored by Shervon Yak

Computers

4th Grade

Q&A – Predicting Outcomes of Repetition (Primary 4 – 4CT.05)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The algorithm below will output “Hi” 3 times. Repeat 3 times OUTPUT "Hi"

True

False

Answer explanation

The algorithm repeats the output "Hi" 3 times as specified. Therefore, the statement is true.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this algorithm? Repeat 4 times OUTPUT "Clap"

Clap

Clap Clap

Clap Clap Clap Clap

No output

Answer explanation

The algorithm repeats the output "Clap" 4 times. Therefore, the correct output is "Clap Clap Clap Clap", which corresponds to the choice "Clap Clap Clap Clap".

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Repeat 2 times OUTPUT "Good" OUTPUT "Morning" What will the output be?

Good Morning Good Morning

Good Good Morning Morning

Good Morning Good Morning

Morning Good Morning Good

Answer explanation

The instructions state to repeat the outputs "Good" and "Morning" two times. Therefore, the correct output is "Good" followed by "Morning", repeated twice: "Good", "Morning", "Good", "Morning".

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What numbers will be printed?

1, 2, 3

2, 3, 4

3, 4, 5

4, 5, 6

Answer explanation

The code likely prints the first three numbers starting from 1. Therefore, the correct output is 1, 2, 3.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be printed?

5, 4, 3

3, 4, 5

4, 5, 3

5, 3, 4

Answer explanation

The code likely prints the values in the order they are defined. The correct choice is '5, 4, 3', indicating that the first value printed is 5, followed by 4, and then 3.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This algorithm will print “Star” forever: Forever OUTPUT "Star" True or False?

True

False

Answer explanation

The algorithm is designed to run indefinitely in a loop, continuously outputting 'Star'. Therefore, the statement is true: it will print 'Star' forever.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the total number of outputs? Repeat 3 times OUTPUT "Yes" OUTPUT "No"

2

3

6

Infinite

Answer explanation

The outputs "Yes" and "No" are repeated 3 times each. Therefore, 3 "Yes" outputs and 3 "No" outputs result in a total of 6 outputs. Thus, the correct answer is 6.

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?