wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y9 Quiz 3.1

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Ava is creating a digital invitation for her birthday party. She wants to join the greeting "Hello" with her name to make a new string.

This is called...

a)

Floor division

b)

Concatentaion

c)

Iteration

d)

Integer division

2.

Emily is creating a personalized greeting card using Python. She wants to join two strings, 'Happy' and 'Birthday', to form a complete message. What symbol in Python should she use to join these two strings together?

a)

,

b)

*

c)

-

d)

+

3.

Matilda is creating a digital diary and wants to store her daily thoughts, symbols, and even some numbers. She wonders if a string is a suitable data type for this purpose.

a)

True

b)

False

4.

Chloe is setting up her new email account and needs to create a password. What data type should be used for a password, such as

C0ys1998*

a)

Float

b)

String

c)

Boolean

d)

Integer

5.

Aarav is registering for a new course online.

firstname = input("Enter your firstname")

surname = input(“Hey " + __________ + " Enter your surname")

What is missing between the + symbols?

a)

surname

b)

secondname

c)

firstname

d)

first name

6.

Neha is creating a secure password for her new email account. She decides to use the password "C0ys1999*".

passwordLength = len(password)

What is stored in the variable, "passwordLength"?

a)

8

b)

14

c)

9

7.

Oliver is trying to set a password for his new online account. He decides to use the password = ("C0ys1999*").

He then wants to check the length of his password using passwordLength = len(PASSWORD).

Why will this code get a syntax error?

a)

The variable is spelt incorrectly

b)

The wrong case has been used

c)

The command order is incorrect

8.

Rohan is writing a message to his friend and wants to know if spaces are counted in the length of the message.

"Hi Bob"

a)

True

b)

False

9.

Isla is writing a message to her friend and she types the following string:

"Hi Bob"

What is the length of characters in her message?

a)

6

b)

5

10.

Aarav is working on a project where he needs to join two text strings together to create a single string. This process is known as...

C (a)  

11.

Benjamin is writing a program to collect user information. Select the variable name and the string from this code.

Select 2 answers

first_name = input ("Enter your first name: ")

a)

first_name

b)

input

c)

"Enter your first name: "

d)

=

12.

Rosie is learning programming and she wonders if a Boolean data type should start with a capital letter.

answer_correct = True

a)

True

b)

False

13.

Rohan is measuring the weight of a fruit. He finds that the weight is 3.25 kg. This is an example of a float.

weight = 3.25

a)

True

b)

False

14.

Ava is keeping track of her scores in a game. She wonders if she should put speech marks around the score value.

score = 0

a)

Yes she should

b)

No she shouldn't

15.

Oliver is writing a program to display a greeting message. He wonders if he should put speech marks around the string.

print ("Hello")

a)

True

b)

False