Pythonkod

Quiz
•
Computers
•
6th - 8th Grade
•
Easy

Björn Andersson
Used 51+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
— = indragen text
if 5 > 2
—print("Hej!")
Hej!
Noll
5
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
— = indragen text
i = 1
print(i)
i += 1
3
2
1
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
— = indragen text
i = 1
i += 1
print(i)
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
name = "Bertil"
age = 33
person = name + age
Bertil
name
Bertil 33
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
— = indrag
i = 1
while i < 5:
—print(i) i += 1
5
1
1
2
3
4
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
num1 = 10
num2 = 2
sign = -
if sign == "+":
—summa = int(num1) + int(num2)
elif sign == "-":
—summa = int(num1) - int(num2)
elif sign == "*":
—summa = int(num1) * int(num2)
elif sign == "/":
—summa = int(num1) / int(num2)
print(summa)
8
5
12
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket blir resultatet av koden?
— = indrag
a = 3
print ("Hej")
if a == 3:
—print("och")
elif a == 5:
—print("hej då!")
print("god morgon!")
Hej
och
hej då!
Hej
och
god morgon!
god morgon!
hej då!
god morgon!
Similar Resources on Wayground
10 questions
Programming

Quiz
•
1st - 10th Grade
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
10 questions
Типы данных

Quiz
•
7th Grade
12 questions
алгоритм python

Quiz
•
6th - 8th Grade
8 questions
Оператор for - считаем итерации!

Quiz
•
8th - 9th Grade
8 questions
Variables in Python

Quiz
•
8th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
11 questions
Алгоритмді программалау

Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
Discover more resources for Computers
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
20 questions
Guess The Cartoon!

Quiz
•
7th Grade