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

Comptia IFT+ > 4.2 Given a scenerio, use program organizational techniques and interpret logic > Flashcards

Flashcards in 4.2 Given a scenerio, use program organizational techniques and interpret logic Deck (11)
Loading flashcards...
1

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

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

2

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

Logons(0) = find LastLoggedOnUser and get Forename

3

What is the main difference between looping and branching?

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

4

What is the primary purpose of a flow chart?

It visualizes the graphical sequence of a program.

5

How is pseudocode used in programming?

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

6

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

Branching

7

Which pseudocode populates the first row and first column?

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

8

What pseudocode creates a two-dimensional array?

declare Logons(9,1) as string

9

When writing pseudocode, what are subroutines?

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

10

What purpose does branching in programming serve?

It controls flow within a program based on specific conditions.

11

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

declare Logons(9) as string