Python Quiz 1 and 2

Python Quiz 1 and 2

6th Grade

40 Qs

quiz-placeholder

Similar activities

micro:bit Basics

micro:bit Basics

6th - 8th Grade

44 Qs

Summative Test for First Quarter (Grade7)

Summative Test for First Quarter (Grade7)

KG - 7th Grade

35 Qs

ATS1 KELAS 6 NEW

ATS1 KELAS 6 NEW

6th Grade

43 Qs

Roblox Studio Beginner

Roblox Studio Beginner

6th - 8th Grade

41 Qs

Bab 4 Internet dan Perangkat jaringan -Gr3

Bab 4 Internet dan Perangkat jaringan -Gr3

3rd Grade - University

40 Qs

Computer Basics

Computer Basics

6th - 7th Grade

39 Qs

Python Basics 2

Python Basics 2

5th Grade - Professional Development

36 Qs

Practical Exam (Grade 9 )

Practical Exam (Grade 9 )

5th - 6th Grade

43 Qs

Python Quiz 1 and 2

Python Quiz 1 and 2

Assessment

Quiz

Computers

6th Grade

Practice Problem

Hard

Created by

Archie Miranda

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?