Coding(10.2.4 Lesson Review) Flashcards

(5 cards)

1
Q

What keyword is used in pseudocode to represent a loop with a condition at its beginning?

A

WHILE

Explanation

WHILE represents a loop with a condition at its beginning.

REPEAT-UNTIL has a condition at its ending.

FOR is another type of loop but not specifically with a condition at its beginning.

CASE is used for conditional branching, not looping.

Related Content

10.2.3 Pseudocode

10.4.5 Looping

10.4.6 Code Visualizer Lab: For Loop

10.4.7 Code Visualizer Lab: For Loop with Array

10.4.8 Code Visualizer Lab: While Loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the main purpose of pseudocode?

A

To describe what the code will do using plain language

Explanation

Pseudocode helps explain what the code will accomplish in a clear and easy-to-understand way.

Pseudocode is not the final code; it is a planning tool.

Pseudocode is not used for creating user interfaces.

Pseudocode is not compiled.

Related Content

10.2.3 Pseudocode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the main purpose of a flowchart in programming?

A

To show the flow (sequence) of logic in a program

Explanation

Flowcharts help in understanding the sequence of steps and logic in a program.

Flowcharts are used to plan and visualize the logic of the program.

Flowcharts are not used for designing user interfaces; they are used for planning the logic.

Flowcharts are used for planning.

Related Content

10.2.2 Map Out the Program Sequence

10.4.1 Simple Program Flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does a diamond shape in a flowchart indicate?

A

A decision point

Explanation

Diamonds are used to show decisions that can be answered with Yes or No.

Ovals indicate the start or end of a program.

Parallelograms indicate input or output.

Rectangles indicate processes.

Related Content

10.2.2 Map Out the Program Sequence

10.4.1 Simple Program Flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What should be done before starting to code a program?

A

Decide what the program should do.

Explanation

Before starting to code, it’s important to decide what the program should do.

This involves planning and understanding the program’s goals and features.

Decide what the program will look like before planning is not a step prior to coding a program.

Writing code without planning can lead to errors and inefficiencies.

Skipping the planning phase can result in poorly designed programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly