Search Header Logo

Structured Programming Quiz

Authored by Lisa Leung

Computers

10th Grade

Structured Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who was the computer scientist that disliked the way a programme's code would jump around sequentially?

Alan Turing

Edsger Wybe Dijkstra

Ada Lovelace

Charles Babbage

Answer explanation

Edsger Wybe Dijkstra was known for his criticism of the Goto statement, which caused code to jump around non-sequentially, making programs harder to understand and maintain. He advocated for structured programming instead.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term did programmers coin to describe the difficulties of following the logic in unstructured code?

Noodle code

Spaghetti code

Pasta code

String code

Answer explanation

The term 'spaghetti code' describes unstructured code that is tangled and difficult to follow, resembling a plate of spaghetti. This term highlights the challenges programmers face when dealing with poorly organized code.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three basic control structures in structured programming?

Sequence, selection, and repetition

Loop, condition, and function

Input, process, and output

Start, stop, and pause

Answer explanation

The three basic control structures in structured programming are sequence (executing statements in order), selection (making decisions), and repetition (looping through code). This makes 'Sequence, selection, and repetition' the correct choice.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are control structures also called?

Code blocks

Code lines

Code loops

Code functions

Answer explanation

Control structures are also known as code blocks because they define sections of code that control the flow of execution. This term emphasizes the grouping of statements that execute under certain conditions.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the programme shown in Figure 4.18?

To calculate the sum of two numbers

To print out stars

To sort a list of names

To find the largest number in a list

Answer explanation

The program's purpose is to print out stars, as indicated by its functionality. The other options involve calculations or sorting, which are not relevant to the program shown in Figure 4.18.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the challenge in the Blockly Maze fun challenge?

To solve mathematical equations

To master control structures using visual coding

To write essays on programming

To create a new programming language

Answer explanation

The Blockly Maze fun challenge focuses on mastering control structures through visual coding, allowing users to learn programming concepts in an interactive way, rather than solving equations or writing essays.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do after copying the right-hand Python version of the programme?

Delete it immediately

Modify it to print a different pattern

Use it to hack into systems

Translate it into another language

Answer explanation

After copying the right-hand Python version, the best action is to modify it to print a different pattern. This allows for creativity and learning, rather than deleting it or using it for unethical purposes.

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?