wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA GCSE Computer Science Paper 1

Total questions: 193

Worksheet time: 2hrs 37mins

Name
Class
Date
1.
what are the three constructs used to write algorithms in pseudocode
a)
sequence, selection, iteration
b)
beginning , middle, end
c)
name, option, variable
d)
userinput, total, option
2.
What is a selection
a)
using an if else or then statement
b)
a variable
c)
a choice
d)
a menu
3.
what is a sequence
a)
writing steps in the order they need to happen
b)
list of numbers
c)
boolean variables
d)
a list
4.
what is a definite iteration
a)
uses a for loop so you can execute a task a number of times
b)
control, alt, delete
c)
flowchart element
d)
input or output
5.
what is a indefinite iteration
a)
using a until loop
b)
all other while statements don’t work in the code
c)
something that is not definite
d)
waste of time
6.
what is a condition contolled loop
a)
a while or endwhile loop
b)
a loop that is contolled
c)
a placebo loop
d)
a loop that is not based on conditions
7.
what does a while loop do
a)
a while loop allows code to be executedbased on a given Boolean condition
b)
loops
c)
repeats once and ends
d)
never ends
8.
what is an if statement
a)
performs a set of instructions if it is true
b)
a statement with an if
c)
a side comment
d)
only pseudocode
9.
whats an else statement
a)
performs a set of insttructions if the previous statement is false
b)
a statement with an else
c)
only pseudocode
d)
a side comment
10.
whats an elif statement
a)
an elif statment lets you check if multiple expressions are true
b)
a side comment
c)
a statement with an elif
d)
only pseudocde
11.
what happens if the user puts end before the while statement
a)
the loop wont be performed and will skip to the endehile statement
b)
crashes program
c)
shows syntax error
d)
restarts code from beginning
12.
what does a diamond indicate in a flowchart
a)
decision
b)
start/end
c)
connection between steps
d)
process
13.
what is an algorithm
a)
Step-by-step instructions used to solve a problem
b)
A chart showing the flow of a series of events
c)
A decision arrived at by following instructions
d)
A computer program that follows a chart
14.
what is decomposition
a)
breaking down a problem into smaller parts
b)
joining together multiple problems
c)
not doing anything to the problem
d)
making a problem more complex
15.
what is abstraction
a)
filtering out all irrelevant characteristics and unnecessary details
b)
adding to a problem
c)
looking for similarities
d)
finding characteristics
16.
Which of these is not computational thinking.
a)
iteration
b)
abstraction
c)
decomposition
d)
algorithmic thinking
17.
which of these cannot be an algorithm
a)
a code comment
b)
psuedocode
c)
code
d)
flowchart
18.
when can algorithms be used
a)
Any time to design solutions to problems
b)
Only with computers
c)
Only when programming
d)
Only with flowcharts
19.
What does an arrow represent in a flow chart
a)
Data flow
b)
Stop
c)
Start
d)
Decision Making
20.
What is a subroutine?
a)
A named self-contained section of code that performs a specific task
b)
Another name for pseudocode
c)
A routine that has no connection at all to the main routine
d)
A word used exclusively in movies to sound cool
21.
What is the difference between a function and a procedure?
a)
Procedures just carry out instructions, functions always return values
b)
Functions carry out instructions and procdures return values
c)
Trick question: they are the same thing
d)
Both always return values but in different data types
22.
Define a paramater
a)
A variable named in the subroutine heading that uses values you give it
b)
Instructions that stop functions from working if theyaren't followed by the user
c)
Boolean logic used exclsuively in functions
d)
An instruction that will return a value if it is followed through
23.
Define a local variable
a)
A variable defined in a function
b)
A variable declared at the beginning of the main program
c)
A variable declared in the main program
d)
A vaiable declared right at the end of the main program
24.
Define a global variable
a)
A variable declared in the main program
b)
A variable declared at the beginning of the main program
c)
A variable declared in a function
d)
A vaiable declared right at the end of the main program
25.
What makes a local variable special?
a)
It can only be called in the subroutine it is declared in
b)
The computer is unable to understand it without third-party software
c)
Its value is unique to your LAN
d)
Trick question: it's the same as a global variable
26.
What is an advantage of using a local variable?
a)
The function can be used with different variables for the same purpose
b)
The code is harder to disrrupt
c)
It's easier for the user to call back to it outside the function
d)
Trick question: local variables are useless
27.
How do you call a subroutine?
a)
By using the variable it is assigned to in the code
b)
With a landline
c)
By calling one of its local variables
d)
By calling its parameters
28.
Why are subroutines useful?
a)
To avoid repeating code and reduce length
b)
Only to make debugging easier
c)
Only to reduce the number of memory used
d)
Trick question: functions are always disadvantageous
29.
Why are parameters useful?
a)
It makes the subroutine more dynamic
b)
It always makes the subroutine run faster
c)
It makes the subroutine easier to call
d)
It makes the subroutine easier to understand by the machine
30.
How does a subroutine return data?
a)
If its a procedure it depends on how it was coded, functions return values through a return statement
b)
Through return statements
c)
Through a text document created by the code
d)
Into a variable generated by the function being called
31.
How many values does a subroutine have to return?
a)
As many as it is programmed to return
b)
1
c)
10
d)
1024
32.
What is the maximum amount of parameters a subroutine can have?
a)
As many as you want
b)
64
c)
As many as the amount of variables in the code
d)
2
33.
Can you create a subroutine in a subroutine in Python?
a)
Yes, they are nested functions
b)
Not unless you define a parameter
c)
No
d)
Yes, they are called subsubroutines
34.
A subroutine may be disadvantageous in which situation?
a)
If it is only needed once
b)
If it is needed more than 10 times
c)
If it is needed more than 100 times
d)
If it is needed more than 1x10^1024 times
35.
How does a subroutine conserve memory
a)
By reducing the number of lines of code needed
b)
By reducing the number of global variables needed
c)
Witchcraft
d)
By reducing the number of local variables needed
36.
In what scenario could you use a subroutine?
a)
To use a prewritten mathematical formula on a variable
b)
To define global variables
c)
To accurately predict the name of the user without and prior information given
d)
To hack into the mainframe
37.
How many local variables must be used in a subroutine?
a)
As few or as many as you want to
b)
As many as there are global variables
c)
Less than the amount of global variables
d)
At least 1
38.
How would a person declare the function functionName in Python?
a)
def functionName():
b)
fun functionName():
c)
def functionName()
d)
def functionName{}:
39.
Why does a subroutine need parameters
a)
Trick question: they don't always need them
b)
To stop the code from crashing
c)
To give the subroutine instructions on how to function
d)
To prevent it from gaining sentience
40.

What is the result of 7 MOD 5?

a)

1.5

b)

2

c)

1

d)

1.4

41.

What is the result of 10 DIV 3 ?

a)

3

b)

3.33

c)

4

d)

4.0

42.

10 > 3 AND 6 < 8

a)

TRUE

b)

FALSE

43.

5 == 6 OR 10 > 5

a)

TRUE

b)

FALSE

44.
Which is not a type of iteration?
a)
IF...ENDIF Loop
b)
REPEAT...UNTIL Loop
c)
WHILE...ENDWHILE Loop
d)
FOR...ENDFOR Loop
45.
What kind of iteration are WHILE...ENDWHILE loops?
a)
Indefinite
b)
Definite
c)
Categorical
d)
Uncategorical
46.
In pseudocode, what symbol is used when assigning a value to a variable?
a)
An arrow
b)
An equals sign
c)
Two equals signs
d)
A dash
47.
What is robust code?
a)
Code that will not crash from an unexpected user input
b)
code that is secure and cannot be hacked
c)
code that does not contain any errors
d)
code that can continue running all the time 
48.
What is one main benefit of having a constant variable?
a)
Only one line of code needs to be changed when changing the value of the constant
b)
constants never cause an error
c)
constants are in use for the entire time the code is being run
d)
constants make code run smoother 
49.
When does a WHILE...ENDWHILE loop end? 
a)
When the loop condition becomes false
b)
Once the target has been met
c)
Once the loop has been performed a set amount of times
d)
Once the program has finished running 
50.
What is concatenation?
a)
The joining of two strings
b)
the addition of two integers
c)
the declaring of a variable
d)
the changing of a value assigned to a variable 
51.
What is an iterative statement?
a)
A statement that repeats something
b)
A statement that chooses something
c)
A statement that does a function
d)
A statement that takes an input
52.
In pseudocode, what do you use to write something to the user? 
a)
OUTPUT
b)
print()
c)
ECHO
d)
WRITE
53.
How many types of iteration in pseudocode are there? 
a)
3
b)
2
c)
4
d)
5
54.
What is a nested loop?
a)
A loop within a loop
b)
Multiple loops in the same program
c)
A definite loop
d)
An indefinite loop
55.
When does a FOR...ENDFOR loop end? 
a)
When the loop has happened a set number of times
b)
When a condition is true
c)
When a condition becomes false
d)
When the program ends
56.
What data structure does an indefinite loop require to stop working? 
a)
Boolean
b)
Integer
c)
String
d)
Float
57.
Which is an example of an array?
a)
[1, 2, 3]
b)
list (1,23)
c)
4
d)
true
58.
Which of these is a definite iteration?
a)
FOR…ENDFOR Loop
b)
WHILE…ENDWHILE Loop
c)
REPEAT…UNTIL Loop
d)
IF…ENDIF Loop
59.
When is the REPEAT...UNTIL loop tested? 
a)
At the end of the loop
b)
At the start of the loop
c)
In the middle of the loop
d)
It doesn't get tested
60.
When is the WHILE...ENDWHILE loop tested?
a)
At the start of the loop
b)
At the end of the loop
c)
In the middle of the loop
d)
It doesn't get tested
61.
What is the process that involves removing unnecessary details from a problem in order to solve it?
a)
Abstraction
b)
Filtration
c)
Decomplication
d)
Decomposition
62.
Which of the following is the most efficient?
a)
Insertion Sort
b)
Bubble Sort
c)
Merge Sort
d)
Fast Sort
63.
Which of the following is the most efficient?
a)
Binary Search
b)
Linear Search
c)
Jump Search
d)
Fibonacci Search
64.
1. What is meant by structured programming?
a)
Programming in modules where each function or procedure has a specific purpose
b)
Programming with advanced programming techniques
c)
Programming with small programs
d)
<br />Programming with if statements and iteration
65.
2. How can you achieve structured programming in the design stage?
a)
By decomposing the problem into smaller sub-problems
b)
By adding one big algorithm
c)

By designing the user interface

d)
By declaring variables and validation
66.
3. What is the main benefit of structured programming?
a)
The whole program can be understood better
b)

You can program without functions and procedures

c)
You can use advanced programming techniques
d)
You can use selection and iteration
67.
4. What is another benefit of structured programming?
a)

Subroutines will only be called when they're needed and they can be called multiple times

b)

Better use of advanced programming techniques

c)

Better use of global variables

d)
Better use of selection and iteration
68.
5. Explain how abstraction helps with structured programming?
a)

The focus is only on the relevant details that will be useful for modules/users

b)

Listing the variables to avoid global variables

c)

Subroutines will only be called when they're needed

d)

Decomposes the problem into smaller sub-problems

69.
6. What will structured programming avoid the use of?
a)
Global variables
b)
Local variables
c)

Global and local variables

d)
Constants
70.
7) What does a parameter mean?
a)
It is used in a subroutine to refer to one of the pieces of data provided as input to the subroutine.
b)
A condition which is passed through a loop which makes a loop stop iterating
c)
A structure, series, or process, the end of which is connected to the beginning
d)
A definite or clear expression used to print an output
71.
8) What is a disadvantage of Structured programming?
a)
The structure of a program needs to be planned very well
b)
It is hard to implement in a practical scenario
c)
It can only be carried out by a large programming team
d)
It uses a lot of electricity
72.
9) Which is an example of a Structured programming language?
a)
All of them
b)
Java
c)
Python
d)
C++
73.
10) Which were the first 2 programming languages to use structured programming?
a)
ALGOL 58 AND ALGOL 60
b)
FORTRAN and assembly lanuage
c)
C and C++
d)
Php and SQL
74.
11) How are blocks used in structured programming?
a)
They are used to enable groups of statements to be treated as if they were one statement
b)
They are used to create for loops while iterating through extensive lists
c)
They are used to make the programming easier to read for other members of a team
d)
They are used to sort the information into sections so that it is easier to debug
75.
12) What are the three structured programming constructions?
a)
Sequencing, Repetition, Selection
b)
Fetch, Decode, Execute
c)
Iteration, conditions, implementation
d)
Evaporation, Condensation, Precipitation
76.

13. Which of the following situations is structured programming essential?

a)

When implementing a large project that will be edited by one or more people, ensuring all modules are interfaced correctly

b)
For use in school projects
c)

When doing a project that will span over a long period of time

d)

For making code in a team and sharing snippets of code to each other to make different programs

77.
14. What is the meaning of iteration?
a)
It is the same thing as a loop, such as a while loop or a for loop
b)
Iterartion is using the previous output as an input for the next 'iteration'
c)
Combining two programmes together
d)
Iteration is the process of making the same piece of code over and over again in order to change small bits and see the change in the outcome
78.

15. Which of the following is untrue about Structured programming?

a)

It can be difficult for people to collaborate as each person might use different variables

b)
It allows individuals to tackle problems together as a team as each person is only making a part of the code
c)

Structured Programming uses many subroutines

d)

By using Structured Programming, people can easily find the root of problems in the code

79.
16. How do you install Structured Programming in order to use it?
a)
You do not install it, its just a way of programming.
b)

You go into the Structured Store and press install

c)

First you need to install the programming language then check if the Structured UIL is compatible with it

d)
It comes pre-installed in all languages
80.
17. Which of the following is not a high level programming language?
a)
Assembly Language
b)
Ruby
c)
FORTRAN
d)

Rust

81.

18. What will this code do? for item in reversed(s)

a)
Iterate over elements of s in reverse
b)
Iterate over the items of s in order
c)

Iterate over all the items of s returning an index

d)
Iterate over elements of s in random order
82.

19. What is an alternative method to structured programming?

a)

Object-Orientated Programming

b)

Fantasy Programming

c)

Item-Approach Programming

d)

Sensible Programming

83.
20. Which of these needs to be agreed across collaborative teams using structured programming?
a)
Subroutine and variable names
b)

The length of the code

c)
The name of the project
d)

Whether to use flowcharts of pseudocode

84.

Removing unnecessary details from a problem is...

a)

An algorithm

b)

Abstraction

c)

Decomposition

d)

A program

85.

Breaking a problem down into smaller sub-problems that can be solved is...

a)

An algorithm

b)

Abstraction

c)

Decomposition

d)

A program

86.

To display text on screen using Python would use the code

a)

print

b)

enter

c)

output

d)

input

87.

To allow the user to enter some code in Python would use

a)

print

b)

enter

c)

output

d)

input

88.

Which type of sorting algorithm uses a 'divide and conquer' technique?

a)

Bubble

b)

Merge

c)

Linear

d)

Binary

89.

Which searching algorithm requires the list to be 'in order'?

a)

Bubble

b)

Merge

c)

Linear

d)

Binary

90.

Which data type allows you to store numbers with decimal places?

a)

integer

b)

string

c)

boolean

d)

real

91.

Which data type allows only true or false values to be stored?

a)

integer

b)

string

c)

boolean

d)

real

92.

What is the name given to a place that you can store a single piece of data that has a fixed value that cannot be changed in the program?

a)

variable

b)

constant

c)

assignment

d)

array

93.

What is the name given to the act of giving a value to a variable or constant?

a)

assignment

b)

identifier

c)

abstraction

d)

instantiation

94.

What is the term used to describe the execution of statements one after the other?

a)

iteration

b)

selection

c)

sequence

d)

order

95.

What is the term used to describe repeating sections of code?

a)

iteration

b)

selection

c)

sequence

d)

order

96.

What is the term used to describe making decisions in a program?

a)

iteration

b)

selection

c)

sequence

d)

order

97.

What type of loop would you use in Python if you want to keep asking a question until the correct answer is given?

a)

for

b)

while

c)

repeat

98.

What number do we begin counting at in an array when using Python?

a)

0

b)

1

c)

2

d)

3

99.

What data structure do we use to store multiple items of data under a single identifier?

a)

file

b)

variable

c)

array

d)

index

100.

What word means to join multiple strings together?

a)

substring

b)

instantiation

c)

adding

d)

concatenation

101.

What is the name of a sub-routine that does NOT return a value?

a)

structured

b)

function

c)

procedure

d)

parameter

102.

What type of test data is one that is of the wrong data type or is outside the expected values?

a)

normal

b)

erroneous

c)

boundary

d)

extreme

103.
Which one of the following is not basic programming construct?
a)
Loop 
b)
Sequence 
c)
Iteration 
d)
Selection
104.
Which search algorithm is good for a few items?
a)
Linear search 
b)
Binary search
c)
Merge search 
d)
Sequence search 
105.
What happens in stage 2 of the merge sort?
a)
Each pair of sublists is repeatedly merged to produce new sorted sublists
b)
The list is successively divided in half, forming two sublists, until each sublist is of length one
c)
Adjacent numbers are swapped around 
d)
The numbers are multiplied together
106.
What is a FOR…EndFOR loop?
a)
Definite iteration
b)
Indefinite iteration
c)
Condition controlled loop 
d)
A selection statement
107.
How does binary search work?
a)
It repeatedly divides portion of data list in half
b)
starts at beginning of list and goes all the way to end of list
c)
sorting algorithm
d)
bubble sort
108.
What can searching algorithms be used for?
a)
Software applications
b)
Games
c)
Hardware
d)
Tables
109.
Which one would be used by Google search?
a)
search algorithms 
b)
sort algorithms
c)
decomposition
d)
abstraction
110.
Which search algorithm is more efficient?
a)
binary search
b)
merge search
c)
linear search
d)
bubble search
111.
A bubble sort is used to sort the following numbers:
a)
23,34,12,7,34,65,87
b)
34,23,12,7,34,65,87
c)
34,12,7,65,23,34,87
d)
7,12,23,34,34,65,87 
112.
Why do we use pseudocode when coding?
a)
It is used in planning an algorithm when sketching out the structure of the program before actually coding 
b)
It is used as it is an easier way of coding
c)
It is used after coding to compare with the actual code
d)
It is used as a hexadecimal base system to code in python 
113.
What does ASCII stand for?
a)
American Standard Code for Information Interchange
b)
Australian Standard Code for Information Interchange
c)
American Standard Character Information for Interchange
d)
Australian Standard Character Information Interchange
114.
How many different characters does 7 bit ASCII have?
a)
128
b)
64
c)
256
d)
512
115.
What is one way unicode better than ASCII?
a)
It contains all characters in the world
b)
It has built-in encryption
c)
It takes up less data to store characters
d)
It uses checksums to validate characters
116.
What did unicode assign each character to
a)
An Integer
b)
A string of binary digits
c)
A number from 0 to 1
d)
A string of ASCII digits
117.

What is the short form of "Integer"?

a)

INT

b)

CHAR

c)

STR

d)

BOOL

118.

What are the numerical values of the 2 boolean values?

a)

1 and 0

b)

-1 and 1

c)

1 and 2

d)

Any numbers

119.

How much memory is taken up by a Character?

a)

1 byte

b)

1 bit

c)

4 bits

d)

8 bits

120.

What's another name for a float?

a)

Real

b)

There isn't

c)

Nybble

d)

Byte

121.

Which one is a boolean?

a)

False

b)

while

c)

and

d)

if

122.

Which of these isn't an integer?

a)

66.6

b)

69

c)

0

d)

-999

123.

Which of these will take up more memory

a)

all numbers from 1 to 5

b)

10 Boolean questions

c)

3.141

d)

The alphabet

124.
"Fred" is an example of which data type?
a)
String
b)
Char
125.
What is the purpose of datat types?
a)
To store data
b)
So that the compiler / interpreter knons the intention of the data
126.
Which is an example of a float?
a)
8.54
b)
"bruh"
127.
Can an integer and float be added together?
a)
Yes
b)
Under certain circumstances
128.
What data type is [a = "23"]
a)
String
b)
Float
129.
A boolean True and a boolean False add up to what?
a)
true
b)
Syntax error
130.
How are data types stored in Python?
a)
.int()
b)
Through variables
131.
Which searching algorithm is more effective when the list is sorted?
a)
Binary Search
b)
Linear Search
c)
Denary Search
d)
Binary Sort
132.
How does Binary Search work?
a)
Halves data, repeats
b)
Swaps data parts.
c)
One by One check
d)
Splits into doubles
133.
Which of the options are the most efficient with a large list?
a)
Binary Search
b)
Denary Search
c)
Merge search
d)
Linear Search
134.
What is a disadvantage of Binary search?
a)
List has to be sorted
b)
Ony lists less than 100
c)
Too slow
d)
List must be even
135.
What sorting method would be fastest for the average list?
a)
Binary Search
b)
Linear Search
c)
Denary Search
d)
They're all the same
136.
Which conditions favour Binary Search?
a)
Sorted List
b)
Unsorted List
c)
Long List
d)
C and D
137.
1,31,56,58, 64,66,70. To find 31, what is the first set of numbers left after binary search?
a)
1,31,56
b)
31,56,58
c)
58,64,66
d)
64,66,70
138.
A database has more than 1200 numbered records. What search algorithm is used?
a)
Binary Search
b)
Denary Search
c)
Merge Sort
d)
Bubble Sort
139.
Generally speaking, which is the most efficient searching algorithm?
a)
Binary Search
b)
Linear Search
c)
Denary Search
d)
Bubble Search
140.
Which is hardest to code?
a)
Binary Search
b)
Linear Search
c)
Linear Programming
d)
Python
141.
How does Linear Search work?
a)
Start at the beginning until you find the item you want
b)
Start from the end until you find the item you want
c)
Look for the item among the others
d)
Split the list of items in half
142.
What benefit does binary search have over linear search?
a)
It is more efficient
b)
It's easier to understand
c)
It can be done with less items
d)
It takes less time to prepare
143.
How much of the list is discarded each time an item is examined by Binary Search?
a)
Half the list
b)
One number
c)
Two numbers
d)
Depends on the numbers
144.
What is the second step of the binary search algorithm
a)
discard half of the list
b)
swap the two haves
c)
check each half separately
d)
half them again, check all
145.
what are the three constructs used to write algorithms in pseudocode
a)
sequence, selection, iteration
b)
beginning , middle, end
c)
name, option, variable
d)
userinput, total, option
146.
What is a selection
a)
using an if else or then statement
b)
a variable
c)
a choice
d)
a menu
147.
what is a sequence
a)
writing steps in the order they need to happen
b)
list of numbers
c)
boolean variables
d)
a list
148.
what is a definite iteration
a)
uses a for loop so you can execute a task a number of times
b)
control, alt, delete
c)
flowchart element
d)
input or output
149.
what is a indefinite iteration
a)
using a until loop
b)
all other while statements don’t work in the code
c)
something that is not definite
d)
waste of time
150.
what is a condition contolled loop
a)
a while or endwhile loop
b)
a loop that is contolled
c)
a placebo loop
d)
a loop that is not based on conditions
151.
what does a while loop do
a)
a while loop allows code to be executedbased on a given Boolean condition
b)
loops
c)
repeats once and ends
d)
never ends
152.
what is an if statement
a)
performs a set of instructions if it is true
b)
a statement with an if
c)
a side comment
d)
only pseudocode
153.
what happens if the user puts end before the while statement
a)
the loop wont be performed and will skip to the endehile statement
b)
crashes program
c)
shows syntax error
d)
restarts code from beginning
154.
Algorithms can..
a)
Be represented by flowcharts, psudeocode or be coded
b)
Can only be coded
c)
Can be represented by a flowchart or coded
d)
Can be represented by psudeocode or coded
155.
What is a static structure?
a)
A structure fixed in size
b)
A structure that cannot be changed
c)
A structure that cannot be moved
d)
A structure that is influenced by electricity
156.
What is a dynamic structure?
a)
A structure which's size can change
b)
A structure that moves by itself
c)
A structure that can be moved
d)
A structure that works
157.
Which structures does an array have?
a)
Static and mutable structures
b)
Static and immutable structures
c)
Dynamic and mutable structures
d)
Dynamic and immutable structures
158.
Records are most similar to which other function in Python?
a)
Dictionaries
b)
List
c)
Array
d)
None of the other options
159.
Which game doesn't use 2-D arrays?
a)
Minecraft
b)
Battleships
c)
Snake
d)
Snakes and Ladders
160.
What is a record?
a)
A data structure that groups together related items
b)
A collection of arrays
c)
A set of numbers
d)
A program
161.
What is meant by 'declaring' an array?
a)
Create an array in a program, specifying its name and size
b)
creating a program, specifying its size
c)
create a program, specifying its name
d)
create a program
162.
What are binary trees?
a)
A data structure that has a left and right node
b)
A physical tree
c)
Mathematical formula
d)
A graph
163.
What is an array?
a)
Collection of elements with array keys
b)
A list of things
c)
Mathematical division
d)
None of the above
164.
Which value does the command 'list[3]' find?
a)
The fourth value of 'List'
b)
The third value of 'List'
c)
The second value of 'List'
d)
The fifth value of 'List'
165.
When does binary search not work?
a)
When the list is unsorted
b)
When the list is sorted
c)
When the list is very large
d)
When there are negatives in the list
166.
What is an advantage of linear search over binary search
a)
It can be done upon unsorted lists
b)
It is more challenging to code
c)
It is efficient
d)
It is quicker with lists which have less than 12 terms
167.
What is a disadvantage of bubble sort?
a)
It is slow and inefficient
b)
It doesn't do anything in sorted lists
c)
It doesn't work on unsorted lists
d)
None of the provided options
168.
What is an advantage of merge sort over bubble sort
a)
It is quicker and more efficient
b)
It is more challenging to code
c)
It can work on all types of lists
d)
None of the provided options
169.
What is a disadvantage of merge sort?
a)
It is more complicated
b)
It doesn’t work on unsorted lists
c)
It is slow
d)
It is quicker
170.
What is an advantage of binary search over linear search
a)
It is quicker and more efficient
b)
It works on all lists
c)
It is easier to code
d)
None of the provided options
171.
How does linear search search for an item in a list?
a)
None of the provided options
b)
It repeatedly splits the list in half
c)
It compares pairs of items
d)
looks at all odd terms
172.
How does binary search search for an item in a list?
a)
It repeatedly divides the sorted data in half the portion of the data list that could contain the required data item
b)
It checks each term
c)
It repeatedly divides the unsorted data in half the portion of the data list that could contain the required data item
d)
None of the provided options
173.
How does merge sort sort items in a list?
a)
It splits the list in half till each sub-array is of length 1 and merges them into the right order
b)
It repeatedly compairs pairs of adjacent elements and swaps them until they are sorted
c)
It splits the list in half till each sub-array is of length 2 and merges them into the right order
d)
None of the provided options
174.
Which function gives a random integer which is between 100 and 200 and divisible by 3?
a)
random.randrange(100, 200, 3)
b)
random.randint(100, 200, 3)
c)
random.random(100, 200, 3)
d)
yuvraj.yavraj(100, 200, 3)
175.
CODE_TO_CHAR(97) evaluates to..
a)
a
b)
b
c)
c
d)
d
176.
INT_TO_STRING(12) evaluates to...
a)
"12"
b)
12
c)
1.2
d)
"1.2"
177.
STRING_TO_REAL("21.4")
a)
"21.40"
b)
21.4
c)
2.14
d)
""
178.
REAL_TO_STRING(52.3)
a)
"523"
b)
52.3
c)
"52.3"
d)
"52"
179.
What is the action of joining strings together called?
a)
Concatenation
b)
Manipulation
c)
Progression
d)
Constipation
180.
What does string.upper() do?
a)
Convert it to upper case
b)
Nothing, it doesn’t work
c)
Change it to lower case
d)
Increases font size of string
181.
What does lower(string) do?
a)
Convert to lower case
b)
error
c)
Shifts the letters down one
d)
Removes a portion of the string
182.
string = "aryan+aryan". print(string[0:5]). What is output?
a)
"aryan"
b)
error
c)
" "
d)
"aryan+"
183.
What does the DIV function return?
a)
Quotient Only
b)
Remainder Only
c)
Quotient and Remainder
d)
None of the above
184.
When two integers are divided, what is more likely to be the data type of the result?
a)
Integer
b)
String
c)
Float
d)
Boolean
185.
What is the exponentiation operator in Python?
a)
++
b)
^
c)
**
186.
What does a > b mean?
a)
A is greater than B
b)
A is smaller than B
c)
C is exponentially smaller than B + A
d)
I don't know
187.
What does z = b mean?
a)
A is greater than B
b)
A is smaller than B
c)
Z is equal to A
d)
Z is equal to B
188.
What does z < b mean?
a)
Z is greater than B
b)
Z is smaller than B
c)
I don't know
d)
Requires a calculator
189.
What does d ≠ b mean?
a)
D is equal to B
b)
B is smaller than D
c)
B is not equal to D
d)
B is greater than D
190.

Logic errors in programs are...

a)

...errors in program statements that mean the outcome is unexpected, even though the program will run

b)

...errors in the algorithm that means the outcome is expected, even though the program will run

c)

...errors in the algorithm that means the outcome is unexpected, even though the program will run

d)

...errors in the algorithm that means the outcome returns nothing as the program will not run

191.

Syntax is a set of rules that defines how program statements must be written in order for the translator to understand them. A syntax error is...

a)

...an error in the spelling of program statements

b)

...an error in the format of the program statements such as missing keywords

c)

...an error in the format of the program statements such as missing semi-colons or keywords spelt incorrectly

d)

...an error in the punctuation of program statements

192.

An assembler translator...

a)

...converts assembly language programs into machine code

b)

...converts programs created in any language into machine code

c)

...converts programs created in any high level language into machine code

193.

An interpreter is a translator that converts high level languages into machine code. It does this by...

a)

...working three lines at a time, checking syntax, converting to machine code and executing the code

b)

...working one line at a time, converting to machine code, checking syntax and executing the code

c)

...working one line at a time, checking syntax, converting to machine code and executing the code

d)

...working three lines at a time, converting to machine code, checking syntax and executing the code