Python Quiz 1 and 2

Python Quiz 1 and 2

6th Grade

40 Qs

quiz-placeholder

Similar activities

PLTW CSIM Lesson 1 Assessment

PLTW CSIM Lesson 1 Assessment

5th - 9th Grade

35 Qs

Basic and Advanced Programming Questions - Final Project

Basic and Advanced Programming Questions - Final Project

6th Grade

40 Qs

6th Grade Computer Science ~ Final Exam

6th Grade Computer Science ~ Final Exam

6th Grade

39 Qs

Python Basics Class 6

Python Basics Class 6

6th Grade

43 Qs

ICR - Data Types & Flowcharts

ICR - Data Types & Flowcharts

6th - 8th Grade

41 Qs

Python Quiz

Python Quiz

5th - 12th Grade

40 Qs

Python Programming

Python Programming

5th - 9th Grade

37 Qs

QBASIC For Grade 6

QBASIC For Grade 6

5th - 10th 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?