Search Header Logo

c2 2-3 Variables Constants and Input - GCSE QUIZ

Authored by Clare Ross

others

c2 2-3 Variables Constants and Input - GCSE QUIZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of putting data into a variable called?

Assignment
Declaration
Identification
Admission

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines of code allow you to assign a value of 10 to a variable called myVariable in Python?

print(myVariable)
10 = myVariable
myVariable = 10
myVariable = input(10)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a constant?

It is a way of storing data values that do not change.
It is a way of storing data values that regularly change.
It is another name for a variable.
It is all the letters of the alphabet that are not vowels.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, how do you create a constant called VAT that stores in the number 20?

const VAT = 20
constant VAT = 20
VAT constant = 20
You can't create constants in Python.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In AQA Pseudocode, how do you create a constant called VAT that stores in the number 20?

const VAT ← 20
constant VAT ← 20
VAT constant ← 20
You can't create constants in AQA pseudocode.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Here is some simple Python code: myVar = 10 print(myVar) What is the output for this code?

myVar
10
myVar = 10
None of the above.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Below is some Python code for asking the user to input two numbers and add them together. userInput = input("Please enter your first number: ") userInput = input("Please enter your second number: ") result = userInput + userInput print(result) What mistake has been made in this code that will cause it to not work correctly?

The second input will overwrite the first input.
There is a syntax error due to using the wrong input command.
The variables have not had their data type selected correctly.
There is a syntax error due to using the wrong output statement.

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?