NEW
Font size
WorksheetsGCSE Computer Science - Programming Keywords
Total questions: 15
Worksheet time: 8mins
Which python command assigns the value of the user input to the variable userName
userName = answer("What is your name?")
userName = print("What is your name?")
userName = input("What is your name?")
input("What is your name?") = userName
Which python statement assigns a numerical value input by a user and stores it in a variable of data type integer
num = input("Enter a number")
num = str(input("Enter a number"))
num = int(input("Enter a number"))
input("Enter a number") = num
"A named place to store a value that can change" is called a ...
Subroutine
Variable
Constant
Operator
A boolean data type hold what type of data?
Whole number
A group of characters
Single Character
True/ False
A string data type hold what type of data?
Whole number
A group of characters
Single Character
True/ False
Concatenation is...
Stripping characters from text
Concentrating very hard on coding
Joining together two or more strings
Changing an number to text
Giving a value to a variable is know as what
Assignment
Casting
Concatenation
Input Sanitisation
A WHILE loop is...
Condition Controlled
Count Controlled
Uncontrolled
Strongly Controlled
In if...elif...else statement in python uses which programming concept?
Sequence
Selection
Iteration
Proliferation
In programming, casting is...
Creating a collection of variables
Converting one data type to another
Joining together multiple strings
Doing impressive magic
An array is...
Data structure that contains multiple items of data of the same data type. Data is indexed so that a particular item can be easily found.
Data structure that contains multiple items of data that may be of different data types. Data is indexed so that a particular item can be easily found.
What is the value of x?
x = 16 MOD 5
3
1
3.2
21
What is the value of x?
x = 16 DIV 5
1
3
3.2
11
Pseudocode is a
High Level Programming Language
Spoken code
Method of expressing an algorithm in structured English
Method of encrypting code
The repeated execution of a section of code when a program is running is known as...
Sequence
Selection
Iteration
Subroutine
