Font size
Worksheetscomputer science unit 2
Total questions: 69
Worksheet time: 35mins
A ... is a name for a memory location used to store data that can be changed.
(a)
... is the process of converting one data type to another.
(a)
A ... is a location in memory, the value CANNOT be changed.
(a)
Select all the types of operators:
/
*
+
-
%
Entering data into a program.
(a)
Response from the program.
(a)
This is called...?
(a)
What symbol is used for commenting?
(a)
Why are comments used?
to make comments about the code
to send messages between programmers
to explain key functions and key sections
to explain the code for the users
A part of the program which causes it to operate incorrectly. The error does not prevent the program running but it does not produce the expected output.
(a)
... is a set of instructions that follows on one after another.
(a)
In ... the next statement to be executed depends on whether the condition being tested is True or False.
(a)
... is the repetition of a process.
(a)
Which type of loop repeats a given number of times.
for loop
count controlled iteration
while loop
condition controlled
Which type of loop repeats until a condition is met?
for loop
count controlled iteration
while loop
condition controlled
An ... allows multiple items to be stored under one variable name, this reduces the need for multiples variables.
(a)
A translator for high level code that translates code all at once into machine code
Assembler
Compiler
Interpreter
Programmer
A translator for high level code that translate codes as the program is being run.
Compiler
Interpreter
Assembler
Programmer
Enables the program to be run in an IDE to test the program
Breakpoints
Code Editor
Error diagnostics
Run time environment
Helps the programmer follow syntax (programming rules) by colour coding, line numbering, auto-indentation etc...
Error diagnostics
Run time environment
Translator
Editor Tools
A programming language like Python that is designed to be easy for humans to read and write and uses English command words and needs to be translated using a compiler or interpreter
Translator
High level language
Low level language
Machine code
A programming language that is uses short/basic English, is harder for a human to understand
Translator
High level language
Low level language
Machine code
Converts either a high level language or a low level language into machine code
Translator
High level language
Low level language
Machine code
Binary code that can be directly run by a computer without being translated
Python Code
High Level Code
Low Level Code
Machine Code
Helps the programmer by highlighting errors and giving some information/feedback
Error diagnostics
Run time environment
Translator
Editor Tools
Code is translated one at a time (errors are given as the code is running)
Compilier
Interpreter
Code is translated all at once (and a list of errors returns at the end)
Compilier
Interpreter
print("Hello World!") is an example of...
High-level language
Low-level language
Machine Code
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
We sometimes use Low-level language because (tick 2)...
It uses less memory (RAM)
It is easier to spot errors
It is easier for humans to read as uses more English-type words
The code can be passed easily to different CPUs
We sometimes use High-level language because (tick 2)...
It uses less memory (RAM)
It is easier to spot errors
It is easier for humans to read as uses more English-type words
The code can be passed easily to different CPUs
A translator for high level code that translates code all at once into machine code
Assembler
Compiler
Interpreter
Programmer
A translator for high level code that translate codes as the program is being run.
Compiler
Interpreter
Assembler
Programmer
A translator used to convert a low level language into machine code
Compiler
Interpreter
Assembler
Programmer
Pauses a program to give developers the chance to examine variables and their values
Code Editor
Run time environment
Error Diagnostics
Breakpoints
Text area used to enter code in an IDE.
Breakpoints
Code Editor
Error Diagnostics
Run time environment
These are tools provided by IDE's which give detailed feedback on errors in your code.
Breakpoints
Code Editor
Error diagnostics
Run time environment
Enables the program to be run in an IDE to test the program
Breakpoints
Code Editor
Error diagnostics
Run time environment
Suggests or correct code as you are writing it
Error diagnostics
Run time environment
Syntax completion
Keyword highlighting
Colours command words in different colours to make code more readable
Error diagnostics
Run time environment
Syntax completion
Keyword highlighting
A programming language like Python that is designed to be easy for humans to read and write and uses English command words and needs to be translated using a compiler or interpreter
Translator
High level language
Low level language
Machine code
A programming language that is uses mnemonics, is harder for a human to understand and needs to be translated using an assembler.
Translator
High level language
Low level language
Machine code
Converts either a high level language or a low level language into machine code
Translator
High level language
Low level language
Machine code
Binary code that can be directly run by a computer without being translated
Python Code
High Level Code
Low Level Code
Machine Code
An ... gate will be switched on if one input or the other is switched on.
(a)
An ... gate will be switched on if both the inputs are switched on.
(a)
A ... gate will be switched on if the input is off, if the input is on then the gate will be switched off.
(a)
Which gate is this?
(a)
Which gate is this?
(a)
Which gate is this?
(a)
This is the truth table for which gate?
(a)
This is the truth table for which gate?
(a)
This is the truth table for which gate?
(a)
An ... is a sequence of instructions that can be followed to solve a problem.
(a)
... is the process of breaking down complex problems into smaller chunks.
(a)
... is the process of creating a model by filtering the characteristics we need.
(a)
... there a some repetitive parts to the overall problem, thus means more than one part of the program can be dealt with by simply altering the information.
(a)
... search - each item in the list is checked in order from the start of the list until the item is found.
(a)
... search - an ordered list is split into two each time a comparison is made.
(a)
Select the advantages and disadvantages of linear search.
list does not need to be ordered
slower
faster
list must be in order
Select the advantages and disadvantages of binary search.
list does not need to be ordered
slower
faster
list must be in order
What are syntax errors? choose two
When the program doesn't do what you want
When programs do not meet the rules or grammar of the language
When you make a spelling mistake
Errors preventing the code running
What are logic errors?
An error that does not stop the code from executing
When the logic gates are incorrectly connected
An error where the logic doesn't make sense
Code that does not give the desired output
Syntax error, logic error or is this code OK?
Syntax error
Logic error
It is great programming, well done Mr Taylor
Syntax error, Logic error or this code is perfect?
Another great program, it is all ok
Syntax error
Logic error
Iterative testing is.....
Testing code which iterated through input
Testing is input
Testing parts of the code during programming
Testing when the program is complete
Terminal testing is.....
when you test code from a networked terminal
when a terminal error causes the code to crash
when to carry out final testing when the code is complete
when you code is so bad to need to delete it and start again
It is important to test code with a range of data. Which of the following is a recognised type of test data? choose four
Valid
Extreme/boundary
Null/non-existent
Critical
Invalid
