c2 2-3 Variables Constants and Input - GCSE QUIZ

c2 2-3 Variables Constants and Input - GCSE QUIZ

10 Qs

quiz-placeholder

Similar activities

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

KG - University

13 Qs

G8 Unit 4 Vocabulary

G8 Unit 4 Vocabulary

KG - University

6 Qs

Day 5 STAAR® Blitz Assignment

Day 5 STAAR® Blitz Assignment

KG - University

14 Qs

Diagnostik Kognitif

Diagnostik Kognitif

KG - University

10 Qs

Boolean Logic

Boolean Logic

KG - University

12 Qs

Python

Python

KG - University

15 Qs

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

KG - University

13 Qs

c2 2-3 Variables Constants and Input - GCSE QUIZ

c2 2-3 Variables Constants and Input - GCSE QUIZ

Assessment

Quiz

others

Hard

Created by

Clare Ross

FREE Resource

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.

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?