ML 1 Python

ML 1 Python

University

20 Qs

quiz-placeholder

Similar activities

MENYELESAIKAN BUSANA DENGAN JAHITAN TANGAN

MENYELESAIKAN BUSANA DENGAN JAHITAN TANGAN

12th Grade - University

20 Qs

Conductivity Passage Questions

Conductivity Passage Questions

5th Grade - University

17 Qs

M4 W2 Spelling Test

M4 W2 Spelling Test

5th Grade - University

15 Qs

Chemistry Midterm Review 1

Chemistry Midterm Review 1

10th Grade - University

17 Qs

Measures of Position for Ungrouped Data Quiz

Measures of Position for Ungrouped Data Quiz

10th Grade - University

20 Qs

Abolitionist Movement Quiz

Abolitionist Movement Quiz

8th Grade - University

15 Qs

SOAL LITERASI & NUMERASI INFORMATIKA

SOAL LITERASI & NUMERASI INFORMATIKA

1st Grade - University

17 Qs

Earth & Space Test Review

Earth & Space Test Review

6th Grade - University

20 Qs

ML 1 Python

ML 1 Python

Assessment

Quiz

others

University

Hard

Created by

Rajad Shakya

Used 5+ times

FREE Resource

AI

Enhance your content

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?