4.2 Given a scenerio, use program organizational techniques and interpret logic Flashcards

1
Q

What is the function of an IF conditional statement in code?

A

Part of the code only executes when certain conditions are true.

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

Which pseudocode adds a value to the first element in the array?

A

Logons(0) = find LastLoggedOnUser and get Forename

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

What is the main difference between looping and branching?

A

Loops are used to perform a task until a condition is met.

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

What is the primary purpose of a flow chart?

A

It visualizes the graphical sequence of a program.

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

How is pseudocode used in programming?

A

It is used to write informal programming code that is readable by humans.

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

What would you use to instruct your computer to execute a different sequence of instructions?

A

Branching

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

Which pseudocode populates the first row and first column?

A

Logons(0,0) = find LastLoggedOnUser and get Forename

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

What pseudocode creates a two-dimensional array?

A

declare Logons(9,1) as string

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

When writing pseudocode, what are subroutines?

A

Subroutines are blocks of code that represent duplicate tasks but have been defined separately.

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

What purpose does branching in programming serve?

A

It controls flow within a program based on specific conditions.

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

Which psuedocode defines a one-dimensional array allowing up to ten rows?

A

declare Logons(9) as string

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