Exam 1 Practice

Exam 1 Practice

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

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

Media Image

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?