Python 3 Basics

Python 3 Basics

9th Grade

13 Qs

quiz-placeholder

Similar activities

GRADE 9 PART B UNIT 5 INTRODUCTION TO PYTHON

GRADE 9 PART B UNIT 5 INTRODUCTION TO PYTHON

9th Grade

10 Qs

Python Input and Arithmetic Quiz

Python Input and Arithmetic Quiz

9th Grade - University

17 Qs

Python Introduction

Python Introduction

9th Grade

15 Qs

Python Basics

Python Basics

KG - University

16 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Python Codehs

Python Codehs

7th - 12th Grade

10 Qs

Python Conditionals and If Statements

Python Conditionals and If Statements

8th Grade - University

15 Qs

Python Arithmetic

Python Arithmetic

9th Grade - University

10 Qs

Python 3 Basics

Python 3 Basics

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Vernon Leigh

Used 8+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a variable in Python?

variable_name = value

name = variable_value

value = variable_name

value = name_variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

*

//

**

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 5 + 3 * 2?

16

10

7

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after the following code: x = 5 + 3 * 2?

10

16

7

11

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of operations in Python?

parentheses, exponentiation, multiplication and division, addition and subtraction

multiplication and division, addition and subtraction, parentheses, exponentiation

parentheses, exponentiation, addition and subtraction, multiplication and division

addition and subtraction, multiplication and division, parentheses, exponentiation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for an if statement in Python?

if (condition)

if [condition]

if condition:

if {condition}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for an else statement in Python?

else

otherwise

if not

else:

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?