Python Programming Quiz

Python Programming Quiz

University

13 Qs

quiz-placeholder

Similar activities

Use Cases and  Domain Classes

Use Cases and Domain Classes

University

15 Qs

Quiz sobre la Historia de la Computadora

Quiz sobre la Historia de la Computadora

9th Grade - University

15 Qs

Data Literacy Quizizz

Data Literacy Quizizz

6th Grade - University

15 Qs

PPL 223 - (QUIZ 3) Data Types and Structures

PPL 223 - (QUIZ 3) Data Types and Structures

University

15 Qs

Pretest AI Basic1 (2/5/67)

Pretest AI Basic1 (2/5/67)

University

10 Qs

Quiz Matrikulasi Data Science

Quiz Matrikulasi Data Science

University

10 Qs

高二資訊課補考題目

高二資訊課補考題目

11th Grade - University

10 Qs

OSI layer

OSI layer

11th Grade - University

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Darren Hong

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the correct way to define a function in Python?

function myFunc():

def myFunc():

func myFunc():

define myFunc():

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which data type is immutable in Python?

List

Dictionary

String

Set

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if "apple" exists as a key in fruits = {"apple": 1, "banana": 2}?

"apple" in fruits

fruits.has_key("apple")

"apple" exists in fruits

if fruits("apple"):

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the output of bool([]) in Python?

True

False

None

Error

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which statement is used to handle exceptions in Python?

catch

try-except

error

handle

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the result of 3 * "Python"?

"PythonPythonPython"

["Python", "Python", "Python"]

Error

("Python", "Python", "Python")

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Is Python a case-sensitive language?

Yes

No

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?