Title: Competency 6 Practice Quiz
Course: Programming Fundamentals I > Section: Practice Quizzes

Q: What does the following statement do?

x = random. randint (1, 100)
Feedback: It assigns a random integer in the range of 1 through 100 to the variable x.

Q: What does the following statement do?

print (random. randint (1, 20))
Feedback: It prints a random integer in the range of 1 through 20

Q: Write a statement that uses a math module function to get the square root of 100 and assigns it to a variable named square_root.
Feedback: square_root = math. sqrt (100)

Q: Write a statement that uses a math module function to convert 45 degrees to radians and assigns the value to a variable named angle.
Feedback: angle = math. radians (45)

Q: A __________ __________ _________ is a function that returns a value back to the part of the program that called it.
A: value returning function

Q: To call a function stored in a module, need to write an _________ statement
A: import

Q: __________   _________   initialize the formulas that generates random numbers
A: Seed values

Q: A/An __________ __________ describes the input, processing, and output of a function
A: IPO Chart

Q: A __________ __________ __________ displays a list of operations on the screen, allowing user to select the desired operation
A: Menu driven program

Q: A ________ _______ is a group of statements within a program for performing a specific task
A: simple function