Exam 4: The Sequence Structure
Exam 1: The Craft of Programming50 Questions
Exam 2: The Javascript Language49 Questions
Exam 3: Objects, Events, and Graphical User Interfaces48 Questions
Exam 4: The Sequence Structure50 Questions
Exam 5: The Selection Structure50 Questions
Exam 6: The Repetition Structure50 Questions
Exam 7: Complex Conditions49 Questions
Exam 8: Modules and Functions50 Questions
Exam 9: Menus and Data Validation50 Questions
Exam 10: Arrays50 Questions
Exam 11: Building Programs50 Questions
Exam 12: Sorting Data30 Questions
Exam 13: Recursion50 Questions
Select questions type
On a flowchart, ____ are used for variable declarations or assignment statements.
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
B
In the algorithm below, adding 10 years to the age variable and storing the result in the newAge variable is an assignment statement, so on a flowchart, it is placed in a(n) ____.
Start
// Declare variables
Declare Numeric age, newAge
// Get user's age
Display "Please enter your age: "
Input age
// Compute age in 10 years
NewAge = age + 10
// Display new age
Display "In 10 years, you will be " + newAge
Stop
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
A
An advantage of structured programming is that it works well with the concept of modular programming.
Free
(True/False)
4.9/5
(37)
Correct Answer:
True
A ____ structure evaluates a logical condition and performs or ignores one or more statements based on the evaluation.
(Multiple Choice)
4.8/5
(30)
Which of the following correctly converts the algorithm below to JavaScript? (Assume that constants for an empty string (ES) and the line break tag (BR) have been declared.)
Display "Enter your full name: "
Input fullName
Display "Enter your age in years: "
Input age
Display "Hi, " + fullName
Display "You are " + age + " years old."
(Multiple Choice)
4.8/5
(36)
On a flowchart, ____ mark the beginning and ending of the flowchart.
(Multiple Choice)
4.8/5
(51)
On a flowchart, symbols are connected by flowlines that indicate the order of processing.
(True/False)
4.7/5
(33)
Methods that assign values to class variables are called "accessor" methods.
(True/False)
4.9/5
(38)
On a flowchart, ____ are used for display statements, prompts, and input statements.
(Multiple Choice)
4.7/5
(41)
Structured programming is most often characterized by the GOTO statement, common in early line-number BASIC programs.
(True/False)
4.8/5
(39)
The following statement is an example of a(n) ____ structure.
"If it's raining outside, take an umbrella."
(Multiple Choice)
4.8/5
(49)
On a flowchart, the Start and Stop keywords, used to indicate the beginning and end of a pseudocode program, are represented by ____.
(Multiple Choice)
4.9/5
(33)
Modules (which include methods and functions) are sections of programming code, and as a result, they are made up of sequence, selection, and repetition structures, just as other program code is.
(True/False)
4.9/5
(34)
Procedural programming is widely accepted as the most efficient method of program development, resulting in faster development, reusable code, easier maintenance, and fewer errors.
(True/False)
5.0/5
(39)
The following statement is an example of a(n) ____ structure.
"Do your homework, then watch t.v."
(Multiple Choice)
4.8/5
(33)
The following statement is an example of a(n) ____ structure.
"Go to the grocery store. Buy milk and eggs. Get gas in the car on the way home."
(Multiple Choice)
4.8/5
(26)
Class methods that return values to the calling module are called "mutator" methods.
(True/False)
4.8/5
(36)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)