Exam 5: Functions

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

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

(Multiple Choice)
4.9/5
(80)

A variable is available only to statements in the variable's __________.

(Short Answer)
4.9/5
(93)

One of the drawbacks of a modularized program is that the only structure you can use in such a program is the sequence structure.

(True/False)
4.8/5
(89)

Python allows you to pass multiple arguments to a function.

(True/False)
4.8/5
(74)

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

(True/False)
4.8/5
(77)

The math function ceil(x)returns the smallest integer that is greater than or equal to x.

(True/False)
4.9/5
(67)

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

(Short Answer)
4.8/5
(83)

The function header begins with the keyword __________ and is followed by the name of the function.

(Short Answer)
4.9/5
(92)

A __________ variable is accessible to all the functions in a program file.

(Multiple Choice)
4.9/5
(75)

What type of function can be used to determine whether a number is even or odd?

(Multiple Choice)
4.9/5
(61)

A __________ variable is created inside a function.

(Multiple Choice)
4.8/5
(80)

A function definition specifies what a function does and causes the function to execute.

(True/False)
4.9/5
(81)

What does the following statement mean? Num1,num2 = get_num()

(Multiple Choice)
4.9/5
(79)

The randrange function returns a randomly selected value from a specific sequence of numbers.

(True/False)
5.0/5
(83)

What will be displayed after the following code is executed? What will be displayed after the following code is executed?

(Multiple Choice)
4.9/5
(70)

Different functions can have local variables with the same names.

(True/False)
4.8/5
(90)

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

(Multiple Choice)
4.8/5
(88)

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

(Short Answer)
4.8/5
(91)

The 'P' in the acronym IPO refers to ___________.

(Short Answer)
4.7/5
(78)

In a flowchart,a function call is depicted by a(n)___________.

(Short Answer)
4.9/5
(70)
Showing 21 - 40 of 66
close modal

Filters

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