Python Programming Quiz

Python Programming Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

10th Grade

10 Qs

Информатика

Информатика

9th - 11th Grade

15 Qs

Microsoft MDM & Apps

Microsoft MDM & Apps

10th Grade

10 Qs

PRA TEST KE 2 INFORMATIKA

PRA TEST KE 2 INFORMATIKA

10th Grade

14 Qs

SISTEM KOMPUTER (dasar)

SISTEM KOMPUTER (dasar)

10th Grade

15 Qs

Introducción tecnología

Introducción tecnología

7th - 11th Grade

10 Qs

Bài 8 - Câu lệnh lặp For - Cánh diều Python

Bài 8 - Câu lệnh lặp For - Cánh diều Python

10th Grade

10 Qs

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

ERIC STANSBERRY

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 is the output of the following code snippet? ```python print(8 // 3) ```

2.666

2

3

2.67

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a function in Python?

function myFunc():

def myFunc():

function: myFunc()

define myFunc():

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the object below? ```python L = [1, 23, 'hello', 1] ```

Dictionary

List

Tuple

Set

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert the value "apple" in a dictionary named fruits where the key is "favorite"?

fruits.insert("favorite", "apple")

fruits["favorite"] = "apple"

fruits.add("favorite", "apple")

fruits.append("favorite", "apple")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? ```python x = "awesome" print("Python is " + x) ```

Python is

Python

Python is awesome

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment a single line in Python?

/*

#

//

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python if 5 > 2: print("Five is greater than two!") ```

Error

True

Five is greater than two!

None

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

Already have an account?