Flashcards in 4.2 Given a scenerio, use program organizational techniques and interpret logic Deck (11)
What is the function of an IF conditional statement in code?
Part of the code only executes when certain conditions are true.
Which pseudocode adds a value to the first element in the array?
Logons(0) = find LastLoggedOnUser and get Forename
What is the main difference between looping and branching?
Loops are used to perform a task until a condition is met.
What is the primary purpose of a flow chart?
It visualizes the graphical sequence of a program.
How is pseudocode used in programming?
It is used to write informal programming code that is readable by humans.
What would you use to instruct your computer to execute a different sequence of instructions?
Which pseudocode populates the first row and first column?
Logons(0,0) = find LastLoggedOnUser and get Forename
What pseudocode creates a two-dimensional array?
declare Logons(9,1) as string
When writing pseudocode, what are subroutines?
Subroutines are blocks of code that represent duplicate tasks but have been defined separately.
What purpose does branching in programming serve?
It controls flow within a program based on specific conditions.