Day 5 - Team 17

Day 5 - Team 17

University

15 Qs

quiz-placeholder

Similar activities

Get started with python

Get started with python

University

19 Qs

CSE 102 Exam 3 Practice

CSE 102 Exam 3 Practice

University

18 Qs

Python Programming

Python Programming

University

10 Qs

Python Day 5

Python Day 5

University

15 Qs

Q1 - Comp Vision

Q1 - Comp Vision

University

10 Qs

AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

8-期中总结

8-期中总结

University

20 Qs

CSE 6R Midterm Review

CSE 6R Midterm Review

University

10 Qs

Day 5 - Team 17

Day 5 - Team 17

Assessment

Quiz

Computers

University

Hard

Created by

ARAVINDHAN T

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create an empty list?

my_list = {}

my_list = []

my_list = ()

my_list = [None]

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you add the number 5 to the end of a list named `numbers`?

numbers.add(5)

numbers.append(5)

numbers.insert(5)

numbers.extend(5)

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you access the first element of a list named `fruits`?

fruits[0]

fruits[1]

fruits[first]

fruits.get(0)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you remove the element `10` from a list named `numbers`?

numbers.remove(10)

numbers.delete(10)

numbers.pop(10)

numbers.discard(10)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you find the length of a list named `items`?

len(items)

items.length()

length(items)

items.size()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create an empty tuple?

my_tuple = {}

my_tuple = []

my_tuple = ()

 my_tuple = (None)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you access the second element of a tuple named `my_tuple`?

my_tuple[1]

my_tuple[2]

 my_tuple(1)

my_tuple[0]

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?