Python Programming Quiz

Python Programming Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

TIN HỌC 10 - BÀI 21

TIN HỌC 10 - BÀI 21

10th Grade

10 Qs

Logo Cost

Logo Cost

9th - 12th Grade

10 Qs

GCSE AQA 04 Computer Systems - Languages & Translators

GCSE AQA 04 Computer Systems - Languages & Translators

10th - 11th Grade

12 Qs

Tecnologia Quizizz

Tecnologia Quizizz

1st - 12th Grade

12 Qs

Python Lists

Python Lists

6th - 10th Grade

15 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

10th Grade

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

ERIC STANSBERRY

FREE Resource

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

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

Already have an account?