Exam 5: Functions
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
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)
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 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 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?

(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)
In a flowchart,a function call is depicted by a(n)___________.
(Short Answer)
4.9/5
(70)
Showing 21 - 40 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)