Exam 8: Modules and Functions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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

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

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

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)

The prompt() command in JavaScript is actually a(n) ____.

(Multiple Choice)
4.8/5
(43)

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)

____ are available to all modules in the program.

(Multiple Choice)
4.8/5
(41)

All variables declared in separate modules are global and cannot be affected by other modules.

(True/False)
4.9/5
(36)

Functions can return more than one value.

(True/False)
4.8/5
(37)

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)

Modules cannot call other modules.

(True/False)
4.8/5
(38)

When output is meant for a printer, you should use the ____ keyword.

(Multiple Choice)
4.7/5
(43)
Showing 1 - 20 of 50
close modal

Filters

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