wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Final Exam FCS Westbury 2025

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

What is the main purpose of a computer program?

a)

To execute random commands

b)

To tell the computer what to do

c)

To store pictures

d)

To translate languages

2.

In Karel, which command makes Karel move forward one space?

a)

step()

b)

move()

c)

forward()

d)

walk()

3.

What happens if Karel tries to move forward but hits a wall?

a)

Karel gets stuck with an error

b)

Goes through wall

c)

Jumps wall

d)

Teleports

4.

Which Karel command picks up a ball?

a)

takeBall()

b)

grab()

c)

take()

d)

collect()

5.

A function in Karel helps you:

a)

Repeat behavior with one command

b)

Draw pictures

c)

Store numbers

d)

Turn off Karel

6.

What does RGB stand for?

a)

Red Gray Blue

b)

Red Green Blue

c)

Real Graphic Bytes

d)

Right Green Black

7.

Which number system uses only 0s and 1s?

a)

Decimal

b)

Binary

c)

Hexadecimal

d)

Octal

8.

How many values can one binary digit represent?

a)

1

b)

2

c)

10

d)

256

9.

Hexadecimal digits range from:

a)

0–8

b)

1–10

c)

0–F

d)

A–Z

10.

Which is a valid JavaScript variable declaration?

a)

variable x=5

b)

var x=5

c)

x equals 5

d)

make x 5

11.

What does prompt() do?

a)

Outputs text

b)

Takes input

c)

Random number

d)

Adds numbers

12.

What type of value does prompt() return?

a)

Boolean

b)

Number

c)

String

d)

Null

13.

Which symbol is used for single-line comments?

a)

#

b)

//

c)

/*

d)

<--

14.

What does Math.random() return?

a)

Whole 1–10

b)

Any whole

c)

Decimal 0–1

d)

Negative

15.

Convert Math.random() to number 1–10:

a)

Math.random(1,10)

b)

1+Math.random()*10

c)

random()+10

d)

random(10)

16.

What does a conditional do?

a)

Repeat

b)

Choose options

c)

Store data

d)

Draw

17.

Which means equal to?

a)

B == C

b)

!= D

c)

<>

18.

What is a packet?

a)

Large file

b)

Broken file

c)

Small piece of data

d)

Security tool

19.

The Internet is best described as:

a)

One computer

b)

Network of networks

c)

Google

d)

Wireless cable

20.

What is routing?

a)

Storing files

b)

Directing packets

c)

Protecting data

d)

Randomly sending

21.

Reliable protocol:

a)

HTTP

b)

TCP

c)

CSS

d)

DNS

22.

Protocol that translates domain names:

a)

TCP

b)

DNS

c)

HTML

d)

RBG

23.

Decimal 15 to binary:

a)

1001

b)

1111

c)

0101

d)

1100

24.

RGB yellow:

a)

A (255,255,0)

b)

B (255,0,255)

c)

C (0,255,0)

d)

D (255,128,128)

25.

JavaScript addition operator:

a)

+

b)

-

c)

&

d)

/

e)

*

26.

26. turnLeft() in Karel does the following:

a)

Turns Karel 90 degrees to the left

b)

Moves Karel forward one step

c)

Turns Karel 180 degrees

d)

Makes Karel pick up a beeper

27.

One reason functions are useful is:

a)

They help organize code into reusable blocks.

b)

They make code run slower.

c)

They increase the number of errors in a program.

d)

They make code harder to read.

28.

Convert binary 1010 to decimal.

a)

10

b)

8

c)

12

d)

15

29.

Convert decimal 26 to hexadecimal.

a)

1A

b)

2B

c)

16

d)

1C

30.

An algorithm represents:

a)

a step-by-step procedure to solve a problem

b)

a type of computer hardware

c)

a programming language

d)

a mathematical equation

31.

Difference between high- and low-level languages is:

a)

High-level languages are closer to human language, while low-level languages are closer to machine language.

b)

High-level languages are harder to learn than low-level languages.

c)

Low-level languages are more portable than high-level languages.

d)

High-level languages require more memory than low-level languages.

32.

RGB for pure red.

a)

(255,0,0)

b)

(0,255,0)

c)

(0,0,255)

d)

(255,255,0)

33.

33. Purpose of loops is:

a)

To repeat a set of instructions multiple times

b)

To store data permanently

c)

To display output only once

d)

To terminate the program immediately

34.

34. Why packets arrive out of order.

a)

Due to different network paths and varying transmission delays.

b)

Because packets are always sent in reverse order.

c)

Because the network guarantees in-order delivery.

d)

Because packets are merged before transmission.

35.

35. Why does prompt() return a string?

a)

Because prompt() always returns user input as a string.

b)

Because prompt() is designed to return a number.

c)

Because prompt() returns a boolean value.

d)

Because prompt() returns an object.

36.

Convert hex FF to decimal.

a)

255

b)

256

c)

128

d)

15

37.

Convert binary 11000000 to decimal.

a)

192

b)

128

c)

200

d)

176

38.

38. Example of Boolean expression is:

a)

True

b)

A * B = C

c)

A > B

d)

A = 5

39.

39. Why use conditionals.

a)

To make decisions in a program based on certain conditions.

b)

To repeat a block of code multiple times.

c)

To store data in variables.

d)

To display output to the user.

40.

40. What is a digital footprint.

a)

A record of your online activities and interactions.

b)

A type of computer virus.

c)

A physical mark left on a device.

d)

A password used to access digital accounts.

41.

Write JavaScript code that asks user for name and stores it.

a)

let name = prompt('Enter your name:');

b)

let name = alert('Enter your name:');

c)

let name = confirm('Enter your name:');

d)

let name = input('Enter your name:');

42.

Which JavaScript code correctly generates a random number between 1 and 6?

a)

Math.floor(Math.random() * 6) + 1

b)

Math.random() * 6 + 1

c)

Math.ceil(Math.random() * 6)

d)

Math.floor(Math.random() * 5) + 1

43.

Conditional printing 'You win!' if score > 100.

a)

if score > 100: print('You win!')

b)

if score < 100: print('You win!')

c)

if score == 100: print('You win!')

d)

if score >= 100: print('You win!')

44.

44. To create turnRight(), which of the following uses three turnLeft()?

a)

turnRight() { turnLeft(); turnLeft(); turnLeft(); }

b)

turnRight() { turnLeft(); turnLeft(); }

c)

turnRight() { turnLeft(); }

d)

turnRight() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); }

45.

Karel moves until wall. What does Karel do when it reaches the wall?

a)

Karel stops moving.

b)

Karel jumps over the wall.

c)

Karel turns around.

d)

Karel digs under the wall.

46.

JS code adding a and b.

a)

a + b

b)

a - b

c)

a * b

d)

a / b

47.

JS checking age ≥ 18.

a)

if (age >= 18)

b)

if (age > 18)

c)

if (age == 18)

d)

if (age <= 18)

48.

48. Karel placing 5 balls on same square.

a)

Karel puts 5 balls on one square.

b)

Karel puts 5 balls on five different squares.

c)

Karel puts 1 ball on each of 5 squares.

d)

Karel puts 3 balls on one square.

49.

Packets travel from Client A to Client B by following which path as shown in the diagram?

a)

Through a router connecting both clients

b)

Directly from Client A to Client B without any intermediary

c)

Via a switch that only connects to Client A

d)

Through a firewall that blocks all traffic

50.

Observe the diagram shown. How many blue squares are present in the diagram?

a)

4

b)

5

c)

6

d)

8