Search Header Logo

Python Syntax and print

Authored by Whizara Teacher

Computers

4th - 12th Grade

Used 41+ times

Python Syntax and print
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is the correct output for the following line of code?

print(3*4)

12

3*4

81

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following characters is used to give single-line comments in Python?

//

#

!

/*

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output in the below code snippet?

var = 10

print(type(var))

var = "Hello"

print(type(var))

str and int

 int and int

str and str

int and str

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The following code will result in an error.

print ('Let us learn Python!”)

true

false

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which line of code will print the following output:

10

print(5+’5’)

print(5+”5”)

print (5+5)

none of the above

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?