4.2 Use Programming Organizational Techniques and Interpret Logic Flashcards

1
Q

Which pseudocode creates two-dimensional array?

A

Declare Logons(9,0) as string

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

Which pseudocode 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
3
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
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

Which is NOT an example of a function?

A

While

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
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

Which pseudocode adds 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
9
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
10
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
11
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
12
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
13
Q

Your team is developing a program and would like to crate a visual representation of how it works. Which type would be most helpful?

A

Flowchart

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

Which pseudocode populates the first row and second column?

A

Logons(0,1) = find LastLoggedOnUser and get Time

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

A program has a piece of code that needs to be repeated over and over until the condition has been fulfilled. What is this an example of?

A

Looping

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