Basic Python Concepts

Basic Python Concepts

5th Grade

10 Qs

quiz-placeholder

Similar activities

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Computer Programming Quiz

Computer Programming Quiz

5th Grade

11 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Tea-Fijala

Tea-Fijala

1st - 5th Grade

6 Qs

nested if

nested if

3rd - 7th Grade

10 Qs

Python Programming

Python Programming

1st - 9th Grade

5 Qs

Python 146- While Loops

Python 146- While Loops

4th Grade - Professional Development

10 Qs

Y9 System architecture

Y9 System architecture

5th Grade

10 Qs

Basic Python Concepts

Basic Python Concepts

Assessment

Quiz

Computers

5th Grade

Hard

Created by

Antonia Pešo

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?