Search Header Logo

PYTHON QUIZ 2

Authored by Mohamad Shahrin

Instructional Technology

1st Grade

Used 1+ times

PYTHON QUIZ 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python has a simple syntax similar to the

coding language

english language

spanish language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is code for Hello, World! in Python

print Hello, World!

print("Hello, World!)

print("Hello, World!")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the code for print

257

Hello, World!

x = 257

y = "Hello, World!"

print(y)

print(x)

x = 257

y = "Hello, World!"

print(x)

print(y)

x = 257

y = Hello, World!

print x

print y

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comments in Python are written with a special character, which one?

brackets

hashtag

coma

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The output of the program :

x = 4

x = "Sally"

print(x)

four

Saly

Sally

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Python function lets the user enter an input?

answer()

open()

print()

input()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Kassim" to the variable name?

name  = print( "Kassim")

input("Kassim")

name = "Kassim"

name = input("Kassim")

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?