Basic Python Concepts

Basic Python Concepts

5th Grade

10 Qs

quiz-placeholder

Similar activities

Coding - Computer Programming

Coding - Computer Programming

KG - University

10 Qs

Uvod u Python

Uvod u Python

5th Grade

14 Qs

Python - Data types and Conditional statements

Python - Data types and Conditional statements

4th - 8th Grade

10 Qs

Programming concepts: Revision

Programming concepts: Revision

4th - 9th Grade

15 Qs

coding

coding

KG - Professional Development

15 Qs

Python

Python

5th Grade

6 Qs

Python Fundamentals

Python Fundamentals

1st - 10th Grade

12 Qs

Programming Basics

Programming Basics

KG - University

8 Qs

Basic Python Concepts

Basic Python Concepts

Assessment

Quiz

Computers

5th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?