Exam 4: The Sequence Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

"Accessor" methods are also called "get" methods.

(True/False)
4.9/5
(38)

Right-brained people tend to favor pseudocode as a method of developing algorithms for programs

(True/False)
4.8/5
(34)

Structured programming is commonly called "spaghetti code."

(True/False)
4.9/5
(39)

The computer always processes comments.

(True/False)
4.8/5
(42)

When code is not written by using modules, it is difficult to know what effect changing a line of code will have on surrounding statements.

(True/False)
5.0/5
(36)

Modules are represented by rectangles with stripes.

(True/False)
4.8/5
(39)

The JavaScript equivalent of the pseudocode Declare is ____.

(Multiple Choice)
4.9/5
(40)

The JavaScript equivalent of the pseudocode Display is ____.

(Multiple Choice)
4.8/5
(32)

On a flowchart, assignment statements appear in ____.

(Multiple Choice)
5.0/5
(35)

An advantage of structured programming is that structures can be pulled out of programs and inserted into other programs without adversely affecting the flow of the surrounding code.

(True/False)
4.8/5
(36)

____ is a way of designing, writing, and modifying programs that focuses on this core concept: Use only the three recognized control structures-sequence, selection, and repetition.

(Multiple Choice)
4.7/5
(37)

The following statement is an example of a(n) ____ structure. "Deposit $100 into savings every week, as long as your balance is below $1000."

(Multiple Choice)
4.7/5
(30)

On a flowchart, a variable declaration is considered a process, so it is placed in a parallelogram.

(True/False)
4.8/5
(42)

Look at the following pseudoocode and insert the missing statement: Start // Declare variables Declare String lastName, firstName, fullName // Input last and first names Display "Enter your last name: " Input lastName Display "Enter your first name: " Input firstName // Concatenate names with space in between ____ // Display full name Display "Your full name is " + fullName Stop

(Multiple Choice)
4.9/5
(42)

Modular programming helps keep your main program uncluttered and easy to understand.

(True/False)
4.8/5
(32)

In the algorithm below, the Display statement for the result is considered output, so on a flowchart, it is placed in a ____. 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

(Multiple Choice)
4.7/5
(39)

Flowcharts can be drawn to move from top to bottom or from left to right, whichever fits the page better.

(True/False)
4.7/5
(37)

The "stored programming" concept developed by John von Neumann states that any program can be written by using only sequence, selection, and repetition structures.

(True/False)
4.9/5
(37)

Structures are easy to find and change: They have one entry point and one exit point-a clear beginning and end.

(True/False)
4.9/5
(31)

Statements in a sequence structure are performed without any conditions.

(True/False)
4.9/5
(44)
Showing 21 - 40 of 50
close modal

Filters

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