Python Basics

Python Basics

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Python Statements

Python Statements

5th - 7th Grade

10 Qs

FOR LOOPS and Angles with Tracy (PYTHON)

FOR LOOPS and Angles with Tracy (PYTHON)

7th - 8th Grade

10 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Python Final Assessment

Python Final Assessment

4th - 12th Grade

10 Qs

Coding Vocabulary Words

Coding Vocabulary Words

8th Grade

12 Qs

Computer Programming Basics

Computer Programming Basics

8th Grade

11 Qs

Semester Exam

Semester Exam

6th - 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