Exam 4: The Sequence Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

On a flowchart, ____ are used for variable declarations or assignment statements.

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

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:
Verified

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:
Verified

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)

On a flowchart, ____ are used for connecting other symbols.

(Multiple Choice)
4.8/5
(43)

Comments are included in programs to aid the programmer.

(True/False)
4.9/5
(36)

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)

"Mutator" methods are also called "set" methods.

(True/False)
4.8/5
(36)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)