PYTHON_CHAPTER 7

PYTHON_CHAPTER 7

University

10 Qs

quiz-placeholder

Similar activities

DevCamp Phase 1

DevCamp Phase 1

University

15 Qs

CB3491 CRYPTOGRAPHY AND CYBER SECURITY

CB3491 CRYPTOGRAPHY AND CYBER SECURITY

University

10 Qs

EC335 - Quiz 1

EC335 - Quiz 1

University

10 Qs

Python Module 1

Python Module 1

University - Professional Development

13 Qs

Python Dictionaries

Python Dictionaries

University

10 Qs

2021_DASPRO_Pertemuan4

2021_DASPRO_Pertemuan4

University

10 Qs

Python

Python

University

10 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 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?