CITP 110 Final Exam with all Correct & 100% Verified
Answers |Actual Complete Update |Guaranteed to Pass
The following is an example of an instruction written in which computer language? ✔Correct
Answer-Machine Language
What type of error produces incorrect results but does not prevent the program from running?
✔Correct Answer-Logic
In a print statement, you can set the __________ argument to a space or empty string to stop
the output from advancing to a new line. ✔Correct Answer-End
What is a group of statements that exists within a program for the purpose or performing a
specific task? ✔Correct Answer-Function
A _________ variable is created inside a function. ✔Correct Answer-Local
When using the _________ operator, one or both subexpressions must be true for the
compound expression to be true. ✔Correct Answer-or
If x is 5, y is 3, and z is 8, what is the result of the following Boolean expression? ✔Correct
Answer-True
What type of loop structure repeats the code a specific number of times? ✔Correct Answer-
Count-controlled loop
What is not an example of an augmented assignment operator? ✔Correct Answer-<=
When will the following loop terminate?
while keep_on_going!=999: ✔Correct Answer-When keep_on_going refers to a value equal to
999
Which of the following will assign a random number in the range 1 through 50 to the variable
number? ✔Correct Answer-number = random.randint(1,50)
In a value-returning function, the value of the expression that follows the key word __________
will be sent back to the part of the program that called the function. ✔Correct Answer-return
Which step creates a connection between the file and the program? ✔Correct Answer-open
the file
Answers |Actual Complete Update |Guaranteed to Pass
The following is an example of an instruction written in which computer language? ✔Correct
Answer-Machine Language
What type of error produces incorrect results but does not prevent the program from running?
✔Correct Answer-Logic
In a print statement, you can set the __________ argument to a space or empty string to stop
the output from advancing to a new line. ✔Correct Answer-End
What is a group of statements that exists within a program for the purpose or performing a
specific task? ✔Correct Answer-Function
A _________ variable is created inside a function. ✔Correct Answer-Local
When using the _________ operator, one or both subexpressions must be true for the
compound expression to be true. ✔Correct Answer-or
If x is 5, y is 3, and z is 8, what is the result of the following Boolean expression? ✔Correct
Answer-True
What type of loop structure repeats the code a specific number of times? ✔Correct Answer-
Count-controlled loop
What is not an example of an augmented assignment operator? ✔Correct Answer-<=
When will the following loop terminate?
while keep_on_going!=999: ✔Correct Answer-When keep_on_going refers to a value equal to
999
Which of the following will assign a random number in the range 1 through 50 to the variable
number? ✔Correct Answer-number = random.randint(1,50)
In a value-returning function, the value of the expression that follows the key word __________
will be sent back to the part of the program that called the function. ✔Correct Answer-return
Which step creates a connection between the file and the program? ✔Correct Answer-open
the file