Python 3: Project-based Python, Algorithms, Data Structures - Strings, variables, top down execution flow

Python 3: Project-based Python, Algorithms, Data Structures - Strings, variables, top down execution flow

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two types of lists introduced in the video?

Lists of dictionaries and lists of tuples

Lists of floats and lists of booleans

Lists of sets and lists of ranges

Lists of integers and lists of strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to sort a list without modifying the original list?

arrange()

sort()

sorted()

order()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between the sort method and the sorted function?

Neither sorts in place

sorted function sorts in place, sort method does not

Both sort in place

sort method sorts in place, sorted function does not

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you check if an element exists in a list?

Using the 'in' keyword

Using the 'check' method

Using the 'exists' keyword

Using the 'find' function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function would you use to find the length of a list?

size()

length()

count()

len()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns the smallest element in a list?

smallest()

min()

max()

least()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you directly access the last element of a list?

Using index len(list)

Using index 1

Using index -1

Using index 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?