ML 1 Python

ML 1 Python

University

20 Qs

quiz-placeholder

Similar activities

Chapter 5 Test

Chapter 5 Test

9th Grade - University

15 Qs

Earth's History

Earth's History

7th Grade - University

20 Qs

Unit 5 PreTest Earth, Moon and Sun

Unit 5 PreTest Earth, Moon and Sun

8th Grade - University

20 Qs

Genetics test review

Genetics test review

7th Grade - University

20 Qs

Nutrition Unit Test

Nutrition Unit Test

9th Grade - University

20 Qs

SOAL TAJWID KELAS 8 MTs.ITTIHAD SAMARINDA

SOAL TAJWID KELAS 8 MTs.ITTIHAD SAMARINDA

12th Grade - University

20 Qs

Ujian Bahasa Indonesia Kelas VI

Ujian Bahasa Indonesia Kelas VI

6th Grade - University

20 Qs

Plate Tectonics OST Practice

Plate Tectonics OST Practice

8th Grade - University

15 Qs

ML 1 Python

ML 1 Python

Assessment

Quiz

others

University

Practice Problem

Hard

Created by

Rajad Shakya

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

tuple
string
list
frozenset

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python x = [1, 2, 3] print(x[1]) ```

IndexError
3
2
1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to add an element to the end of a list?

insert()
extend()
pop()
append()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python x = (1, 2, 3) print(x[2]) ```

IndexError
2
1
3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

tuple
list
dictionary
set

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a tuple in Python?

tuple = {}
tuple = ()
tuple = ()()
tuple = []

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

function_name():
create function_name():
def function_name():
function function_name():

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

Already have an account?