ML 1 Python

ML 1 Python

University

20 Qs

quiz-placeholder

Similar activities

Waves 8.8 A

Waves 8.8 A

8th Grade - University

21 Qs

IIT- Revision Chapter 4

IIT- Revision Chapter 4

University

20 Qs

Open Note Andy Warhol Quiz

Open Note Andy Warhol Quiz

9th Grade - University

17 Qs

| SINH NHẬT ĐỘI | - TEST - K47

| SINH NHẬT ĐỘI | - TEST - K47

University

20 Qs

Force and Motion Test Study Guide

Force and Motion Test Study Guide

8th Grade - University

20 Qs

Potential & Kinetic Energy Quiz Review

Potential & Kinetic Energy Quiz Review

8th Grade - University

18 Qs

French Revolution Vocabulary quiz

French Revolution Vocabulary quiz

9th Grade - University

20 Qs

P1. U3. Earth Science

P1. U3. Earth Science

University

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