Python Quiz 1 and 2

Python Quiz 1 and 2

6th Grade

40 Qs

quiz-placeholder

Similar activities

KS2 Computing Quiz

KS2 Computing Quiz

3rd - 10th Grade

40 Qs

Keyboard Shortcuts Quiz Practice

Keyboard Shortcuts Quiz Practice

6th Grade

45 Qs

Year 7 E-Safety

Year 7 E-Safety

6th Grade

35 Qs

Pixlr Editor

Pixlr Editor

6th - 8th Grade

35 Qs

Year 7 Computer Science

Year 7 Computer Science

5th - 6th Grade

37 Qs

Linux2 - Lesson 6 (exam training)

Linux2 - Lesson 6 (exam training)

1st - 10th Grade

40 Qs

Database - Intermediate Level Review

Database - Intermediate Level Review

6th - 8th Grade

37 Qs

lembar Refleksi Aktivitas 13

lembar Refleksi Aktivitas 13

6th - 8th Grade

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