CS 122 final

CS 122 final

Assessment

Flashcard

Science

University

Easy

Created by

Isabela Uribe

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

34 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the output of this following code

Back

False; after adding a key value it is deleted using the del keyword

2.

FLASHCARD QUESTION

Front

What is the output for the following code

Back

Type error: tuple object does not support item assignment

3.

FLASHCARD QUESTION

Front

What does the following code do

Back

Modifies the value associated with the key “x” ; the result will be {‘x’:15}

4.

FLASHCARD QUESTION

Front

Back

5.

FLASHCARD QUESTION

Front

Back

Key error because “c” is not in the dictionary

6.

FLASHCARD QUESTION

Front

Back

3; there are three key value pairs

7.

FLASHCARD QUESTION

Front

Back

Type error because key is a string and cannot be added to an integer

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?