Search Header Logo

Computational Thinking in Python[Quiz 3]

Authored by Karunya Hacks

Computers

University

Used 3+ times

Computational Thinking in Python[Quiz 3]
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

l1 = [4,6,8,1]

l1.append(5)

print(l1)

4,5,6,8,1

1,5,6,8,4

4,6,8,1,5

4,8,1,6,5

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the symbol of floor division in Python

**

/

\

//

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output

x = 4

y = 6

print(x == y)

True

Error

False

Invalid statement

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Correct syntax for while loop is

while(x>1)

#statements

While(x>1)

#statements

while x>1:

#statements

while x>1

#statements

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function do we use to add an element at a particular element in the list

insert()

append()

add_list()

list_append

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which statement brings the control out of the loop

pass

break

catch

try

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code

a = 4

b = 3

pro = a**b

print(pro)

12

64

32

128

Access all questions and much more by creating a free account

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?