Sequences, selections, and loops - GCFGlobal (9)

Sequences, selections, and loops - GCFGlobal (9)

Assessment

Passage

Computers

8th Grade

Medium

Created by

Debra Morgan

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three basic programming structures mentioned in the text?

Sequences, selections, and loops

Variables, functions, and arrays

Classes, objects, and methods

Inputs, outputs, and processes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a sequence in programming?

A series of actions completed in a specific order

A random set of actions performed simultaneously

A single action repeated multiple times

A decision-making process in code

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of a sequence we do every day?

Morning routine

Evening walk

Watching TV

Playing games

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a sequence and a selection?

Sequences are random, selections are ordered

Sequences follow a specific order, selections ask a question

Selections are random, sequences ask a question

Selections follow a specific order, sequences are random

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example given, what should you do if you find you are out of toothpaste?

Use a different toothbrush

Add it to your shopping list

Brush without toothpaste

Use mouthwash instead

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of a loop in programming?

To perform a task once and stop

To ask different questions each time

To repeat a task until a certain condition is met

To avoid asking any questions

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example of hammering a nail, what do you do if the nail is not all the way in?

Stop hammering

Hammer the nail again

Ask a different question

Remove the nail

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key difference between loops and selections in programming?

Loops ask different questions each time

Loops ask the same question repeatedly

Selections never ask questions

Selections ask the same question repeatedly

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can happen when simple programming structures are combined?

They remain simple.

They create complex software.

They become useless.

They disappear.