4.2 Use Programming Organizational Techniques and Interpret Logic Flashcards
Which pseudocode creates two-dimensional array?
Declare Logons(9,0) as string
Which pseudocode defines a one-dimensional array allowing up to ten rows?
Declare Logons(9) as string
When writing pseudocode, what are subroutines?
Subroutines are blocks of code that represent duplicate tasks but have been defined separately.
What is the primary purpose of a flow chart?
It visualizes the graphical sequence of a program.
Which is NOT an example of a function?
While
What purpose does branching in programming serve?
It controls flow within a program based on specific conditions.
Which pseudocode populates the first row and first column?
Logons(0,0)= find LastLoggedOnUser and get Forename
Which pseudocode adds value to the first element in the array?
Logons(0) = find LastLoggedOnUser and get Forename
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?
Branching
What is the main difference between looping and branching?
Loops are used to perform a task until a condition is met.
What is the function of an IF conditional statement in code?
Part of the code only executes when certain conditions are true.
Your team is developing a program and would like to crate a visual representation of how it works. Which type would be most helpful?
Flowchart
Which pseudocode populates the first row and second column?
Logons(0,1) = find LastLoggedOnUser and get Time
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?
Looping