Search Header Logo

Python Quiz

Authored by aris santoso

Computers

12th Grade

Used 2+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection does not allow duplicate members?

SET

TUPLE

LIST

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

.py

.pyth

.pyt

.pt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to multiply numbers?

*

#

x

%

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator can be used to compare two values?

==

<>

><

=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start writing an if statement in Python?

if x > y:

if (x > y)

if x > y then:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to return the first character in a string?

x = "Hello"[0]

x = sub("Hello", 0, 1)

x = "Hello".sub(0, 1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Python?

print("Hello World")

echo "Hello World"

p("Hello World")

echo("Hello World");

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

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

Already have an account?