Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Software-Chapter 6

Software-Chapter 6

7th - 10th Grade

10 Qs

Networking_Terminology_1

Networking_Terminology_1

8th - 12th Grade

10 Qs

Trắc nghiệm bài 12 tin học 11

Trắc nghiệm bài 12 tin học 11

11th Grade

10 Qs

Cell SA:V

Cell SA:V

11th - 12th Grade

12 Qs

INTRO TO CLASSIFICATION

INTRO TO CLASSIFICATION

KG - University

12 Qs

Latihan TIK Kls 5

Latihan TIK Kls 5

5th Grade

15 Qs

bài tập câu lệnh đk

bài tập câu lệnh đk

8th Grade

15 Qs

Which of these softwares???

Which of these softwares???

4th - 5th Grade

13 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

Assessment

Quiz

Computers, Biology

1st - 12th Grade

Practice Problem

Easy

Created by

Ali Afzalian Mand

Used 5+ 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

2 mins • 1 pt

What is the output of the following code:

x = 3

if 2 > x :

print 'First'

else :

print 'Second'

if 2 > x :

print 'Third'

print 'Fourth'

print 'Fifth'

Second

Fourth

Fifth

First

Second

Third

Fourth

Fifth

Fifth

First

Third

Fifth

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

1. Which of the below statements will create a Python list?

list1 = list()

list1 = []

list1 = list([1, 2, 3])

all of the mentioned

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If list_example is [2, 33, 222, 14, 25], What is list_example[:-1]?

Error

25

[2, 33, 222, 14]

[25, 14, 222, 33, 2]

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Find the output of the following Python code snippet:

print 'ab cd-ef'.title(),

Ab cd-ef

Ab Cd-ef

Ab Cd-Ef

None of the mentioned

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Find the output of the following Python code snippet?

print('abcd'.translate({97: 98, 98: 99, 99: 100}))

bcde

abcd

error

none of the mentioned

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Shortly explain why the output of the following Python code is 16?

count={}

count[(1,2,4)] = 5

count[(4,2,1)] = 7

count[(1,2)] = 6

count[(4,2,1)] = 2

tot = 0

for i in count:

tot=tot+count[i]

print(len(count)+tot)


output:16

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the statements about dictionary values is false?

More than one key can have the same value

The values of the dictionary can be accessed as dict[key]

Values of a dictionary must be unique

Values of a dictionary can be a mixture of letters and numbers

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

Already have an account?