Quizz 1 With Solution
Quizz 1 With Solution
Page 1
What's printed?
int
2.0
int then 2.0
x+y=2
x*x = 2
2=x
xy = 2
None of the Above
Page 2
romania_gold += 1
print(total_gold)
What's printed?
74 then 74
74 then 75
74
75
Page 3
4 What is the value of the variable 'u' from the code below?
once = "umbr"
repeat = "ella"
u = once + (repeat+" ")*4
umbrellaellaellaella
260000
26 100
x is smaller
y is smaller
9 How many times will the code below print "common letter"?
s1 = "mit u rock"
s2 = "i rule mit"
if len(s1) == len(s2):
for char1 in s1:
for char2 in s2:
if char1 == char2:
print("common letter")
break
02
4
10 Which function asks the user to provide information by typing it on the keyboard ?
input()
get()
scanf()
- GetLine()
Sans réponse