Python Programming Quiz

Python Programming Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

FOC Unit 1 Review

FOC Unit 1 Review

9th - 12th Grade

10 Qs

KD-3 & 4 Dasar Pemrograman Mikroprosesor dan Mikrokontroler

KD-3 & 4 Dasar Pemrograman Mikroprosesor dan Mikrokontroler

10th Grade

11 Qs

Программирование алгоритма 8 класс

Программирование алгоритма 8 класс

1st - 10th Grade

10 Qs

Python Alternating Turns

Python Alternating Turns

7th - 12th Grade

10 Qs

[Hall] 10.2 JS Functions

[Hall] 10.2 JS Functions

9th - 12th Grade

11 Qs

Game Design Acronyms

Game Design Acronyms

9th - 12th Grade

10 Qs

ICT SKILLS

ICT SKILLS

9th - 10th Grade

10 Qs

Computer Vocabulary 1

Computer Vocabulary 1

1st - 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

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?