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

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

4th Grade

10 Qs

quiz-placeholder

Similar activities

 Grade 4 - Computer network

Grade 4 - Computer network

4th - 5th Grade

11 Qs

ICA Computer Concepts Formative

ICA Computer Concepts Formative

6th Grade

10 Qs

Python Control Structure

Python Control Structure

12th Grade

15 Qs

Strings, Variables & Concatenation Practice

Strings, Variables & Concatenation Practice

9th Grade

12 Qs

Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

4th Grade - University

10 Qs

Q&A – Iteration & Count-Controlled Loops (Primary 4 – 4CT.02)

Q&A – Iteration & Count-Controlled Loops (Primary 4 – 4CT.02)

4th Grade - University

11 Qs

Q&A – Repetition Makes Algorithms Concise (Primary 4 – 4CT.03)

Q&A – Repetition Makes Algorithms Concise (Primary 4 – 4CT.03)

4th Grade - University

10 Qs

What Makes a Computer Quiz

What Makes a Computer Quiz

6th - 8th Grade

14 Qs

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

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

Assessment

Quiz

Computers

4th Grade

Hard

Created by

Shervon Yak

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?