
Exam 1 Practice
Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What function is used to get a value from the user of the program in Python?
Back
input()
2.
FLASHCARD QUESTION
Front
Back
3
3.
FLASHCARD QUESTION
Front
Which operator is used to find the remainder of a division in Python? Options: //, %, /, **
Back
%
4.
FLASHCARD QUESTION
Front
What are the possible results from the randint function with arguments 2 and 8? Options: 2, 3, 4, 5, 6, 7, 8, 2 or 8, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6, 7
Back
2, 3, 4, 5, 6, 7, 8
5.
FLASHCARD QUESTION
Front
Back
3
6.
FLASHCARD QUESTION
Front
Which of the following code snippets correctly checks if a number entered by the user is even or odd?
Back
7.
FLASHCARD QUESTION
Front
Given the code snippet, what will be the output? Options: Greater, Lesser, There will be an error, There will be no output
Back
There will be no output
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?