Exam 3: Simple functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A(n) _____ chart is also known as a structured chart.

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

C

In a flowchart, a function call is depicted by a(n) _______________ that has vertical bars.

Free
(Short Answer)
4.9/5
(29)
Correct Answer:
Verified

rectangle

What is a group of statements that exists within a program for the purpose of performing a specific task?

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

A

The value assigned to a global constant can be changed in the mainline logic.

(True/False)
4.8/5
(35)

One of the reasons not to use global variables is that it makes a program hard to debug.

(True/False)
4.9/5
(40)

The _____ design technique can be used to break down an algorithm into functions.

(Multiple Choice)
4.9/5
(41)

Different functions can have local variables with the same names.

(True/False)
4.9/5
(35)

A(n) _____ is any piece of data that is passed into a function when the function is called.

(Multiple Choice)
4.9/5
(32)

It is recommended that programmers should avoid using _____ variables in a program when possible.

(Multiple Choice)
4.8/5
(31)

A(n) _____ variable is accessible to all the functions in a program file.

(Multiple Choice)
4.8/5
(40)

Arguments are passed by _______________ to the corresponding parameter variables in the function.

(Short Answer)
4.9/5
(44)

A set of statements that belong together as a group and contribute to the function definition is known as a(n) _____.

(Multiple Choice)
4.7/5
(33)

When a function is called by its name, then it is _____.

(Multiple Choice)
4.9/5
(34)

To assign a value to a global variable in a function, the global variable must first be declared in the function.

(True/False)
4.8/5
(36)

The hierarchy chart shows all the steps that are taken inside a function.

(True/False)
4.9/5
(27)

The code for a function is known as a function _______________.

(Short Answer)
4.7/5
(32)

A local variable can be accessed from anywhere in the program.

(True/False)
4.9/5
(31)

A variable is visible only to statements in the variable's _______________.

(Short Answer)
5.0/5
(40)

A(n) _______________ chart is a visual representation of the relationships between functions.

(Short Answer)
4.8/5
(35)

The _____ argument specifies which parameter the argument should be passed into.

(Multiple Choice)
4.8/5
(28)
Showing 1 - 20 of 34
close modal

Filters

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