WorksheetsPaper 2 topics OCR computer science
Total questions: 18
Worksheet time: 9mins
10001010 10011101 is an example of...
High-level language
Low-level language
Machine Code
'LDA 14, STA 5, INP 12' is an example of...
High-level language
Low-level language
Machine Code
Which of the following is in the data type of integer?
1
1.0
one
"1"
What will be the output if the input is 5?
The number is Even
The number is odd
What will LEN(“Happy”) output ?
1
7
5
Identify the type of error in the pseudocode
Syntax error
Runtime error
Logic error
Memory error
Match the following SQL term with a description - FROM
The criteria which must be met
The fields to display
The field and order used to sort the results
The table used in the query
In what order does SQL process the instructions?
FROM - SELECT - WHERE - ORDER BY
WHERE - FROM - SELECT - ORDER BY
SELECT - FROM - WHERE - ORDER BY
SELECT - FROM - ORDER By - WHERE
Which IDE tool converts each line of source code into machine code, and executes it as each line of code is run?
Compiler
Variable Watch
Memory Inspector
Interpreter
What is meant by source code?
The final executable program
The code written by the programmer
The additional information about errors
Code relating to sources of information on the Internet
What type of validation would be used on a field to enter a mobile phone number to ensure it contains 11 digits
Spell check
Lookup table
Presence check
Length check
Testing an input and ensuring it is in the correct format or range
Input Sanitation
Input Validation
Input Creation
Input Testing
Final/terminal testing takes place...
Many times throughout a programming project
At the end of a programming project
Iterative testing takes place...
Many times throughout a programming project
At the end of a programming project
Erroneous test data is used to...
Test a value that is just inside/outside of what should/shouldn't be accepted.
Test a value that is expected in a program and should work.
Test a value that should be rejected by the program.
What logic gate is this?
AND
NOT
OR
If 1 is the input, the output will be...
0
1
DIV means...
Dividing without including the remainder
Dividing, but only writing the remainder
Multiplying the number by itself
