Python Quiz 1 and 2

Python Quiz 1 and 2

6th Grade

40 Qs

quiz-placeholder

Similar activities

Robotics ITMS Final Exam

Robotics ITMS Final Exam

6th - 8th Grade

41 Qs

Coding Final Exam 2025

Coding Final Exam 2025

6th Grade

40 Qs

Python L1 Concepts

Python L1 Concepts

1st - 12th Grade

40 Qs

Flowchart planning and Programming Constructs

Flowchart planning and Programming Constructs

6th Grade

40 Qs

Edublocks and Python

Edublocks and Python

6th Grade

35 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

Summer Test 2022 Y7 Computing

Summer Test 2022 Y7 Computing

6th - 7th Grade

45 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?