Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introductory test A level cs

Total questions: 42

Worksheet time: 42mins

Name
Class
Date
1.
63 in binary is?
a)
111110
b)
11110
c)
111111
d)
0101010
2.
The number 11001100 is shifted two places to the right. What is the result after the shift?
a)
00110011
b)
11001111
c)
11110000
d)
00111010
3.
Convert 11111100 to hex?
a)
CF
b)
FF
c)
FC
d)
CC
4.
What is the output of the program if:
Die1 = 3, Die2 = 4 
a)
2
b)
7
c)
0
d)
1
5.

What does LAN stand for?

a)

Long Area Network

b)

Large Access Network

c)

Local Area Network

d)

Large Area Network

6.

Which type of storage is directly accessible to the CPU?

a)

Primary

b)

Secondary

c)

Offline

7.

Which of the following is a file format for video?

a)

Motion Picture Expert Group (MPEG)

b)

Flash (flv)

c)

Wave format (WAV)

d)

JAVA

8.

Which statement is correct about Analog data?

a)

one of type of graphic

b)

use as main focus such as logos images

c)

consists of set of bits or pixels

d)

represented in continuous signal

9.
This memory is used for the permanent storage of data but cannot be changed.
a)
ROM
b)
RAM
c)
Flash Memory
d)
Cache
10.
Which type of sort algorithm is this?
a)
Bubble
b)
Merge
c)
Insertion
11.

Which of the following best describes decomposition?

a)

Removing all of the unimportant bits of a problem.

b)

Breaking the problem down into manageable chunks.

c)

A logical way of getting from the problem to the solution.

12.

Which of the following is a searching algorithm used to find whether a StudentName can be found in the "StudentData.txt" file?

a)

Linear search

b)

Bubble search

c)

Open search

13.

What type of operators are AND OR NOT

a)

Arithmetic

b)

Relational

c)

Booleon

14.

What is debugging?

a)

The term popularly used to describe fixing errors in a computer program

b)

The term popularly used to describe no errors in a computer program

c)

The term popularly used to describe locating errors in a computer program

15.

Which transmission media is capable of having a much higher bandwidth?

a)

Coaxial

b)

Twisted pair cable

c)

Plastic

d)

Fibre optic

16.

Convert 500MB into KB

a)

500,000KB

b)

5,000KB

c)

50KB

d)

50,000KB

17.

What is the purpose of a firewall in a computer network?

a)

To block all incoming and outgoing network traffic

b)

To prevent unauthorized access and protect against cyber threats

c)

To increase network speed and performance

18.
Which of the following is a non-composite user-defined data type?
a)
Record
b)
Set
c)
Enum
d)
Class
19.
What is the primary purpose of a pointer in programming?
a)
To store an integer value
b)
To store the memory address of a variable
c)
To store a string value
d)
To perform arithmetic operations
20.
Which of the following is NOT a valid identifier in most programming languages?
a)
totalAmount
b)
3DModel
c)
total_amount
d)
_userInput
21.
In a two’s complement system, how is the negative binary number `-5` represented in 4 bits?
a)
1011
b)
1101
c)
101
d)
1001
22.
Which data structure is most suitable for ensuring that a list contains only unique elements?
a)
Array
b)
Set
c)
Linked list
d)
Stack
23.
Which programming paradigm is most closely associated with classes and objects?
a)
Functional programming
b)
Object-oriented programming
c)
Procedural programming
d)
Declarative programming
24.
Which of the following is a valid 8-bit binary representation of the hexadecimal number `3F`?
a)
111110
b)
11111100
c)
111111
d)
1111000
25.
Which sorting algorithm has a worst-case time complexity of O(n^2)?
a)
Merge sort
b)
Quick sort
c)
Bubble sort
d)
Heap sort
26.
Which of the following is an example of a composite data type?
a)
Integer
b)
String
c)
Enum
d)
Record
27.
In a database, which SQL statement is used to retrieve data?
a)
INSERT
b)
SELECT
c)
UPDATE
d)
DELETE
28.
Which of the following correctly defines an array in pseudocode?
a)
ARRAY[10] OF INTEGER
b)
INTEGER ARRAY[10]
c)
ARRAY INTEGER[10]
d)
INTEGER[10] ARRAY
29.
Which algorithm is commonly used to find the shortest path in a graph?
a)
Depth-first search
b)
Breadth-first search
c)
Dijkstra’s algorithm
d)
Kruskal’s algorithm
30.
In the context of databases, what does ACID stand for?
a)
Atomicity, Consistency, Isolation, Durability
b)
Accuracy, Consistency, Integrity, Durability
c)
Atomicity, Correctness, Integrity, Durability
d)
Accuracy, Consistency, Isolation, Durability
31.
Which of the following is NOT a characteristic of a well-defined algorithm?
a)
Ambiguity
b)
Input
c)
Output
d)
Finiteness
32.
Which of the following data types would be most appropriate for storing a person’s age?
a)
String
b)
Real
c)
Integer
d)
Boolean
33.
Which of the following best describes the difference between a class and an object in object-oriented programming?
a)
A class is an instance of an object.
b)
A class is a blueprint for creating objects, while an object is an instance of a class.
c)
An object is a blueprint for creating classes, while a class is an instance of an object.
d)
A class and an object are the same.
34.
Which pseudocode algorithm correctly finds the maximum value in an array of integers?
a)
DECLARE min AS INTEGER SET min TO array[0] FOR i FROM 1 TO LENGTH(array) - 1 IF array[i] > min THEN SET min TO array[i] END IF NEXT i OUTPUT min
b)
DECLARE max AS INTEGER SET max TO array[0] FOR i FROM 1 TO LENGTH(array) - 1 IF array[i] > max THEN SET max TO array[i] END IF NEXT i OUTPUT max
c)
DECLARE max AS INTEGER SET max TO array[0] FOR i FROM 1 TO LENGTH(array) - 1 IF array[i] < max THEN SET max TO array[i] END IF NEXT i OUTPUT max
d)
DECLARE max AS INTEGER SET max TO array[0] FOR i FROM 1 TO LENGTH(array) - 1 IF array[i] = max THEN SET max TO array[i] END IF NEXT i OUTPUT max
35.
Which of the following is the correct pseudocode to define an enumerated type for the four seasons?
a)
ENUM Season = { WINTER, SPRING, SUMMER, AUTUMN }
b)
ENUM Season = [ WINTER, SPRING, SUMMER, AUTUMN ]
c)
ENUM Season = { "WINTER", "SPRING", "SUMMER", "AUTUMN" }
d)
ENUM Season = [ "WINTER", "SPRING", "SUMMER", "AUTUMN" ]
36.
How does two’s complement representation help in performing subtraction using binary addition?
a)
By converting subtraction into addition of a positive number.
b)
By converting subtraction into addition of a negative number.
c)
By adding the absolute values of the numbers.
d)
By converting binary addition into subtraction.
37.
What is a key benefit of using a set over a list for storing a collection of elements?
a)
A set allows duplicate elements.
b)
A set maintains the order of elements.
c)
A set automatically eliminates duplicate elements.
d)
A set allows for indexed access to elements.
38.
In which scenario would you most likely prefer to use a pointer over a regular variable?
a)
When performing arithmetic operations.
b)
When needing to store multiple values of the same type.
c)
When dynamically allocating memory for data structures like linked lists.
d)
When working with constants.
39.
What is the time complexity of a binary search algorithm?
a)
O(n)
b)
O(log n)
c)
O(n^2)
d)
O(1)
40.
Which pseudocode correctly defines a function to check whether a given number is prime?
a)
FUNCTION IsPrime(n) IF n <= 1 THEN RETURN True FOR i FROM 2 TO n - 1 IF n MOD i = 0 THEN RETURN True END IF NEXT i RETURN False END FUNCTION
b)
FUNCTION IsPrime(n) IF n <= 1 THEN RETURN False FOR i FROM 2 TO n - 1 IF n MOD i = 0 THEN RETURN False END IF NEXT i RETURN True END FUNCTION
c)
FUNCTION IsPrime(n) IF n <= 1 THEN RETURN False FOR i FROM 2 TO SQRT(n) IF n MOD i = 0 THEN RETURN False END IF NEXT i RETURN True END FUNCTION
d)
FUNCTION IsPrime(n) IF n <= 1 THEN RETURN True FOR i FROM 2 TO SQRT(n) IF n MOD i = 0 THEN RETURN True END IF NEXT i RETURN False END FUNCTION
41.
Which statement best describes inheritance in object-oriented programming?
a)
Inheritance allows an object to inherit methods and properties from another object.
b)
Inheritance allows a class to inherit methods and properties from another class.
c)
Inheritance allows a method to inherit properties from another method.
d)
Inheritance allows a variable to inherit properties from another variable.
42.
What is the primary purpose of normalization in database design?
a)
To increase redundancy in the database.
b)
To ensure that each table in the database has a unique identifier.
c)
To reduce redundancy and improve data integrity.
d)
To increase the complexity of the database schema.