PYTHON_CHAPTER 7

PYTHON_CHAPTER 7

University

10 Qs

quiz-placeholder

Similar activities

Python Variables

Python Variables

University

15 Qs

Python

Python

University

10 Qs

Python Basics

Python Basics

University

15 Qs

Python Day 9

Python Day 9

University

6 Qs

Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

DevCamp Phase 1

DevCamp Phase 1

University

15 Qs

Cybersecurity Fundamentals Week 5 Quiz

Cybersecurity Fundamentals Week 5 Quiz

KG - University

10 Qs

SCRIPTING PROGRAMMING WITH PYTHON

SCRIPTING PROGRAMMING WITH PYTHON

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?