Year 9 Homework Quiz 1 - Python

Year 9 Homework Quiz 1 - Python

8th Grade

15 Qs

quiz-placeholder

Similar activities

 Computing Revision JCG

Computing Revision JCG

KG - University

14 Qs

Some Python basics

Some Python basics

6th - 8th Grade

16 Qs

Python Revision

Python Revision

8th Grade

15 Qs

Year 7 Python Lesson 1 Recap

Year 7 Python Lesson 1 Recap

8th Grade

10 Qs

Python

Python

7th - 8th Grade

13 Qs

Introduction to Python programming

Introduction to Python programming

6th - 8th Grade

20 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Python

Python

7th - 8th Grade

10 Qs

Year 9 Homework Quiz 1 - Python

Year 9 Homework Quiz 1 - Python

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Joshua Reid

Used 8+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what is a variable?

A variable is a symbolic name for a storage location that can hold data and whose value can change.
A variable is a command that executes a function.
A variable is a type of programming language.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many variables exist in the following code?

Two - Num1 and Num2

Three - if, elif and else

Two - AND, OR

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be output if the following code was executed?

Num1 is larger

Num1 is smaller

Both the same

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In python programming, what does the following code demonstrate?

Selection

Iteration

Variable Assignment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1variable

variable_name

variable-name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would produce an error?

print(7 * 7)

print(7 * "7")

print("7" * "7")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct definition for "syntax"

The rules of language

The errors that a program produces

The programming concepts such as variables and selection

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?