
Basic Python Concepts

Quiz
•
Computers
•
5th Grade
•
Hard
Antonia Pešo
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Što su varijable u Pythonu?
Fiksne vrijednosti koje se ne mogu promijeniti.
Komande koje se koriste za izvršavanje koda.
Lokacije u memoriji koje imaju svoje ime i služe za pohranu podataka.
Vrsta funkcije u Pythonu.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Koja funkcija služi za ispis rezultata u Pythonu?
output()
show()
print()
display()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Što je rezultat naredbe 5+3 u Pythonu?
6
8
10
9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a conditional statement in Python?
when condition: # code to execute
if condition: # code to execute if condition is true elif another_condition: # code to execute if another_condition is true else: # code to execute if no conditions are true
if condition then: # code to execute
if condition: # execute code here
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'else' statement do in Python?
The 'else' statement is used to define a function in Python.
The 'else' statement only executes when the 'if' condition is true.
The 'else' statement is used to declare variables in Python.
The 'else' statement executes a block of code when the 'if' condition is false or when a loop finishes.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kako napraviti petlju koja će se izvršiti 5 puta?
for i in range(5): print(i)
for i in range(5): pass
for i in range(10): pass
while i < 5: pass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'input()' function?
To read files from the disk.
To take user input from the console.
To display output on the console.
To execute a command in the terminal.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
while loop

Quiz
•
5th Grade
15 questions
coding

Quiz
•
KG - Professional Dev...
10 questions
Introduction to Python Programming

Quiz
•
5th - 9th Grade
15 questions
Python - ponavljanje_a

Quiz
•
5th Grade
8 questions
Python

Quiz
•
KG - 9th Grade
10 questions
Scratch Introduction

Quiz
•
5th - 8th Grade
11 questions
python_quiz

Quiz
•
5th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade