Search Header Logo

L2: Programming Control Structures

Authored by K McVeagh

Computers

8th - 12th Grade

Used 1+ times

L2: Programming Control Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three main programming structures?

Sequence, selection, iteration

Structured, object-oriented, procedural

Java, Python, Visual Basic

Machine, assembly, high-level

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?

Selection
Loop
Functional
Sequence

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of programming structure requires each instruction to be performed in order, with no possibility of skipping an action or branching off to another action?

Loop
Sequence
Selection
Iteration

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what is iteration?

The repetition of steps within a program

The order in which instructions are carried out

A decision point in a program

A terminating statement

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Jackson has written a section of code in his program that instructs a character to move forward unless it encounters an obstacle, such as a rock. If the character encounters an obstacle, then it should change direction before moving forward again. If it does not encounter an obstacle, it should continue moving forward. Which type of control structure has Jackson written?

Selection
Loop
Functional
Sequence

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the control structure involved to this question.

A grocery store manager wants a program that allows the clerk to enter original price of an item and discount rate. The program then should display both the original and discounted price.

Selection

Sequence

Iteration

single-alternative ifs

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the control structure involved to this question.

A programmer wants a cup of tea on their break. When they check the kitchen, there are no teabags left, so they make coffee instead

Selection

Sequence

Iteration

abstraction

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?