G8 Python Programming Quiz

G8 Python Programming Quiz

8th Grade

40 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

6th - 8th Grade

35 Qs

Python Quiz

Python Quiz

5th - 12th Grade

40 Qs

Python EoT term assessment

Python EoT term assessment

8th - 10th Grade

44 Qs

Ch-5

Ch-5

8th Grade

40 Qs

AI Captain (artificial intelligence)

AI Captain (artificial intelligence)

6th - 12th Grade

37 Qs

GCSE Python Legends

GCSE Python Legends

1st - 12th Grade

45 Qs

More About Python & AI

More About Python & AI

8th Grade

45 Qs

Python Test

Python Test

8th - 12th Grade

40 Qs

G8 Python Programming Quiz

G8 Python Programming Quiz

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Kiers McFarlane

Used 10+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of `print("3" + str(4))`?

7

"34"

"7"

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is `print("Age is", age)` better than `print("Age is" + age)` if age = 12?

It saves memory

It avoids a type error by using comma separation

It removes the need for quotation marks

It converts age to float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `print("Hi".lower().count("h"))` return?

1

0

2

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `msg = "hi there"`, what does `msg.find("e")` return?

6

7

True

"e"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between `input("Age: ")` and `int(input("Age: "))`?

The second one saves more memory

The second converts the string to an integer

The first checks type

The second is only used for decimals

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In `user_age = input("Enter age: ") + 1`, what kind of error occurs?

SyntaxError

TypeError

IndexError

RuntimeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will `x = input("Enter number: "); print(type(x))` show if the user enters 8?

int

float

str

bool

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?