Exam 8: Modules and Functions
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
____ is used to create a program's overall outline and describe tasks to be accomplished, and then details of these tasks are refined later.
Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
B
When ____, the variable's actual memory address is sent to the module, and the parameter variable is the same location in memory as the variable in the calling module.
Free
(Multiple Choice)
4.9/5
(47)
Correct Answer:
C
____ are created when a module is called and exist only while statements in the module are performed.
Free
(Multiple Choice)
4.8/5
(49)
Correct Answer:
D
____ is the measure of the degree to which all statements and variables in the module relate to one purpose.
(Multiple Choice)
4.8/5
(32)
An advantage of modularization is that the main module is easier to understand yet still gives the "big picture" of what's happening.
(True/False)
4.8/5
(41)
A ____ error occurs when JavaScript's language rules are violated.
(Multiple Choice)
4.8/5
(38)
In most programming languages, global variables are declared explicitly as global or declared in the main module outside any other modules.
(True/False)
4.9/5
(36)
All variables declared in separate modules are global and cannot be affected by other modules.
(True/False)
4.9/5
(36)
A For loop is depicted like a While loop in a flowchart, with initialization and incrementing as separate steps.
(True/False)
4.7/5
(32)
What happens if a module uses a local variable with the same name as a main module variable, which is assumed to be global?
(Multiple Choice)
4.7/5
(30)
In which of the following is the variable name declared as a global variable?
(Multiple Choice)
4.8/5
(36)
A ____ error occurs when the wrong instruction is given to the computer for solving a problem.
(Multiple Choice)
4.9/5
(35)
Modularizing a program makes it more efficient by including highly cohesive code and calling another module for each separate task.
(True/False)
4.8/5
(31)
The flowchart shape for a called module is a parallelogram with stripes, which indicates a predefined process.
(True/False)
4.9/5
(33)
Structured programming, the method for creating all programs from sequence, selection, and repetition structures, is about clarity.
(True/False)
4.8/5
(30)
When output is meant for a printer, you should use the ____ keyword.
(Multiple Choice)
4.7/5
(43)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)