Key Concepts and Syntax Glossary (OCR GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
Which operators are used for logical conditions in the OCR Exam Reference Language?
Which operators are used for logical conditions in the OCR Exam Reference Language?
AND, OR, NOT
What symbol is used for exponentiation in arithmetic operations?
What symbol is used for exponentiation in arithmetic operations?
^
What does the MOD operator do?
What does the MOD operator do?
Modulo operation
Which keyword is used to declare a constant?
Which keyword is used to declare a constant?
const
What keyword closes a FOR loop?
What keyword closes a FOR loop?
next
How does a DO UNTIL loop differ from a WHILE loop?
How does a DO UNTIL loop differ from a WHILE loop?
DO UNTIL checks condition at end
Which keyword closes an IF statement?
Which keyword closes an IF statement?
endif
In a SWITCH statement, which keyword handles cases that don't match?
In a SWITCH statement, which keyword handles cases that don't match?
default
What method returns the length of a string?
What method returns the length of a string?
.length
If subject is 'Computer Science', what does subject.substring(3,5) return?
If subject is 'Computer Science', what does subject.substring(3,5) return?
put
How do you declare a 2D array with 8 rows and 8 columns called gameboard?
How do you declare a 2D array with 8 rows and 8 columns called gameboard?
array gameboard[8,8]
What is the key difference between a function and a procedure?
What is the key difference between a function and a procedure?
Functions return a value
