Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

A-Level Computer Science

Total questions: 162

Worksheet time: 2hrs 27mins

Name
Class
Date
1.

What subcategory of software does a virus checker belong to.

a)

Operating System

b)

Translators

c)

Utilities

d)

Defragmentation

2.

Which of the following is not a resource managed by an operating system?

a)

Processor

b)

Memory

c)

I/O Devices

d)

Allocating Files on Secondary Storage

e)

Provides Virtual Machine

3.

Which layer of the TCP/IP stack determines which application layer software on the server should deal with a received request by using port numbers?

a)

Application

b)

Transport

c)

Network

d)

DataLink

4.

In a DBMS, when a user starts to edit a record, others are prevented from accessing the record for the duration of the editing. What is this called?

(a)  

5.

Which form of transmission results in the clocks for the receiver and transmitter synchronising for the duration of a transmission?

(a)  

6.

Calculate the decimal equivalent of the normalised floating point representation number with an 8-bit mantissa and a 4-bit exponent, both stored using two’s complement.

1.0110010 0010

(a)  

7.

With an 8 bit mantissa and a 4 bit exponent, write the normalised floating point representation of the decimal value 0.15625

(a)  

8.

A particular computer system uses a 32-bit address bus and a 32-bit data bus. What is the maximum amount of memory, in bytes, that could be accessed?

(a)  

9.

Decrypt the ciphertext "QGOZRKT" using the Caesar cipher with the settings shown in the image.

(a)  

10.

Which of the following is not a condition required by the vernam cipher?

a)

The key must be truly random.

b)

The key must be transmitted with the data being encrypted/ rendered into ciphertext

c)

The key must not be reused.

d)

The key must be at least as long as the data to be encrypted/plaintext.

e)

The key must be kept securely

11.

Given the machine in the exampled image, how many commands can it store and work with?

(a)  

12.

Fill the blanks in the following explanation of the above assembly code.

Check if the value stored in memory location ___ is ___ times the value stored in memory location ___

(a)  

13.

The highest frequency component in a sound that is being sampled is 14,500 Hz. What should the minimum sample rate be?

(a)  

14.

Given an 8-bit mantissa and 4-bit exponent, write the normalised, two's complement representation of 58.5 in binary.

(a)  

15.

Which of the boolean equations above are incorrect? Select more than one.

a)

Equation 1

b)

Equation 2

c)

Equation 3

d)

Equation 4

e)

Equation 5

16.

Using odd parity, what is the parity bit for the following data? 0101011

(a)  

17.

A band is recording and digitising a song to make available as a download from their website.

The song lasts 3 minutes. The sample resolution is 16 bits and a sample rate of 44 kHz has been used. Calculate the minimum amount of storage space, in megabytes (MB), for the song and leave your answer with a precision of two decimal places.

(a)  

18.

Horatio is on Discord voice with his mates but his computer gives him a warning message that his microphone's ADC has failed. What is an ADC?

(a)  

19.

What is the name of the logic gate above?

(a)  

20.

Which type of computer architecture is typically used for digital signal processing?

(a)  

21.

SSID Stands for?

(a)  

22.

Some compilers produce this instead of an exe. This allows it to be platform independent.

(a)  

23.

The number of signal changes (which may occur) in a given period of time/in a second is known as...

(a)  

24.

The range of frequencies that can be transmitted across a network connection is known as...

(a)  

25.

RTS / CTS Are protocols which stand for?

(a)  

26.

In direct addressing mode, how many memory locations could a processor that used the instruction format shown above could potentially make use of?

(a)  

27.

Which type of high level programming languages will have instructions which are executed in a programmer-defined order?

(a)  

28.

What is the denary equivalent of the hexadecimal number D6?

(a)  

29.

Represent the decimal value -67 as an 8-bit two’s complement binary integer.

(a)  

30.

(a)   communication is most notably evidenced with buses, where multiple bits are sent simultaneously.

31.

Peripheral devices usually make use of __________ communication.

a)

Serial

b)

Parallel

32.

What would be the primary key for the RaceEntryAndResult table?

(a)  

33.

The ASCII code for the numeric character "0" is 48, other numeric characters follow on from this in sequence. What character is represented by the bit pattern 0011 1001 if it is an ASCII code?

(a)  

34.

Convert 0011 1001 into Hexadecimal.

(a)  

35.

Calculate the minimum size of file that could be used to store the bitmap image in the figure above. Express your answer in bytes.

(a)  

36.

Calculate the decimal equivalent of the number.

(a)  

37.

Compress the above using Run-Length-Encoding.

(a)  

38.

Which theorem states that we need to be sampling at a frequency at least twice the rate of the highest frequency that can be present in the original signal?

(a)  

39.

Which of these represents a natural number?

a)

A

b)

B

c)

C

d)

D

e)

None

40.

Which logic gate is represented by this truth table?

(a)  

41.

Complete the truth tables for the OR and NAND gates. Put them in order from top to bottom. Separate your two answers with a space.

(a)  

42.

Complete the statement.

(a)  

43.

The processor in Ella’s computer has four cores running at 2.8 GHz and the processor in Josephine’s computer has one core running at 3.2 GHz.


Which computer would be faster at serial processing?

a)

Ella's

b)

Josephine's

44.

Using abbreviations only, state one of the registers used in the fetch part of the F-E cycle.

(a)  

45.

Give the full name of RAM.

(a)  

46.

Translate &DD00 into denary

(a)  

47.

What is the result of performing the following logical operation?

00110000 OR 00000010

(a)  

48.

What is the result of performing the following logical operation?

NOT 01001111

(a)  

49.

What is the result of performing the following logical operation?

11000001 AND 00010011

(a)  

50.

What is the result of performing the following logical operation?

00000101 XOR 10001110

(a)  

51.

(a)   addressing means the operand is the datum.

52.

An attribute in one table which is a primary key attribute in another table is a (a)   key

53.
Return the name and genre of each movie with an imdb_rating greater than 5 and year greater than 2012.
a)
SELECT * FROM movies WHERE imdb_rating > 5 AND year > 2012;
b)
SELECT name, genre FROM movies WHERE imdb_rating < 5 AND year < 2012;
c)
SELECT name, year FROM movies WHERE imdb_rating > 5 year > 2012;
d)
SELECT name, genre FROM movies WHERE imdb_rating > 5 AND year > 2012;
54.

Another word for the mnemonic such as LDR, STR etc.

(a)  

55.

What is an edge-triggered D-type flip-flop used for?

a)

For managing hardware resources.

b)

For compiling code.

c)

For performing arithmetic operations.

d)

As a memory unit.

56.

What is the relationship between hardware and software?

a)

Hardware is the physical component, and software is the set of instructions.

b)

Hardware and software are both physical components.

c)

Hardware and software are both sets of instructions.

d)

Hardware is the set of instructions, and software is the physical component.

57.

What is system software?

a)

Software that manages and controls computer hardware.

b)

Software designed for end-users.

c)

Software used for creating documents.

d)

Software used for browsing the internet.

58.

Which of the following is NOT a type of system software?

a)

Operating systems

b)

Word processors

c)

Libraries

d)

Utility programs

59.

What is the role of an operating system?

a)

To create web pages.

b)

To write code.

c)

To design graphics.

d)

To hide the complexities of the hardware.

60.

Which of the following is a low-level programming language?

a)

Java

b)

Python

c)

Machine-code

d)

JavaScript

61.

What is an imperative high-level language?

a)

A language used for database management.

b)

A language used for web development.

c)

A language that requires specific instructions to be given.

d)

A language that is close to machine code.

62.

What is the role of a compiler?

a)

To manage hardware resources.

b)

To translate high-level code into machine code.

c)

To create graphical interfaces.

d)

To interpret code line by line.

63.

What is bytecode?

a)

A type of system software.

b)

A high-level programming language.

c)

A type of hardware component.

d)

The final output of some compilers.

64.

What is the difference between source code and object code?

a)

Source code is the compiled version, and object code is the written version.

b)

Source code is written by programmers, and object code is the compiled version.

c)

Source code is machine code, and object code is high-level code.

d)

Source code is used for web development, and object code is used for system software.

65.

Which logic gate has the output true only when both inputs are true?

a)

AND

b)

NOT

c)

XOR

d)

OR

66.

What is the purpose of a truth table?

a)

To write high-level code.

b)

To manage hardware resources.

c)

To display the physical components of a computer.

d)

To show the output of a logic gate for all possible input combinations.

67.

What is a half-adder used for?

a)

To perform addition of two single-bit binary numbers.

b)

To manage memory.

c)

To perform subtraction.

d)

To compile code.

68.

What is an edge-triggered D-type flip-flop used for?

a)

For managing hardware resources.

b)

For compiling code.

c)

For performing arithmetic operations.

d)

As a memory unit.

69.

What is De Morgan’s law used for?

a)

To manage hardware resources.

b)

To write high-level code.

c)

To simplify Boolean expressions.

d)

To compile code.

70.

Which of the following is NOT a function of an operating system?

a)

Managing I/O devices.

b)

Creating web pages.

c)

Allocating processors.

d)

Managing hardware resources.

71.

What is the primary function of a router in a network?

a)

To provide wireless connectivity

b)

To connect multiple networks and route network traffic

c)

To store data for network users

d)

To manage the security of a network

72.

What is the primary purpose of the TCP/IP model?

a)

To provide a set of rules for creating web pages

b)

To ensure secure data transmission over the internet

c)

To provide a standard for how data is transmitted over the internet

d)

To manage the power consumption of networking devices

73.

What does NAT (Network Address Translation) allow a router to do?

a)

Increase the speed of the network

b)

Convert between protocols like TCP and UDP

c)

Allow multiple devices to share a single IP address

d)

Provide encryption for data packets

74.

The ASCII value for the letter 'a' in binary is 110 0001. What is the binary ASCII value for the letter 'e'?

a)

110 0010

b)

110 0100

c)

110 0101

d)

110 0110

75.

The image shows how a modulo 11 check digit can be calculated.

Find the check digit for the string of digits 1 2 3 4 using modulo 11.

a)

1

b)

2

c)

3

d)

4

e)

5

76.

Which of the following is Nyquist's Theorem?

a)

e = mc2

b)

file size = sample res * sample rate

c)

fs > 2fmax

77.

Abstraction is the act of...

a)

Adding extra detail to enable someone else to be able to solve the task without your help

b)

Removing the detail that is important to solve the task

c)

Removing all unnecessary detail to focus on what is important to solve the task

d)

Creating an image that is similar to the object in question in some abstract way

78.

Simplify the boolean expression 😆

a)

!(A and B)

b)

A or B

c)

!A and B

d)

A and !B

79.

What is the difference between a static and dynamic data type?

a)

Dynamic data types are fixed and static can change size

b)

A dynamic data type can change size at run time, whereas static cannot

c)

No difference, the are the same

80.

How many bytes are there in a kibibyte?

a)

1024000

b)

10000

c)

1000

d)

1024

81.

This is one of ....................... laws

a)

Einstein's

b)

Neptune's

c)

Newton's

d)

De Morgan's

82.

What is the job of the logic circuit above?

a)

Checks is a sensor is activated

b)

Adds two binary numbers together

c)

Subtracts one binary number from another

d)

Adds two binary numbers and produces a sum and carry bit

83.

The Current State is S0 and Input is 1

What is the OUTPUT and Direction

a)

1, L

b)

1, R

c)

0, L

d)

0, R

84.

What is the Big O Notation of Merge Sort?

a)

O(n)

b)

O (n log n)

c)

O(log n)

d)

O(n2)

85.

Which regular expression matches the FSM?

a)

a?bc(dc)*

b)

a|b(cd)+

c)

a+bc(dc)?

d)

a(b|c)d*c*

86.

Select the strings that are matched by the regular expression:

a(b|c)?d

a)

abcbcbcbcd

b)

acd

c)

ad

d)

acccd

87.

The Caesar cipher is an example of what type of cipher?

a)

Substitution cipher

b)

Transposition cipher

c)

Public key encryption

d)

Vernam cipher

88.

The letter m has an ascii code of 1101101. As part of a Vernam cipher, the key 0101001 is applied to that letter. What is the resulting ciphertext?

a)

1000100

b)

0111011

c)

1100101

d)

1101001

89.

The bit pattern 0110001 is sent with an even parity bit in the MSB position.

Which of these is the bit pattern receivedt?

a)

00110001

b)

10110001

c)

01100011

d)

01100010

90.

The bitmap image of the lemming is 6 pixels by 10 pixels. There are 16 available colours for each pixel. Calculate the file size of the image (not including any metadata) in bytes.

a)

30

b)

120

c)

22.5

d)

60

91.

Which of these are advantages of vector graphics over bitmap graphics?

a)

Can be rescaled without distortion

b)

(Usually) a smaller file size

c)

Ideal for photographic images

d)

Each pixel can be modified individually

92.

Which of the following is Nyquist's Theorem?

a)

e = mc2

b)

file size = sample res * sample rate

c)

fs > 2fmax

93.

Abstraction is the act of...

a)

Adding extra detail to enable someone else to be able to solve the task without your help

b)

Removing the detail that is important to solve the task

c)

Removing all unnecessary detail to focus on what is important to solve the task

d)

Creating an image that is similar to the object in question in some abstract way

94.

When would you use 'indefinite iteration'?

a)

When you are unsure about how many times a loop will need to run to satisfy a condition

b)

When you know exactly how many times you need to run the loop in the algorithm

c)

When you want a different piece of code to run depending upon the value of a variable or condition

95.

Simplify the boolean expression 😆

a)

!(A and B)

b)

A or B

c)

!A and B

d)

A and !B

96.

What is the difference between a static and dynamic data type?

a)

Dynamic data types are fixed and static can change size

b)

A dynamic data type can change size at run time, whereas static cannot

c)

No difference, the are the same

97.

Which of the following is a 'divide and conquer' algorithm?

a)

Linear search

b)

Binary search

c)

Merge sort

d)

Bubble sort

98.

How many comparisons will a Binary Search make to find the number 23 in the list?

a)

3

b)

4

c)

2

d)

10

99.

How many passes will a Bubble Sort need to make to sort this list (in ascending order)?

a)

1

b)

2

c)

3

d)

4

100.

What does the following describe?


The process of breaking a problem down into smaller problems that can be solved more easily.

a)

Declaration

b)

Functional Abstraction

c)

Abstraction

d)

Decomposition

101.

How many bytes are there in a kibibyte?

a)

1024000

b)

10000

c)

1000

d)

1024

102.

Which network topology is this?

a)

Star

b)

Bus

c)

Mesh

d)

Linear

103.

This is one of ....................... laws

a)

Einstein's

b)

Neptune's

c)

Newton's

d)

De Morgan's

104.

What is the job of the logic circuit above?

a)

Checks is a sensor is activated

b)

Adds two binary numbers together

c)

Subtracts one binary number from another

d)

Adds two binary numbers and produces a sum and carry bit

105.

passes data over the physical network

a)

transport layer

b)

internet layer

c)

link layer

d)

application layer

106.

retreieve emails from server

a)

HTTP

b)

FTP

c)

SMTP

d)

IMAP

107.

Responsible for packet switching

a)

TCP

b)

UDP

c)

IP

d)

FTP

108.

The Current State is S0 and Input is 1

What is the OUTPUT and Direction

a)

1, L

b)

1, R

c)

0, L

d)

0, R

109.

Does Breadth-first search use a queue or a stack?

a)

Stack

b)

Queue

c)

Both

d)

neither

110.

What is the Big O Notation of Merge Sort?

a)

O(n)

b)

O (n log n)

c)

O(log n)

d)

O(n2)

111.

Which of these tree traversal methods is used to output the contents of a binary tree in ascending order?

a)

Pre-Order

b)

In-Order

c)

Post-Order

d)

Monastic Orders

112.

A list must be in order for a Binary search to take place

a)

True

b)

False

113.

Preorder Traversal of the tree

a)

1 4 9 5 2 8 3

b)

1 4 9 5 2 3 8

c)

1 4 9 8 5 2 3

d)

1 4 9 8 5 2 3

114.

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

a)

ABCD

b)

DCBA

c)

DCAB

d)

ABDC

115.

How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

a)

1

b)

2

c)

3

d)

4

116.

Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are

a)

Full: (REAR+1) mod n == FRONT, empty: REAR == FRONT

b)

Full: (REAR+1) mod n == FRONT, empty: (FRONT+1) mod n == REAR

c)

Full: REAR == FRONT, empty: (REAR+1) mod n == FRONT

d)

Full: (FRONT+1) mod n == REAR, empty: REAR == FRONT

117.

If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values

a)

2,2,1,1,2

b)

2,2,1,2,2

c)

2,1,2,2,1

d)

2,1,2,2,2

118.

Which of the following is not an inherent application of stack?

a)

Implementation of recursion

b)

Evaluation of a postfix expression

c)

Job scheduling

d)

Reverse a string

119.

What is the postfix equivalent for the following infix expression?


(2/4)*(5-6)

a)

2 4 5 6 / - *

b)

2 4 / 5 6 - *

c)

2 4 / * 5 - 6

d)

2 4 / 5 - 6 *

120.

What name is given to the rules that define how symbols can be replaced by other symbols?

a)

Construction rules

b)

Production rules

c)

Definition rules

d)

Establishing rules

121.

What type of object is enclosed in angle brackets in Backus-Naur form?

a)

Definitive

b)

Terminal

c)

Non-terminal

d)

Special

122.

Why is it that Backus-Naur form is capable of representing some languages that cannot be represented by regular expressions?

a)

Backus-Naur form supports definitions

b)

Backus-Naur form supports Recursion

c)

Backus-Naur form supports Selection

d)

Backus-Naur form supports Loops

123.

Which of the following examples uses valid recursion?

a)

<Number> ::= <Digit> | <Digit><Number>

b)

<Name> ::= <Forename><Surname>

c)

<Age> ::= <Digit>|<Digit><Digit>

d)

<Name> ::= <Name>

124.

For the set "A = {1, 2, 3, 4, 5 }"

which is the correct set comprehension

a)

A = {x | x ∈ ℕ ∧ 6 > x ≥ 1 }

b)

A = | x ∈ ℕ ∧ 5 > x ≥ 1

c)

A = (x | x ∈ ℕ A x ≥ 1 )

d)

A = {x ∈ ℕ ∧ 1 > x ≥ 5 }

125.

What is the "Cardinality" of a set?

a)

number of elements of a finite set

b)

number of elements of an infinite finite set

c)

number of elements of a finite or infinite set

d)

number of elements not in a given set

126.

What data structure can be used with postfix expressions?

a)

Queue

b)

Hash Table

c)

Vector

d)

Stack

127.

What is represented by ellipses in syntax diagrams?

a)

Terminals

b)

Non-Terminals

c)

Selections

d)

Definitions

128.

What 3 Parts does a RFID system contain?

a)

Ram, Power supply and Monitor

b)

Wheels, Engine, Battery

c)

Processor, Printer and Scanner

d)

Tag, Reader and Antenna

129.

What are the two types of RFID Tags?

a)

Active and Passive

b)

Aggressive and Passive

c)

Wireless and Wired

d)

Male and Female

130.

Active or Passive: Is not powered and receives power from reader

a)

Active

b)

Passive

131.

This is an image of which type of drive?

a)

Hard Disk Drive

b)

Optical Drive

c)

Solid State Drive

d)

CD Drive

132.

Which type of storage uses a laser?

a)

Magnetic

b)

Optical

c)

Solid State

133.
Typically stores 650mb of data on it - usually music.
a)
DVD
b)
Blu-ray
c)
CD
d)
Floppy disk
134.

A ferry departs from A(-25, 28). It takes 3 hours to reach its destination B(20, -32), travelling in as straight line with constant velocity. Distances are in km. Find the velocity vector of the ferry.

a)

15i + 20j

b)

15i - 20j

c)

20i + 15j

d)

20i - 15j

135.
Which data structure uses hashing to store information with constant lookup time?
a)
Hash table
b)
1D Array
c)
Linked List
d)
2D Array
e)
Stack
136.

The case in which a key other than the desired one is kept at the identified location is called?

a)

Hashing

b)

Collision

c)

Chaining

d)

Open addressing

137.

A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown above.


Which one of the following choices gives a possible order in which the key values could have been inserted in the table?

a)

46, 42, 34, 52, 23, 33

b)

34, 42, 23, 52, 33, 46

c)

46, 34, 42, 23, 52, 33

d)

42, 46, 33, 23, 34, 52

138.

Which of the following statement(s) is TRUE?

1) A hash function takes a message of arbitrary length and generates a fixed length code.

2) A hash function takes a message of fixed length and generates a code of variable length.

3) A hash function may give the same hash value for distinct messages.

a)

1 only

b)

1 & 3 only

c)

2 & 3 only

d)

3 only

139.
Storage for data defined in terms of set of operations to be performed on the data 
a)
Arrays
b)
Variables
c)
Abstract Data Types
d)
Algorithms
140.
What kind of Data structure would you expect to find utilised to store operations in a CPU?
a)
Stack
b)
Queue
c)
List
d)
Tree
141.
What data type is this?
quiz = {"Do you help out at home? ":"yes",        
"Do you beleive in Santa? ":"yes"
}
a)
list
b)
string
c)
dictionart
d)
dictionary
142.

What type of data structure is an array?

a)

Static and mutable

b)

Dynamic and immutable

c)

Static and immutable

143.

When traversing a binary tree, which diagram is post-order?

a)
b)
c)
144.
The process of recording a sound, stored in the form of thousands of individual measurements, each at a discrete point in time, is called 
a)
sizing
b)
synthesizing
c)
quantizing
d)
sampling
145.
Which of the following sound file characteristics doesn't directly affect the size of a digital audio file?
a)
Sample rate
b)
Sample size
c)
Volume
d)
Compression
146.
The first format that uses a shorthand representation of musical notes and durations stored in numeric form is 
a)
MP3
b)
MIDI
c)
DSP
d)
MPEG
147.
Which of the statement is false regarding MIDI?
a)
the sound can easily be changed by any instruments
b)
spoken audio can be recorded by MIDI
c)
the MIDI files size is smaller than digital audio file
148.
Identify types of lossless compression
a)
Run length encoding
b)
Dictionary encoding
c)
Transform Coding
d)
Perceptual Coding
149.
If person A wants to send a message to person B using asymmetric encryption, which key should they use to encrypt the message?
a)
B’s public key
b)
A’s public key
c)
A’s private key
d)
B’s private key
150.
Identify properties that a hashing algorithm should have
a)
Low chance of collision
b)
Quick to calculate
c)
Output smaller than input
151.

Which of these is the correct definition of a pixel?

a)

The smallest addressable element of an image

b)

The smallest part of the screen that can be coloured

c)

A square part of an image

d)

One of the 'lights' on the computer screen

152.

When is Run Length Encoding not very effective?

a)

When there are lots of the same colour pixels in a row

b)

When there are lots of colour changes in a row

c)

When there are only two colours per row

d)

When there are lots of colours in runs on the same row

153.

The number of bits a system can send per second is bandwidth.

a)

True

b)

False

154.

The time it takes for a bit to get from sender to receiver.

a)

Network

b)

Latency

c)

Bandwidth

d)

Bitrate

155.

Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are

a)

Full: (REAR+1) mod n == FRONT, empty: REAR == FRONT

b)

Full: (REAR+1) mod n == FRONT, empty: (FRONT+1) mod n == REAR

c)

Full: REAR == FRONT, empty: (REAR+1) mod n == FRONT

d)

Full: (FRONT+1) mod n == REAR, empty: REAR == FRONT

156.

If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values

a)

2,2,1,1,2

b)

2,2,1,2,2

c)

2,1,2,2,1

d)

2,1,2,2,2

157.

What is the postfix equivalent for the following infix expression?


(2/4)*(5-6)

a)

2 4 5 6 / - *

b)

2 4 / 5 6 - *

c)

2 4 / * 5 - 6

d)

2 4 / 5 - 6 *

158.

Why is it that Backus-Naur form is capable of representing some languages that cannot be represented by regular expressions?

a)

Backus-Naur form supports definitions

b)

Backus-Naur form supports Recursion

c)

Backus-Naur form supports Selection

d)

Backus-Naur form supports Loops

159.

Which of the following examples uses valid recursion?

a)

<Number> ::= <Digit> | <Digit><Number>

b)

<Name> ::= <Forename><Surname>

c)

<Age> ::= <Digit>|<Digit><Digit>

d)

<Name> ::= <Name>

160.

For the set "A = {1, 2, 3, 4, 5 }"

which is the correct set comprehension

a)

A = {x | x ∈ ℕ ∧ 6 > x ≥ 1 }

b)

A = | x ∈ ℕ ∧ 5 > x ≥ 1

c)

A = (x | x ∈ ℕ A x ≥ 1 )

d)

A = {x ∈ ℕ ∧ 1 > x ≥ 5 }

161.

What is the "Cardinality" of a set?

a)

number of elements of a finite set

b)

number of elements of an infinite finite set

c)

number of elements of a finite or infinite set

d)

number of elements not in a given set

162.

What data structure can be used with postfix expressions?

a)

Queue

b)

Hash Table

c)

Vector

d)

Stack