Python Quiz

Python Quiz

University

10 Qs

quiz-placeholder

Similar activities

Chapter Quiz

Chapter Quiz

University

10 Qs

Lista de Exercícios – Vetores em Java - Parte I

Lista de Exercícios – Vetores em Java - Parte I

University

15 Qs

The Linux Vault

The Linux Vault

University

15 Qs

CLC Lesson 6 Quiz

CLC Lesson 6 Quiz

University

12 Qs

Quiz Pengembangan Aplikasi

Quiz Pengembangan Aplikasi

4th Grade - University

10 Qs

Python Loop

Python Loop

University

15 Qs

Konteynerlar (C++)

Konteynerlar (C++)

University

12 Qs

Структурированный тип данных массив

Структурированный тип данных массив

10th Grade - University

11 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Raymond Radebe

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to initialize a list in Python?

list = [1, 2, 3]

list = (1, 2, 3)

list = {1, 2, 3}

list = 1, 2, 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code:

print(type(3/2))?

<class 'int'>

<class 'float'>

<class 'str'>

<class 'complex'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function in Python?

func

function

define

def

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item to a list in Python?

add()

insert()

append()

push()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(2 ** 3)?

6

8

9

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions converts an object to a string in Python?

str()

int()

chr()

repr()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(4 // 2)?

2.0

2

4.0

4

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?