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

Practice Problem

Hard

Created by

Wayground 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

Access all questions and much more by creating a free account

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?