PYTHON_CHAPTER 7

PYTHON_CHAPTER 7

University

10 Qs

quiz-placeholder

Similar activities

Python Quiz 2.0

Python Quiz 2.0

University

14 Qs

Python Quiz Techno India

Python Quiz Techno India

University

10 Qs

Dictionary Python

Dictionary Python

University

15 Qs

Python Dictionary

Python Dictionary

University

10 Qs

Python Basics: Dictionaries and Strings

Python Basics: Dictionaries and Strings

University - Professional Development

10 Qs

CMP128 Java Ch. 05 Methods

CMP128 Java Ch. 05 Methods

University

10 Qs

Topik7c-Dictionaries

Topik7c-Dictionaries

University

14 Qs

Week 5-ERD-1

Week 5-ERD-1

University

15 Qs

PYTHON_CHAPTER 7

PYTHON_CHAPTER 7

Assessment

Quiz

Computers

University

Medium

Created by

Marliana (AS)

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, object that stores a collection of data is known as _____.

string

dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each element in a dictionary has 2 parts:

a key and a value

a key and a variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can create a dictionary by enclosing the elements inside a set of _____.

square braces [ ]

curly braces { }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The elements in Python are separated by _____.

commas ,

colons :

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

myFriend ={'name':'Zul Arifin'}

Identify the key?

name

Zul Arifin

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A value is retrieved from a dictionary by specifying its corresponding key in _____.

curly brackets { }

square brackets [ ]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can use _____ as an alternative to the [ ] operator for getting a value from a dictionary.

go method

get method

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?