Python Quiz

Python Quiz

University

10 Qs

quiz-placeholder

Similar activities

Kuis - Refleksi Materi Microsoft Excel

Kuis - Refleksi Materi Microsoft Excel

9th Grade - University

10 Qs

W4 session 1 knowledge check

W4 session 1 knowledge check

University

10 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Conceptos Básicos HTML5 y CSS3

Conceptos Básicos HTML5 y CSS3

University

11 Qs

Scratch Pre-knowledge

Scratch Pre-knowledge

3rd Grade - University

15 Qs

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th Grade - University

15 Qs

KUIS KODING & KA 1

KUIS KODING & KA 1

10th Grade - University

10 Qs

Quiz Meet 1 Mini SC Programing

Quiz Meet 1 Mini SC Programing

University

10 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?