
Quizz - Recap 1: C1 - C5
Authored by Madalina Barbu
Computers
3rd Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the type of the following variable:
s = 10 + 2.5 * 2
int
string
float
boolean
Answer explanation
s = 10 + 2.5 * 2
s = 10 + 5
s = 15 --> int
Inmultirea se face inaintea adunarii. tinem cont de ordinea operatiilor
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the following variable?
n = ["mos", "voip", "ip", 4.9, True]
list
string
dictionary
set
tuple
3.
OPEN ENDED QUESTION
10 mins • Ungraded
1. Create a mixed list (all 4 data taypes) with 5 elements read from keyboard.
2. Iterate through list and add at the end of each element, letter "a". example("mama" --> "mamaa", "urat --> "urata")
3. Display the list.
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
5 mins • Ungraded
Define the function i_love_math that returns "I love numbers" if a given number si > 100 and "I hate math" if the given number is < 100.
Evaluate responses using AI:
OFF
5.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What the following snipet returns?
def even_num_lst(ran):
lst = []
for num in range(ran):
if num % 2 == 0:
lst.append(num)
return lst
print(even_num_lst(11))
[0, 2, 4, 6, 8, 10]
Error
[1, 3, 5, 7, 9, 11]
6.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What is the output of the following snipet?
def list_updater(lst):
upd_list = []
for elem in lst:
elem **= 2
upd_list.append(elem)
return upd_list
foo = [1, 2, 3, 4, 5]
print(list_updater(foo))
[1, 4, 9, 16, 25]
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{"Dana": 1, "Ria": 2}
Dictionar
Set
Lista
Tupla
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?