Search Header Logo

Basic Python Concepts

Authored by Antonia Pešo

Computers

5th Grade

Basic Python Concepts
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?