Python Basics Quiz

Python Basics Quiz

8th Grade

10 Qs

quiz-placeholder

Similar activities

komputasi awan

komputasi awan

University

15 Qs

Post Test Algoritma dan Pemrograman

Post Test Algoritma dan Pemrograman

10th Grade

13 Qs

Mobile Programming - POCC

Mobile Programming - POCC

University

15 Qs

DBMS Group 8 Review Quiz

DBMS Group 8 Review Quiz

University

15 Qs

HTML Table

HTML Table

8th Grade

13 Qs

Git & GitHub Quiz - MSP Session (5/5/2025)

Git & GitHub Quiz - MSP Session (5/5/2025)

University

12 Qs

Pensamento Computacional

Pensamento Computacional

12th Grade

15 Qs

HCI GOMS quiz

HCI GOMS quiz

University

15 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Information Technology (IT)

8th Grade

Practice Problem

Hard

Created by

imam ibrahim

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print("Hello, World!")

Hello

Hello World

Hello, World!

"Hello, World!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to write a comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

-- This is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed? print("3 + 2 =", 3 + 2)

3 + 2 = 3 + 2

3 + 2 = 32

3 + 2 = 5

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a correct Python data type?

list

float

string

decimal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this code? print("Result:", 5 * "2")

Result: 10

Result: 22222

Result: 2*5

Error

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the correct way to print the following text including quotes? She said, "Python is fun!"

print('She said, "Python is fun!"')

print("She said, "Python is fun!"")

print(She said, "Python is fun!")

print("She said, \"Python is fun!\"")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be displayed? # This is a comment print("Hello")

# Another comment

# This is a comment Hello # Another comment

Hello

This is a comment Hello Another comment

Error

Create a free account and access millions of resources

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

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

Already have an account?