Python Study Topics Quiz

Python Study Topics Quiz

University

25 Qs

quiz-placeholder

Similar activities

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

10th Grade - University

20 Qs

Usable Encryption Quiz

Usable Encryption Quiz

University

20 Qs

Prototyping Model in SDLC Quiz -SLT

Prototyping Model in SDLC Quiz -SLT

University

20 Qs

Khám Phá Thiết Kế Mạng LAN

Khám Phá Thiết Kế Mạng LAN

1st Grade - University

20 Qs

บทที่ 3 เครือข่ายคอมพิวเตอร์และอินเทอร์เน็ตในโรงแรม

บทที่ 3 เครือข่ายคอมพิวเตอร์และอินเทอร์เน็ตในโรงแรม

University

20 Qs

Informatika

Informatika

8th Grade - University

20 Qs

NET102:  Quiz No. 1

NET102: Quiz No. 1

University

20 Qs

IT for Managers M1

IT for Managers M1

University

20 Qs

Python Study Topics Quiz

Python Study Topics Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Ian Osolo

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a data type in Python?

Strings

Booleans

Characters

Floats

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator is used for comparison in Python?

==

!

||

&&

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which string method converts a string to lowercase?

.upper()

.title()

.lower()

.capitalize()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in Python?

func

def

define

function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to create a list in Python?

list = [1, 2, 3]

list = <1, 2, 3>

list = {1, 2, 3}

list = (1, 2, 3)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'yield' keyword do in Python?

Creates a generator

Raises an exception

Returns a value from a function

Ends a loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an immutable data structure in Python?

Set

Dictionary

Tuple

List

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?