Week2

Week2

1st Grade

8 Qs

quiz-placeholder

Similar activities

c++ quiz1

c++ quiz1

1st Grade

10 Qs

Atividade 2- Programação

Atividade 2- Programação

1st Grade

10 Qs

Quiz Trial Class Seven Class

Quiz Trial Class Seven Class

1st - 5th Grade

8 Qs

Prompt_questions

Prompt_questions

1st - 5th Grade

7 Qs

1. Tin học lớp 4. Phần cứng và mềm

1. Tin học lớp 4. Phần cứng và mềm

1st - 5th Grade

10 Qs

Sumas y Restas Divertidas

Sumas y Restas Divertidas

1st Grade

10 Qs

Quiz Konfigurasi Mikrotik

Quiz Konfigurasi Mikrotik

1st Grade

10 Qs

Quiz Integrasi Word dan Excel

Quiz Integrasi Word dan Excel

1st Grade

10 Qs

Week2

Week2

Assessment

Quiz

Information Technology (IT)

1st Grade

Practice Problem

Medium

Created by

Simran Simran

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...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3 + 4 * 2 // (1 - 5) ** 2

2

2.5

3

3.5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Reorder the following to get an output of 7

print(result)

x *= 2

x += 5

result = x // 3

x -= 3

x *= 2

x = 10

x -= 3

x += 5

result = x // 3

print(result)

x = 10

x -= 3

x *= 2

x += 5

result = x // 3

print(result)

x = 10

x += 5

x *= 2

x -= 3

result = x // 3

print(result)

x = 10

x *= 2

x -= 3

x += 5

result = x // 3

print(result)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After the following statements, what are the values of x and y?

x = 15

y = x

x = 22

x is 15 and y is 15

x is 22 and y is 22

x is 15 and y is 22

x is 22 and y is 15

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Given the following variable names, identify which ones are invalid?

var$ible

_privatevar

2nd_variable

valid variable

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

print(2**3**2)

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

3 * str(2)+"simr"

7.

MATCH QUESTION

30 sec • 1 pt

Given this function:
def greet(name, greeting="Hello"):

return f"{greeting}, {name}!"

Match the correct function calling with their output

<function greet at x>

print(greet("Bob"))

Error!

print(greet())

Hello, Bob!

print(greet("Alice", "Hi"))

Hi, Alice!

print(greet)

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def factorial(n):

if n == 1:

return 1

else:

return n * factorial(n - 1)

# Compute the factorial of 0

print(factorial(0))

Error

NAN

1

0