Basics of Coding AES
A function is useful because you write it once and call it as often as needed.
True
A selection control structure is used to choose between two or more alternative paths
True
An If/Else statement should be used when you want one of two sections of code to be executed.
True
Which of the following are reasons control structures are used?
All of the above
Which of the following describes the Design phase of the programming process?
Create your plan using algorithm and control structures
A ________________ control structure is used to reduce the number of lines of code for an action that will need to be repeated many times
Repetition
Which of the following describes the Test phase of the programming process?
Identify and correct any errors
Repeats a sequence of commands
A loop
All other elements of a command
A statement is
How does the computer use a selection control structure to decide which path to follow?
By determining which requirements have been met
Which of the following describes the Define phase of the programming process?
Determine the problem
Which of the following is NOT a control structure used in coding?
Differential
How is a sequential control structure read?
Each line in order, from top to bottom
A repetition control structure executes code one time only.
False
Which loop is used for a specified number of times?
For
Which of the following are types of conditional statements?
If and if else
Which of the following is NOT one of the five steps of the programming process?
Interview
A nested loop is
Is a loop within a loop
A command is
One word instruction
Which of the following is NOT a type of loop?
Open
A function
Performs a specific task when called
What type of control structure is a conditional statement?
Selection
What type of control structure is the default method of the computer reading code?
Sequential
A conditional statement is a statement
That allows the computer to choose between different paths in a program
Which type of loop only runs while a condition is true?
While