NEW
Font size
WorksheetsJ277 Programming - Outputting Data
Total questions: 10
Worksheet time: 5mins
Look at the algorithm above and answer the following question:How many variables are used?
1
2
3
4
Look at the algorithm above and answer the following question:How many constants are used?
1
2
3
4
Look at the algorithm above and answer the following question:What is the name of the first variable used?
Stone
Pounds
totalPounds
totalKilograms
What will playerName hold after running the following code? playerName = "Max" + "Jones"
MaxJones
maxjones
max jones
Max Jones
The program above should add together three numbers. What line of code is the error on?
1
2
3
4
Would you use a variable or constant in the following scenario: Used to store the value of pi (3.14159)
Variable
Constant
Would you use a variable or constant in the following scenario: Used to store a score in a game
Variable
Constant
What is a variable?
A variable is a number
A variable is a message input by the user
A variable is a location in memory that we use to store data
A variable is needed to record a student's surname. Which of the following would be the most meaningful variable name?
name
student_surname
studentName
sur
What statement is used to obtain a value for a variable from a user?
run
get
input
