ML 1 Python

ML 1 Python

University

20 Qs

quiz-placeholder

Similar activities

PENILAIAN TENGAH SEMESTER 1 TAHUN PELAJARAN 2024/2025

PENILAIAN TENGAH SEMESTER 1 TAHUN PELAJARAN 2024/2025

4th Grade - University

20 Qs

Penilaian Tengah Semester Genap Kelas IX

Penilaian Tengah Semester Genap Kelas IX

9th Grade - University

20 Qs

Genetics test review

Genetics test review

7th Grade - University

20 Qs

Genetics test review

Genetics test review

7th Grade - University

20 Qs

Quiz - IA

Quiz - IA

University

16 Qs

SOAL TAJWID KELAS 8 MTs.ITTIHAD SAMARINDA

SOAL TAJWID KELAS 8 MTs.ITTIHAD SAMARINDA

12th Grade - University

20 Qs

Review on Fluids - AP Physics 1

Review on Fluids - AP Physics 1

12th Grade - University

20 Qs

Python Programming Quiz

Python Programming Quiz

University

20 Qs

ML 1 Python

ML 1 Python

Assessment

Quiz

others

University

Hard

Created by

Rajad Shakya

Used 2+ times

FREE Resource

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