Font size
S
M
L
XL
WorksheetsJ276 - Paper 2
Total questions: 197
Worksheet time: 3hrs 17mins
Name
Class
Date
1.
Identify the search algorithm (1-2)
a)
Random search
b)
Binary search
c)
Denary search
d)
Next Item search
2.
Identify the description of a linear search (4-5)
a)
Put the elements in order, check each item in turn
b)
Put the elements in order, compare to the middle value, split the list in order and repeat
c)
Elements do not need to be in order, check each item in turn
d)
Elements do not need to be in order, compare to the middle value, split the list in order
and repeat
3.
Identify the description of a binary search (4-5)
a)
Put the elements in order, check each item in turn
b)
Put the elements in order, compare to the middle value, split the list in order and repeat
c)
Elements do not need to be in order, check each item in turn
d)
Elements do not need to be in order, compare to the middle value, split the list in order
and repeat
4.
Defne the term computational thinking (1-2)
a)
Using a computer
b)
Developing an algorithm to solve a problem
c)
Making a computer use artifcial intelligence
d)
Google is computational thinking
5.
Which of the following is not a component of computational thinking? (1-2)
a)
Abstraction
b)
Typing
c)
Decomposition
d)
Algorithmic thinking
6.
Defne the term abstraction within computational thinking (4-5)
a)
Adding together numbers
b)
Taking a real world problem and designing a computer program that exactly replicates
every part of that problem in the computer
c)
Performing multiple calculations on a list of variables
d)
Representing real world problems in a computer program, using symbols and removing
unnecessary elements
7.
Defne the term decomposition within computational thinking (1-2)
a)
The breaking down of a program until it no longer exists
b)
The creation of music that can be played on a computer
c)
The breaking down of a problem into smaller problems
d)
The breaking down of waste to make compost
8.
Identify which statement describes algorithmic thinking (1-2)
a)
Thinking like a computer
b)
Writing binary numbers
c)
Identifying the steps involved in solving a problem
d)
Identifying what problems need to be solved
9.
A linear search is to be performed on the list:
12, 6, 1, 3
How many comparisons would it take to fnd the number 1? (6-9)
a)
1
b)
2
c)
3
d)
4
10.
A binary search is to be performed on the list: 3, 9, 10, 23 How many comparisons would it take to find the number 9? (4-5)
a)
0-1
b)
2-3
c)
4-5
d)
It can't find the number 9
11.
A binary search is to be performed on the list:
1, 5, 10, 13, 48, 58, 100, 101
How many comparisons would it take to the fnd the number 101? (4-5)
a)
0-1
b)
1-2
c)
3-4
d)
4-5
12.
Identify the search performed by the following algorithm: (9)
for x = 0 to 9
if (array[x]==10) then
print("Found it")
endif
next x
a)
Linear
b)
Binary
c)
Both linear and binary
d)
Neither, it does not work
13.
Which of the following is not a sorting algorithm? (1-2)
a)
Bubble
b)
Insertion
c)
Binary
d)
Merge
14.
Which sorting algorithm is described by: moving through a list repeatedly,
swapping elements that are in the wrong order. (1-2)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of the above
15.
Which sorting algorithm is described by: split a list into individual lists, then
combine these, two lists at a time. (1-2)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of the above
16.
Which sorting algorithm is described by: take each item in turn, compare it
to the items in the sorted list and place it in the ordered position in the sorted list. (1-2)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of the above
17.
What is the frst action in an insertion sort? (4-5)
a)
Make a new list
b)
Mark the frst item as the ordered list
c)
Compare the frst and second elements
d)
Put the frst element in the correct place
18.
The following two lists are to be merged, which element frst goes into the
new merged list (4-5)
List 1: 2, 4, 8, 9
List 2: 1, 6, 8, 4
a)
0.0
b)
1.0
c)
2.0
d)
3.0
19.
The following list is to be sorted using a bubble sort:
12, 6, 8, 1, 3
What will the list look like after the frst iteration through the list. (9)
a)
6, 8, 1, 3, 12
b)
6, 12, 1, 8, 3
c)
1, 3, 6, 8, 12
d)
6, 8, 1, 12, 3
20.
Which sorting algorithm needs to go through the list repeatedly? (4-5)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of them do
21.
Which sorting algorithm splits a list of items into individual lists. (1-2)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of them do
22.
Which sorting algorithm takes an item from the list, and puts it in the
correct place in a sorted list? (4-5)
a)
Merge
b)
Bubble
c)
Insertion
d)
None of them do
23.
Identify the correct defnition for ‘algorithm'. (1-2)
a)
A problem
b)
A solution to a problem
c)
The steps that are taken to solve a problem
d)
The words to enter when typing
24.
How many arrows should come out of a decision symbol in a flowchart?
(1-2)
a)
0.0
b)
1.0
c)
2.0
d)
3.0
25.
The following algorithm should take as input and add together two numbers,
outputting the result.
Identify the correct algorithm. (4-5)
a)
num1 = input(“Enter the frst number”)
num2 – input(“Enter the second number”)
num3 = num1 + num2
print(num3)
b)
num1 = input(“Enter the frst number”)
num2 = input(“Enter the second number”)
num3 = num1 + num2
print(num3)
c)
num1 = input(“Enter the frst number”)
num3 = input(“Enter the second number”)
num3 = num1 + num2
print(num3)
d)
num1 = input(“Enter the frst number”)
num2 = input(“Enter the second number”)
num3 = num1 + num2
print(num2)
26.
The following algorithm should take as input on number, and output the 12
times table for that number.
Identify the correct algorithm. (9)
a)
number = input(“Enter a number”)
for x = 1 to 12
print(number * x)
next x
b)
number = input(“Enter a number”)
for x = 0 to 12
print(number * x)
next x
c)
number = input(“Enter a number”)
for x = 1 to 12
print(number X x)
next x
d)
number = input(“Enter a number”)
for x = 1 to 12
print(number * number)
next x
27.
The following algorithm should take as input two numbers, add them
together, multiply the answer by 11, add 4, then divide by 2. It should output the result.
Identify the correct algorithm. (9)
a)
number = input(“Enter a number”)
number = input(“Enter the second number”)
fnal = (((number + number) * 11) + 4) / 2
print (fnal)
b)
number = input(“Enter a number”)
number2 = input(“Enter the second number”)
fnal = (((number + number2) * 11) + 4) * 2
print (fnal)
c)
number = input(“Enter a number”)
number2 = input(“Enter the second number”)
fnal = number + number2 +4 *11 / 2
print (fnal)
d)
number = input(“Enter a number”)
number2 = input(“Enter the second number”)
fnal = (((number + number2) * 11) + 4) / 2
print (fnal)
28.
The following is not true about variable names (1-4)
a)
They must be descriptive
b)
They must be in capital letters
c)
They can’t start with numbers or contain spaces
d)
They point to memory locations
29.
In an assignment operation, this appears on the right hand side (6-9)
a)
Label for a variable that is destination of data
b)
Multiple variables that are destinations for data
c)
Source variables or operations
d)
The assignment operator
30.
The following is not a valid constant (1-4)
a)
SPACE
b)
PI
c)
UserName
d)
WORDLIMIT
31.
Which of the following is a valid keyword for output? (1-4)
a)
PRINT
b)
SHOW
c)
DISPLAY
d)
INPUT
32.
Consider the following expression: a:=b. This means (6-9)
a)
a will always be equal to b
b)
b is being renamed into a
c)
The value of memory location a gets copied into memory location b
d)
The value of memory location b gets copied into memory location a
33.
Which of the following is not a valid data type? (1-4)
a)
Real
b)
String
c)
Character
d)
Fraction
34.
Quotation marks around a variable's identifer imply (1-4)
a)
It is an integer
b)
It is a string
c)
It is a Boolean
d)
It is a real
35.
The multiplication table is best displayed using this data type (4-6)
a)
Boolean
b)
Character
c)
Integer
d)
Real
36.
This variable type can only have True or False values (1-4)
a)
Boolean
b)
Integer
c)
String
d)
Character
37.
Casting refers to: (4-6)
a)
Boolean algebra
b)
Rounding of reals
c)
Converting between variable data types
d)
Printing out of the program’s results
38.
The operator used to fnd if a number is divisible by another
number: (4-6)
a)
Integer division
b)
MOD
c)
Division
d)
Subtraction
39.
The statement A OR B implies A and B are (4-6)
a)
Integers
b)
Strings
c)
Booleans
d)
Characters
40.
This function calculates the length of a string (4-6)
a)
UBOUND
b)
INDEX
c)
LEN
d)
COUNT
41.
The following is a correct way to use the MID function (6-9)
a)
A:=MID(“Flower”,”wer”)
b)
A:=MID(4,“Flower”)
c)
A:=MID(“Flower”,4)
d)
A:=MID(“Flower”,4,2)
42.
The following data types are used in selection conditions and while
loops (4-6)
a)
Character
b)
Boolean
c)
Integer
d)
String
43.
The following is true about Top-down approach
a)
The Main procedure is defned frst, with other subs to follow
b)
The detailed list of all operations is drawn up frst, before we can start planning
c)
We start from the top of the program and complete the algorithm by getting to the
bottom of it
d)
Functions can’t be included as they can’t be directly called by procedures.
44.
Structured code has the following beneft
a)
Reduces the number of lines of code
b)
Improves effciency
c)
Makes code easier to read and debug
d)
All of these options are true
45.
Variable scope refers to
a)
Variable data type
b)
Variable identifer
c)
Logic errors associated with a variable
d)
Different use of global and local variables
46.
The advantages of parameter passing don't include this
a)
The same subprogram can be reused in more cases
b)
Parameter passing makes it easier to use global variables
c)
More flexible coding
d)
Can cut down on the use of wasteful global variables
47.
The main difference between procedures and functions is
a)
Procedures are usually longer and have more instructions
b)
Functions use parameter passing, while procedures don’t
c)
Functions are more diffcult to debug
d)
Functions return values, while procedures don’t
48.
When a variable frst appears outside any subprograms
a)
It is a global variable
b)
It is a local variable
c)
It is a parameter variable
d)
It is not a valid variable
49.
Converting procedures to functions usually causes these effects
a)
Shorter code
b)
Slows the program down
c)
Reduction of the number of global variables, more parameter passing
d)
Makes it more diffcult to use selection
50.
From this statement: a:=getChoice() we can see that
a)
getChoice() is a function
b)
getChoice() is a global variable
c)
a is an array
d)
getChoice() is a procedure
51.
Trying to use a local variable from outside its scope will cause
a)
A global variable to be overwritten by it
b)
A wrong procedure to run
c)
A crash with a report “Unknown variable”
d)
A logical error
52.
Identify a correct statement:
a)
Global variables waste memory
b)
showResults(choice,cutoff) is a function
c)
An array index is its length
d)
Nested iteration structures can share the same counter variable
53.
ELSE IF keyword is used when
a)
Our selection needs to work with more than three choices
b)
Our selection needs to work with more than two choices
c)
SELECT CASE/SWITCH statement is not available
d)
Using conditional loops
54.
Identify a correct statement:
a)
SELECT CASE is more popular then IF/ELSE IF/ELSE
b)
We can’t have more than 5 levels of nested IF/ELSE IF/ELSE
c)
SELECT CASE is the same concept as SWITCH
d)
FOR loops are known as condition-controlled iteration
55.
In the nested selection statements
a)
The inside selection structure gets executed frst
b)
The outside selection structure gets executed frst
c)
AND and OR are to be avoided
d)
Integers must be used instead of Booleans
56.
The flowchart shape for selection is
a)
Parallelogram
b)
Square
c)
Diamond
d)
Rounded rectang
57.
Identify an invalid expression
a)
ELSE x=45 THEN
b)
IF x>9 and x<100 THEN
c)
Any FOR loop can be rewritten as a WHILE loop
d)
PROCEDURE Test(a AS INTEGER)
58.
When a FOR loop increments a counter by a number other than one,
this is called
a)
Increment
b)
Decrement
c)
Stepping
d)
Condition
59.
For exiting FOR loops early we use
a)
Nested iteration
b)
BREAK clause
c)
HALT clause
d)
Conditional loops
60.
The following is not true about arrays
a)
All array elements have the same data type
b)
Arrays have fxed size that can’t be easily changed during a program run
c)
Names[LEN(Names)] is the last element of the array Names
d)
The use of iteration makes arrays less relevant
61.
The following is not a correct statement involving arrays
a)
ARRAY Test[40]
b)
ARRAY Test[56,34,89,8]
c)
ARRAY:= Test[40]
d)
NewArray:=SPLIT(MID(“War and Peace”,2,5),”,”)
62.
The following is not a correct statement involving arrays
a)
J:=Pupils[5,8]
b)
Nums[i,j]:=Nums[i-1,j]
c)
Nums[i,j]:=Nums[i-1]
d)
B:=getChoices(45)
63.
In Record structures, VARCHAR keyword means
a)
A feld can be any number of characters or bytes in length
b)
A feld can be up to a certain number of characters or bytes in length
c)
A feld is an integer
d)
The name of the feld is about to be changed
64.
The following is true about Records
a)
They must have an index
b)
Fields are made up of records
c)
Records can combine multiple data types in their felds
d)
Record arrays are 2D arrays
65.
SQL is used to work with fles in this format
a)
Plain text
b)
CSV
c)
Proprietary binary
d)
Spreadsheets
66.
The following is true about SQL
a)
It has loops just like any other language
b)
SQL is case sensitive
c)
SQL is hard to read due to a lot of abbreviated keywords
d)
SQL usually runs on top of another language
67.
The purpose of SELECT * FROM Pupils WHERE Result>90 is
a)
To set every Pupil’s result to 90
b)
To retrieve a collection of records of Pupils but only those whose result is 90
c)
To retrieve a collection of records of Pupils but only those whose result is over 90
d)
To retrieve a collection of records of Pupils but only those whose name is over 90
68.
The LIKE operator is used to
a)
Approve SQL statements before execution
b)
Replace the WHERE statement
c)
When we deal with Boolean felds
d)
To use partial matching when searching
69.
Nested SELECT queries are used
a)
When Boolean operators get too complex
b)
When retrieving data from multiple tables
c)
When using partial matching
d)
For validation and quality control
70.
When we read or write text fles, we are working with this data type
a)
Integers
b)
Booleans
c)
Reals
d)
Strings
71.
EOF is used in
a)
To indicate the end of a line with a formatting delimiter
b)
Conditional loops when writing to a fle
c)
Conditional loops when reading from a fle
d)
Destructive overwriting of the fle’s data
72.
The following is not a valid fle open mode
a)
Insert
b)
Append
c)
Read
d)
Write
73.
The following is not a reason to close fles
a)
The program will not run otherwise
b)
Files kept open after we stopped needing them is wasted memory
c)
If we don’t close a fle, our program will keep on changing the data inside it
d)
A proper EOF will not be written
74.
The following is true about working with text fles
a)
The fle has to exist before we can write to it
b)
The changes are saved when we write to it, not when we close the fle
c)
We use counter-controlled loops to read them
d)
We read and write them one line at a time
75.
The following is a right way to write to a fle
a)
myFile.READLINE(variable)
b)
myFile.WRITELINE(variable)
c)
myFile.APPENDLINE(variable)
d)
myFile.INSERTLINE(variable)
76.
The most appropriate fle mode for creating a logbook
a)
Read
b)
Write
c)
Append
d)
Close
77.
The following is a valid way to write a 2D array to a text fle
a)
Concatenate each row to a string with commas and then concatenate all rows with New
Line characters, or write rows with WRITELINE
b)
Split the text fle into an array, copy all elements to this array
c)
Use SQL to convert 2D array to records frst
d)
All of these options are valid
78.
Which of these is not a method for ensuring a program is robust? (1-4)
a)
Keeping passwords safe
b)
Data Validation
c)
Authentication
d)
Data Sanitisation
79.
Why is code indented? (1-4)
a)
To group together a function
b)
The code does not use a { syntax and indentation is used instead
c)
To make it easier to read
d)
All of the above
80.
What is data validation? (1-4)
a)
Checking that the data entered is wrong
b)
Checking that the data entered is correct
c)
Checking that the data entered is sensible or reasonable
81.
Which of these authentication methods is most secure? (1-4)
a)
Password
b)
Password and username
c)
Key Card
d)
Physical and Code
82.
Which is these IS NOT an example of validation (1-4)
a)
Checking the number entered is 2 digits
b)
Asking a user to enter the same data in twice
c)
Use of a Lookup table
d)
Use of a presence check
83.
What does a range check do? (1-4)
a)
Checks data across a range of numbers
b)
Checks the data is within an acceptable range
c)
Where three types of data are used
d)
Checks that the data is in the correct format
84.
When a program runs it asks the user to enter their full name. Which
is an example of Valid data? (4-6)
a)
Mr Jones
b)
Sarah
c)
Sarah Jones
d)
Mrs Jones
85.
Which one of these is not a method for planning for misuse? (1-4)
a)
Limiting the number of login attempts
b)
Requesting a password and user name
c)
Authentication
d)
Not validating the data entry
86.
Which is a not method of authentication (1-4)
a)
Password
b)
Password and user name
c)
Pattern Password
d)
Finger print password
87.
What is Maintainability? (1-4)
a)
Checking programs work
b)
Updating Code so that it is compatible with current requirements
c)
Testing a program for errors
d)
Training staff to use the program correctly
88.
Which one of these is not a method for planning for misuse? (1-4)
a)
Stripping unwanted characters
b)
Removing duplicated letters
c)
Converting lowercase to uppercase Letters
d)
Converting large numbers to smaller numbers.
89.
Which of these is not a method for authenticating a user? (4-6)
a)
Password
b)
Password and Username
c)
Finger print scanner
d)
Encryption
90.
Why are comments used in a program? (4-6)
a)
It is required to make the program run
b)
Comments pad out the program and make it look more professional
c)
To keep the user aware of any program errors and issues.
d)
To help security in the code
91.
When should comments be used within a program? (4-6)
a)
To help describe what code and structures are expected to do
b)
To remind the developer of when lunch is
c)
To include what tests must be carried out on the code
d)
Every line, so that you know exactly what is happening
92.
What is defensive programming design? (4-6)
a)
Making your code / program error free
b)
Creating code that is easy to use and understand
c)
A method of ensuring that your code is not misused
d)
Code where the data is validated
93.
A user attempts to enter in an incorrect password, what method
would identify this issue? (6-8)
a)
Data Validation
b)
Authentication
c)
Program Comments
d)
Indentation
94.
A user enters in extra data attempting to access the system, which
method would identify this issue? (6-8)
a)
Data Validation
b)
Input Sanitisation
c)
Input Check
d)
Format Check
95.
A program has a section of code that could cause errors, which
method could be used to identify this issue? (6-9)
a)
Maintainability
b)
Authentication
c)
Program Comments
d)
Indentation
96.
What is the difference between Data Validation and Input
Sanitsation? (6-9)
a)
Nothing, they are the same?
b)
Data Validation checks the data is reasonable and Sanitsation removes unexpected or
unrequired data.
c)
Data Validation checks the data is correct and Sanitsation removes data that contains
errors
d)
Sanitisation checks the data is correct and Validation removes invalid
97.
A section of a program has recently stopped working, which method
could be used to resolve this issue? (6-9)
a)
Data Validation
b)
Input Sanitsation
c)
Maintainability
d)
Authentication
98.
When is terminal testing carried out? (1-3)
a)
Before you start
b)
At the end
c)
During the project
d)
After the design section
99.
Why is code indented? (1-3)
a)
To group together a function
b)
The code may not use a { synax and indentation is used instead
c)
To support code maintainability
d)
All of the above
100.
Which of these is NOT a feature of a test plan? (3-5)
a)
The data entered
b)
The type of test data
c)
If the testing is terminal or iterative
d)
The expected outcome
101.
When is a runtime error identifed? (3-5)
a)
After the program is executed
b)
Before a program runs
c)
While the program runs
102.
Which line contains a syntax error? (3-5)
a)
print (“hello”)
b)
sprint(“Hello”)
c)
print(“hello)
d)
print(“HELLO”)
103.
What is iterative testing? (3-5)
a)
Testing completed after an error is found
b)
Random tests on a computer program
c)
Tests completed as the program is being coded
d)
Tests which are planned
104.
When a program runs it asks the user to enter their frst name. Which
is an example of Valid data? (4-6)
a)
Mr Jones
b)
Sarah
c)
Sarah Jones
d)
Mrs Jones
105.
When a program runs it asks the user to enter their age. Which data
would be most suitable to test for an incorrect piece of data being entered? (1-3)
a)
44.0
b)
1.0
c)
97.0
d)
Forty Five
106.
(6-9) Look at the program below and classify the error
print ("Hello")
name = input ("What is your name?")
a)
Logic error
b)
Data error
c)
Text error
d)
Syntax error
107.
Which is the not a name of a group of Test Data that you would use
in a test plan? (4-6)
a)
Valid Data
b)
Range Data
c)
Nil value data
d)
Average Data
108.
Which of these are not a real type of data? (4-6)
a)
Valid Data
b)
Personal Data
c)
Nil value data
d)
Boundary Value
109.
Consider a test plan, what comes after the Expected Result ? (1-4)
a)
The result of the test
b)
The data that is to be entered
c)
The type of data type
d)
An example of the data used
110.
What problems can occur when coding a program? (1-4)
a)
Bugs in code
b)
Wrong user name / password details
c)
Poorly designed GUI
d)
Changes in program syntax
111.
Testing while coding a program is called? (4-6)
a)
Development Testing
b)
Coder Testing
c)
Terminal Testing
d)
Iterative Testing
112.
Who is credited with fnding the frst computer bug? (1-4)
a)
Grace Hooper
b)
Grace Hoper
c)
Grace Hopping
d)
Grace Hopper
113.
What is a breakpoint? (6-9)
a)
The point at which a program breaks
b)
A feature which a coder user to stop a program at a certain line
c)
The point in a program where an error is found
d)
The point at which the coder is frustrated with the program
114.
Which of these is appropriate data for a range test for a youth club? (4-6)
a)
10 – 20 years
b)
16 – 19 years
c)
13 – 19 years
d)
13 – 23 years
115.
What is a null value test on data entry? (4-6)
a)
Data that does not have a value such as a name or phone number
b)
Data that is not entered in order to test how the program responds
c)
Data that has a value of zero
d)
Data that is incorrect
116.
Which datum below is a valid test for an age feld?
a)
18.6
b)
99.0
c)
Twenty-Five
d)
17 years 5 months
117.
What is the purpose of testing? (1-4)
a)
To identify errors
b)
To identify issues that may occur when a customer uses the program
c)
To test the security of the program
d)
All of the above
118.
What is the output of an OR gate if the inputs are 1 and 0?
a)
0.0
b)
1.0
c)
OFF
d)
2.0
119.
What is the output of an AND gate if the inputs are 1 and 0?
a)
ON
b)
2.0
c)
1.0
d)
0.0
120.
What is the output of a NOT gate if the inputs is 0?
a)
1.0
b)
0.0
c)
OFF
d)
2.0
121.
A NOT gate has…
a)
Two inputs and one output
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
122.
An OR gate has
a)
Two inputs and one output
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
123.
The output of any logic gate can have either of two _________ ?
a)
Gates
b)
States
c)
Inputs
d)
Outputs
124.
A logic state can only be….
a)
On or 1
b)
Off or 1
c)
1 or 0
d)
In and Out
125.
The output of a ________ gate is only 1 when both inputs are 1.
a)
OR
b)
NOT
c)
NAND
d)
AND
126.
A NAND gate is the combination of which two gates
a)
OR and AND
b)
AND and NOT
c)
NOT and OR
d)
OR and NAND
127.
A Half-Adder circuit is…
a)
Half of an AND gate
b)
Half of a NAND gate
c)
An OR gate and a NOT gate
d)
A circuit to add two bits together
128.
Machine code is used in which generation of a programming
language? (1-3)
a)
1st Generation
b)
2nd Generation
c)
3rd Generation
d)
4th Generation
129.
Which language translator is needed for the 1st Generation? (1-3)
a)
Compiler
b)
Interpreter
c)
No Translator
d)
Assembler
130.
Which of these is an example of a Low Level language? (4-6)
a)
Delphi
b)
LMC
c)
Basic
d)
C#
131.
Which language translator is used with the 2nd Generation? (4-6)
a)
Compiler
b)
Interpreter
c)
No Translator
d)
Assembler
132.
Which language translator is used with the 3rd Generation? (4-6)
a)
Compiler
b)
Interpreter
c)
No Translator
d)
Assembler
133.
Which generation would create the fastest code to execute? (7-9)
a)
1st Generation
b)
2nd Generation
c)
3rd Generation
d)
4th Generation
134.
Which generation would be easier to program for a programmer? (4-6)
a)
1st Generation
b)
2nd Generation
c)
3rd Generation
d)
4th Generation
135.
An advantage of programming in Low Level programming is: (7-9)
a)
Easier to understand
b)
Takes up less code
c)
Produce programs that require small fle sizes
d)
Easier to de-bug
136.
An advantage of programming in a High Level programming language
is: (7-9)
a)
Easier to understand
b)
Useful for device drivers
c)
Programs require smaller fle sizes
d)
Programs execute faster than other generations
137.
What sort of relationship are Low Level Languages said to have with
High Level Languages? (7-9)
a)
One to One (One high level instruction is equivalent to one low level)
b)
One to Two (For every high level instruction there are two low level instructions)
c)
One to many (For every high level instruction there are many low level instructions)
d)
Many to One (Many high level instructions translate into one low level instruction)
138.
Is used to translate Assembly Code (1-3)
a)
Assembler
b)
Compiler
c)
Interpreter
139.
Is not used to translate High Level Languages (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
140.
Translates entire source code in one go (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
141.
Which translator stops when it encounters an error? (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
142.
Which language translator is used for Low Level Languages? (1-3)
a)
Assembler
b)
Compiler
c)
Interpreter
143.
Which language translator is used at the end of development? (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
144.
Which language translator is used during the development of a
program? (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
145.
Which language translator produces Object Code and an Error
Report? (4-6)
a)
Assembler
b)
Compiler
c)
Interpreter
146.
Which language translator does not convert source code into
machine code? (7-9)
a)
Assembler
b)
Compiler
c)
Interpreter
147.
What is meant by source code? (7-9)
a)
The fnal executable program
b)
The code written by the programmer
c)
The additional information about errors
d)
Code relating to sources of information on the Internet
148.
What numeric base does Binary operate on? (1-4)
a)
2.0
b)
1.0
c)
8.0
d)
16.0
149.
How many bits are there in a byte? (1-4)
a)
8.0
b)
16.0
c)
1.0
d)
2.0
150.
What is the maximum number of bits needed to represent 15 in
denary? (3-5)
a)
6.0
b)
4.0
151.
What is the 8 bit binary representation of 17? (5-7)
a)
10010.0
b)
10001.0
c)
1101.0
d)
100010.0
152.
What is the binary representation of 32? (5-7)
a)
100000.0
b)
100100.0
c)
110000.0
d)
100001.0
153.
What is the Denary representation of this 8 bit number? 01001111 (5-7)
a)
59.0
b)
79.0
c)
69.0
d)
49.0
154.
What is the Denary representation of this 8 bit number? 11010101 (5-7)
a)
199.0
b)
206.0
c)
228.0
d)
213.0
155.
How Bytes are there in a Terabyte? (5-7)
a)
1024 Kilobytes
b)
1024 Megabytes
c)
1024 Gigabytes
156.
Why do we use the binary number system in Computing? (4-6)
a)
Because a CPU has two transistors
b)
To represent the two different states of transistors
c)
To allow the CPU to be in one of two states
157.
What is the hex number 6B in binary? (6-8)
a)
1101011.0
b)
1.010111E7
c)
1110111.0
158.
How many bits are used in ASCII? (1-4)
a)
16.0
b)
1.0
c)
7.0
d)
8.0
159.
How many Bytes are used in Unicode? (1-4)
a)
8.0
b)
16.0
c)
1.0
d)
2.0
160.
The ASCII code is represented by using 16 bits. (1-4)
a)
true
b)
False
161.
The ASCII is capable of representing non-European languages. (3-4)
a)
true
b)
False
162.
Upper and lower case letters have a different ASCII code? (3-4)
a)
True
b)
false
163.
What is the maximum number of positive integer values that can be
represented in 8-bits? (4-6)
a)
16.0
b)
256.0
c)
65536.0
d)
128.0
164.
What is the maximum number of positive integer values that can be
represented in 7-bits? (4-6)
a)
16.0
b)
256.0
c)
65536.0
d)
128.0
165.
A character set is… (4-6)
a)
What language can be used in a computer system
b)
The fonts that a computer has installed.
c)
The possible characters that can be represented by a computer system.
166.
ASCII can represent more characters than Unicode? (4-6)
a)
true
b)
False
167.
ASCII Stands for (6-7)
a)
American Standard Code for Information Interchange
b)
American Scientifc Code for Information Interchanging
c)
Absolute Standard Codes for Instruction Interchange
168.
What do we call the smallest unit of data that can be represented in
an image? (1-4)
a)
Pixel
b)
Dot
c)
Colour
d)
Bit
169.
What is meant by Colour Depth? (4-6)
a)
Number of pixels in the image
b)
The number of colours available for each pixel
c)
How pixelated the image is
170.
If you increase the colour depth then the fle size will decrease? (4-6)
a)
true
b)
False
171.
How many colours can be represented with a 4 bit colour depth? (7-9)
a)
2.0
b)
4.0
c)
16.0
d)
256.0
172.
What is the term used to defne what must be known about a bitmap,
for it to be represented accurately? (4-6)
a)
Microdata
b)
Metadata
c)
Megadata
173.
In modern technology what unit of measurement would be used for
screen size? (4-6)
a)
Pixels per inch (PPI)
b)
Dots per inch (DPI)
c)
Pixels per metre (PPM)
174.
Which of the following is not stored as Metadata about an image? (6-9)
a)
Height
b)
Colour Depth
c)
Resolution
d)
Number of people in the image
175.
Which of the following is not an image fle? (4-6)
a)
PNG
b)
JPEG
c)
Bitmap
d)
MPEG
176.
What three colours are used to produce a broad array of colours in a
computer system? (1-4)
a)
Green, Red, Orange
b)
Red, Green, Blue
c)
Yellow, Green, Red
177.
What is the name of the type of graphic that uses shapes of solid
colour? (6-8)
a)
Raster
b)
GIF
c)
JPEG
d)
Vector
178.
What unit is sample rate measured in? (1-4)
a)
Bits per second (bps)
b)
Hertz (Hz)
c)
Megabits per second (Mbps)
179.
Which of the following is not true if you increase the sample rate? (3-6)
a)
Better quality of recording
b)
Needs greater storage space
c)
larger fle size
d)
Decrease in quality
180.
What is meant by bit depth? (3-6)
a)
The number of samples taken per second
b)
The amplitude of each sample
c)
The number of bits used per second of audio
d)
The number of bits used to store each sound sample
181.
Which of the following is true if you decrease the bit rate? (3-6)
a)
File size increases
b)
Sound quality increases
c)
Sound quality decreases
d)
Number of sound samples taken per second increases
182.
What is measured when the wave is sampled? (3-6)
a)
Amplitude
b)
Hertz
c)
Bit rate
d)
Frequency
183.
What sample rate is used for CD quality sound? (6-8)
a)
44,100 Hz
b)
88,200 Hz
c)
22,100 Hz
184.
The purpose of a Digital to Analogue converter is to… (6-8)
a)
convert binary data into analogue form so we can hear it via a speaker
b)
convert sound waves into binary so it can be understood by a computer
185.
What piece of hardware would you use to input sound into a
computer? (1-3)
a)
Speaker
b)
Analogue to digital converter
c)
Microphone
d)
Digital to analogue converter
186.
If you increase the bit depth of an audio fle then you increase the
quality? (1-4)
a)
True
b)
false
187.
The amplitude of a sound wave is… (6-9)
a)
how high the wave is from the crest or trough
b)
the frequency at which it is sampled
c)
the speed at which it travels through air
188.
What is compression? (1-4)
a)
To convert one fle to another
b)
To reduce the size of data to save space
c)
To minimize the time taken for a fle to be downloaded
d)
To compress something by pressing it very hard
189.
What does Lossy Compression do to fles? (4-6)
a)
Increases the fle size and keeps the same quality
b)
Eliminates no information at all
c)
Decreases the fle size and keeps the same quality
d)
Eliminates unnecessary information in a fle to reduce fle size
190.
What is Lossless Compression? (4-6)
a)
No information is lost but fle size is increased
b)
There is no loss in information at all after compression
c)
Files which have the exact same data after compression
d)
Compression that involves an algorithm
191.
What type of compression does the ZIP format use? (7-9)
a)
Lossy
b)
Lossless
192.
What type of compression would you use to compress a video? (4-6)
a)
Lossy
b)
Lossless
193.
What type of compression would you use to compress a text fle (4-6)
a)
Lossy
b)
Lossless
194.
What type of compression may remove some of the data?
a)
Lossy
b)
Lossless
195.
Which of the following are not in a compressed format? (7-9)
a)
JPEG
b)
MPEG
c)
Bitmap
d)
MP3
196.
Uncompressed audio and video fles require less memory than
compressed fles. (1-4)
a)
true
b)
False
197.
JPEG Stands for (4-6)
a)
Joint Photo Exempted Grade
b)
Joint Photographic Experts Group
c)
Junior Photographic Export Group
Reset
