Python Codehs

Python Codehs

7th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Image Representation Lesson 2

Image Representation Lesson 2

9th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Year 7 Historical development of Computers

Year 7 Historical development of Computers

7th Grade

10 Qs

SISTEM KOMPUTER KLS 9

SISTEM KOMPUTER KLS 9

9th Grade

10 Qs

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

12th Grade

10 Qs

Ulangan TIK kelas 5 A/B

Ulangan TIK kelas 5 A/B

10th Grade

15 Qs

Comments in Python

Comments in Python

5th - 8th Grade

10 Qs

Python Codehs

Python Codehs

Assessment

Quiz

Computers

7th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python code segment will display “Hello, world!” on the screen?

"Hello, world!"

print "Hello, world!"

print("Hello, world!")

display Hello, world!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python code display?

print("Hello")

print("World")

HelloWorld

Hello

World

Hello World

"Hello"

"World"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is the following variable?

x = "Hi there"

boolean

integer

float

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python program print?

x = "I am"

y = 6

z = "feet tall"

print(x)

print(y)

print(z)

I am6feet tall

I am 6 feet tall

I am

6

feet tall

x

y

z

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of the variable x in the following Python program?

x = input("Enter a number from 1-10: ")

integer

float

string

The type cannot be determined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python program print?

x = 9 + 6 / 3 * 2 - 1

print(x)

12

9

14

20

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used for exponentiation (exponents) in Python?

^

(( ))

**

%

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?