Python Quiz 1 and 2

Python Quiz 1 and 2

6th Grade

40 Qs

quiz-placeholder

Similar activities

server installation

server installation

1st Grade - University

40 Qs

Data Types and Flowchartds

Data Types and Flowchartds

6th - 8th Grade

41 Qs

PERIODIC ASSESSMENT - II

PERIODIC ASSESSMENT - II

6th Grade

40 Qs

G6-Comp. Sci. Review Semester 2

G6-Comp. Sci. Review Semester 2

6th Grade

42 Qs

micro:bit

micro:bit

5th - 12th Grade

43 Qs

Python L1 Concepts

Python L1 Concepts

1st - 12th Grade

40 Qs

Introduction to Sphero

Introduction to Sphero

6th - 8th Grade

45 Qs

CP Final Exam Review 1

CP Final Exam Review 1

6th Grade

35 Qs

Python Quiz 1 and 2

Python Quiz 1 and 2

Assessment

Quiz

Computers

6th Grade

Hard

Created by

Archie Miranda

Used 2+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

/

*

%

//

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the remainder when an even number is divided by 2?

0

1

2

Undefined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the remainder when an odd number is divided by 2?

0

1

2

Undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? num = 8 if num % 2 == 0: print("Even") else: print("Odd")

Odd

Even

Error

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take user input in Python?

input()

print()

read()

scan()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to convert user input into an integer?

int(input())

float(input())

str(input())

bool(input())

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if the user enters a non-numeric value and we try to convert it using int(input())?

The program will print the value

The program will crash with a ValueError

The program will return None

The program will treat it as 0

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?