Python Basics

Python Basics

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Functions Review (codeHS Tracy Python)

Functions Review (codeHS Tracy Python)

6th - 8th Grade

12 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

Python - Year 8

Python - Year 8

3rd Grade - University

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Python Variables

Python Variables

6th Grade

10 Qs

Lua quiz: Basics (Print, functions, while true loops)

Lua quiz: Basics (Print, functions, while true loops)

5th - 8th Grade

10 Qs

Coding Quiz 1

Coding Quiz 1

6th - 8th Grade

10 Qs

Swift Playgrounds Quiz

Swift Playgrounds Quiz

8th Grade

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Melih Gülcan

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python operator is used for exponentiation?

/

^

**

//

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print?

27

19

15

17

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will this for loop execute?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best when the number of iterations is unknown?
A)
B)
C)
D)

for loop

while loop

do-while loop

Infinite loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

Yes

No

True

Nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a function in Python?

function myFunc() {}

def myFunc():

myFunc() => {}

function: myFunc()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?
print(2 * 3 + 1)

8

5

6

7