
Week2

Quiz
•
Information Technology (IT)
•
1st Grade
•
Medium
Simran Simran
Used 1+ times
FREE Resource
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
Hello, Bob!
print(greet)
Hi, Alice!
print(greet("Bob"))
<function greet at x>
print(greet())
Error!
print(greet("Alice", "Hi"))
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
Similar Resources on Wayground
7 questions
Samuel e Luis

Quiz
•
1st Grade
5 questions
Alpro Percabangan-Perulangan

Quiz
•
1st Grade
5 questions
Ôn lại kiến thức buổi 1

Quiz
•
1st - 5th Grade
11 questions
Python (basics)

Quiz
•
1st Grade - University
7 questions
Lekcja 1 - Quiz

Quiz
•
1st - 5th Grade
10 questions
Scratch Al-Azhar Small Final

Quiz
•
1st - 5th Grade
10 questions
LOGIC GATE

Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade