Search Header Logo

Exam 1 Practice

Authored by Tyler Lovell

Computers

University

Used 97+ times

Exam 1 Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to get a value from the user of the program in Python?

print()

input()

read()

inp()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.5

3

4

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to find the remainder of a division in Python?

//

%

/

**

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the possible results from the randint function with arguments 2 and 8?

2, 3, 4, 5, 6, 7, 8

2 or 8

3, 4, 5, 6, 7

2, 3, 4, 5, 6, 7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3

4

1

2

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following code snippets correctly checks if a number entered by the user is even or odd?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the code snippet, what will be the output?

Greater

Lesser

There will be an error

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers