Python Data Structures

Python Data Structures

University - Professional Development

26 Qs

quiz-placeholder

Similar activities

Introducción al Desarrollo Web

Introducción al Desarrollo Web

Professional Development

23 Qs

Navigating Digital Information: Review of all Ten Videos

Navigating Digital Information: Review of all Ten Videos

9th Grade - University

23 Qs

Animación Digital Parcial 2

Animación Digital Parcial 2

University

23 Qs

Algoritmos

Algoritmos

University

23 Qs

DI (EM24) - Interacción (T2)

DI (EM24) - Interacción (T2)

University - Professional Development

21 Qs

Chapter 4-Java Selection & Loops

Chapter 4-Java Selection & Loops

University

21 Qs

Spreadsheet

Spreadsheet

9th Grade - Professional Development

21 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

25 Qs

Python Data Structures

Python Data Structures

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

secondary purpose

Used 144+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

s = 0

for d in range(0, 5, 0.1):

s += d

print(s)

Syntax Error

Type Error

Name Error

Traceback Error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Output of: max(''please help '')

please help

Error

p

s

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What command is used to shuffle a list ‘L’?

L.shuffle()

random.shufflelist(L)

shuffle(L)

random.shuffle(L)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is used to define a block of code (body of loop, if else etc.) in Python?

Indentation

Curly Braces

Parenthesis

Quotation

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, i is a/an _______?

i = (2)

String

Tuple

Int

Boolean

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following program?

language = ['P', 'y', 't', 'h', 'o', 'n']

print(language[:-4])

['t']

['P','y']

['P','y','t']

['t','h','o','n']

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Suppose a tuple test contains 5 elements. How can you set the 3rd element of the tuple to ‘Python’?

test[2] = 'Python'

test[3] = 'Python'

test(2) = 'Python'

Elements of tuple cannot be changed

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?