Basic Operations in Programming Languages (AQA A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
10 questions from this quiz
ShowHide
Practise the questions
10 questions from this quiz
What is a variable in programming?
What is a variable in programming?
A data item whose value can change
Why might adding 2 + 2 give '22' instead of 4?
Why might adding 2 + 2 give '22' instead of 4?
If values treated as text not numbers
Which symbol is used for multiplication in programming languages?
Which symbol is used for multiplication in programming languages?
What does the modulo (MOD) operator return?
What does the modulo (MOD) operator return?
Only the remainder from division
Why are pseudo-random numbers unsuitable for cryptography?
Why are pseudo-random numbers unsuitable for cryptography?
They use algorithms making them predictable
What result do relational operations always produce?
What result do relational operations always produce?
TRUE or FALSE
For Boolean AND to return TRUE, what must happen?
For Boolean AND to return TRUE, what must happen?
Both conditions must be met
When does Boolean XOR return TRUE?
When does Boolean XOR return TRUE?
One or other condition met, but not both
What is concatenation in string handling?
What is concatenation in string handling?
Adding strings together to create another
What is the difference between an integer and a float?
What is the difference between an integer and a float?
Integer is whole; float has fractional part
