CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Midterm - MIL 12

Midterm - MIL 12

12th Grade

12 Qs

J808 LO1 and LO2 planning project keywords / terms

J808 LO1 and LO2 planning project keywords / terms

9th - 11th Grade

15 Qs

BTEC UNIT 1 THE ONLINE WORLD QUIZ 1

BTEC UNIT 1 THE ONLINE WORLD QUIZ 1

12th Grade

10 Qs

analisis data dan visualisasi data

analisis data dan visualisasi data

10th Grade

10 Qs

ASK Tingkatan 1: 2.2.2 Format Imej pada Fail yang Sama

ASK Tingkatan 1: 2.2.2 Format Imej pada Fail yang Sama

12th Grade - University

12 Qs

Kuiz Senang

Kuiz Senang

7th - 9th Grade

10 Qs

Computer Education Grade 3 Volume 4 Quiz

Computer Education Grade 3 Volume 4 Quiz

3rd Grade - University

10 Qs

BTEC L2 Online World Week 1-7

BTEC L2 Online World Week 1-7

11th - 12th Grade

15 Qs

CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Scott Chamberlain

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 1 pt

Python Dictionaries store information using pairs of ​ (a)   and ​ (b)  

keys
values
indices
parameters

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The dictionary dnry is initialized as follows:

dnry = {"L": 8, "W": 5, "H": 11}

Which statement would evaluate to 5?

dnry[1]

dnry["W"]

dnry["5"]

dnry[2]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For which Python data type does the order of the items matter?

dictionaries only

lists only

both dictionaries and lists

neither dictionaries nor lists

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Dictionary dnry is defined as follows:

dnry = {"A": "x", "B": "y", "C": "z"}

Which Python statement will return True?

I. "y" in dnry

II. "C" in dnry

I only

II only

Both I and II

Neither I nor II

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed by the code shown here?

{'PG': 'Adams', 'SG': 'Berk', 'C': 'Dugan'}

{'PG': 'Adams', 'SG': 'Berk', 'C': 'Nelson'}

{'PG': 'Adams', 'SG': 'Berk', 'C': 'Dugan', 'SF': 'Harris', 'C': 'Nelson'}

{'PG': 'Adams', 'SG': 'Berk', 'C': 'Nelson', 'SF': 'Harris'}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement(s) will set the value of the key "99" to "Judge" in the dictionary NYY if the key "99" is found, and add the key/value pair if the key "99" is not found?

I. NYY["99"] = "Judge"

II. NYY.update({"99": "Judge"})

III. NYY.setdefault("99", "Judge")

I only

II only

II and III only

I and II only

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the code shown here?

0

3

10

13

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?