Search Header Logo

Knowledge Organiser Y9 Term 2.2

Authored by P Bailey

Computers

3rd Grade

Used 20+ times

Knowledge Organiser Y9 Term 2.2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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...

Floor division

Concatentaion

Iteration

Integer division

Answer explanation

Joining two strings together to create a new string is known as concatenation. This process combines the strings end-to-end, making 'concatenaion' the correct choice among the options provided.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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?

,

*

-

+

Answer explanation

In Python, the '+' symbol is used to concatenate or join two strings together. For example, 'Hello' + ' World' results in 'Hello World'. The other options do not serve this purpose.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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.

True

False

Answer explanation

True. A string is indeed a data type that can store a sequence of characters, including text, symbols, and numbers.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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*

Float

String

Boolean

Integer

Answer explanation

A password like C0ys1998* contains letters, numbers, and special characters, making it a string. Strings are the appropriate data type for storing text, including passwords, while other types like Float, Boolean, and Integer are not suitable.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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?

surname

secondname

firstname

first name

Answer explanation

The missing part between the + symbols is 'firstname'. This allows the input prompt to greet the user with their first name before asking for their surname, making it more personalized.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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"?

8

14

9

Answer explanation

The variable 'password' contains the string 'C0ys1999*', which has 9 characters. Therefore, the function len(password) returns 9, which is stored in 'passwordLength'. Thus, the correct answer is 9.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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?

The variable is spelt incorrectly

The wrong case has been used

The command order is incorrect

Answer explanation

The code will raise a syntax error because 'PASSWORD' is used instead of 'password'. Python is case-sensitive, so the variable name must match exactly, making 'The wrong case has been used' the correct choice.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers