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
Right-brained people tend to favor pseudocode as a method of developing algorithms for programs
(True/False)
4.8/5
(34)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)