Python Programming Quiz

Python Programming Quiz

University

13 Qs

quiz-placeholder

Similar activities

TOPIC 3: SEQUENTIAL LIST

TOPIC 3: SEQUENTIAL LIST

University

15 Qs

Preguntas sobre Python

Preguntas sobre Python

University

10 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

15 Qs

Quiz Java y Python

Quiz Java y Python

University

18 Qs

Chapter 2 Module Phyton

Chapter 2 Module Phyton

University

10 Qs

Python - Revisão P2

Python - Revisão P2

University

15 Qs

Contadores y Acumuladores

Contadores y Acumuladores

University

10 Qs

Bài 24

Bài 24

10th Grade - University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Darren Hong

Used 3+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?