Search Header Logo

python boot camp

Authored by SECE IT

Computers

University

python boot camp
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5 y = x y = 10 print(x)

5

10

None

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(2 ** 3 ** 2)

512

64

256

36

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def func(x, y=[]):

y.append(x)

return y

print(func(1))

print(func(2))

print(func(3, []))

print(func(4))

[1] [2] [3] [4]

[1] [1, 2] [3] [1, 2, 4]

[1] [2] [3] [4]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

print(x == 5 and x < 10 or x > 10)

True

False

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(2** (3** 2))

512

64

729

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = "Hello"

y = 3

print(x * y)

'HelloHelloHello'

'Hello3'

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = [1, 2, 3, 4]

b = a

b.append(5)

print(a)

[1, 2, 3, 4]

[1, 2, 3, 4, 5]

[5, 1, 2, 3, 4]

Error

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?

Discover more resources for Computers