Search Header Logo

Python MCQ

Authored by Alijon Kuvondikov

Computers

6th - 8th Grade

Used 2+ times

Python MCQ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python primarily used for?

Only web development

Only data analysis

Multiple purposes like web development, data analysis, AI, etc.

Only game development

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you skip indentation in Python?

The code still runs

It adds a tab automatically

You get a syntax error

It becomes a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an item to the end of a list?

list.add()

list.append()

list.insert()

list.extendLast()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write a comment in Python?

// This is a comment

# This is a comment

/* This is a comment */

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Python data type?

list

tuple

array

dict

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does for i in range(0): print(i) output?

0

None

Nothing

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: x = 5 if x > 2: print("A") elif x > 3: print("B") else: print("C")

A

B

C

A B

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?