Search Header Logo

Navs Python Quiz

Authored by Naveed Hussain

Computers

8th - 10th Grade

CCSS covered

Used 16+ times

Navs Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!\nHello world!")

Hello world! Hello world!
Hello world!
Hello world!
SyntaxError
Hello world!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello" + str(2) + "world!")

Hello world! Hello world!
Hello2world!
Hello Hello world! world!
SyntaxError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is python named after

The snake
Television show called Monty Python

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'debug' mean?

Identify errors and fix them.
Making a calculation
A set of instructions
Looking at code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want more than one option for your code, what do you use (after if)?

elif
else
ifif

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

people = ["John", "Rob", "Bob"]

print (people[1])

what would this result be?

John
Rob
Bob

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In python the ' STRING data type' can be defined as...?

holds alphanumeric text
hold whole numbers
holds numbers with a decimal point
holds either a true or false value

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?