Day 2

Day 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Office T&T

Office T&T

Professional Development

12 Qs

Digital Tools in Education Pre-Test

Digital Tools in Education Pre-Test

Professional Development

10 Qs

ABREDES - Devasc Python

ABREDES - Devasc Python

Professional Development

14 Qs

rappers

rappers

7th Grade - Professional Development

6 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

Quality Day 22 Oct 2021

Quality Day 22 Oct 2021

Professional Development

10 Qs

gta san adres

gta san adres

KG - Professional Development

10 Qs

Ice Breaker Challenge- Guess the Tool by Its Logo

Ice Breaker Challenge- Guess the Tool by Its Logo

Professional Development

10 Qs

Day 2

Day 2

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Akash 1705004

Used 1+ 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.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which of the following data types in Python is mutable?

String

Tuple

List

Dictionary

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What will be the output of the following code?

my_tuple = (1, 2, 3)

my_tuple[0] = 4

print(my_tuple)

(1, 2, 3)

(4, 2, 3)

Error: Tuple indices must be integers, not strings

Error: Tuple object does not support item assignment

3.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

Which data type in Python is used to store a collection of elements with no duplicate values?

Set

List

Tuple

Dictionary

4.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which of the following is NOT a valid way to create a dictionary in Python?

my_dict = {}

my_dict = dict()

my_dict = {1: 'one', 2: 'two', 3: 'three'}

my_dict = {'one': 1, 'two': 2, 'three': 3}

5.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

What is the result of the expression: len("Hello World")?

5

10

11

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which of the following data types in Python allows duplicate elements?

List

Tuple

Set

Dictionary

7.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

What will be the type of the following expression: type((1,2))?

List

Tuple

Set

str

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?