wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Exam CTEA January 2023 January

Total questions: 50

Worksheet time: 30mins

Name
Class
Date
1.

The time between sending a message and the arrival of the message at its destination is called _________.

a)

latency

b)

hyperdrive

c)

normalcy

d)

bandwidth

2.

The first computer networks came into use in the ______________, and were generally used within a company or research lab.

a)

1950 and 60's

b)

1970's and 80's

c)

early 2000's

d)

1920's and 30's

3.

Before computer networks, these all were ways that programs and data were shared within an organization except for _________?

a)

punch cards

b)

magnetic tapes

c)

disks

d)

latency maps

4.

What does the acronym LAN stand for?

a)

Large Angle Newsreel

b)

Local Area Network

c)

Large Area Network 

d)

Large Area Netscape

5.

_______________ is a method of networking computers together using a mulit-stranded copper wire. This method of networking is still common today.

a)

FishNet

b)

Ethernet

c)

Botnet

d)

NylonNet

6.

The rate at which a carrier can transmit data is called ____________ .

a)

bandwidth

b)

latency

c)

processor speed

d)

MAC

7.

When two computers attempt to send data on the same network at the same time it is called a ______________.

a)

collision

b)

detection

c)

override

d)

delineation

8.

Exponential Back-off is a protocol (or standardized solution) that uses increasing wait-time before resending data. What networking problem is it designed to solve? 

a)

MAC addresses

b)

network latency

c)

broken ethernet wires

d)

data collisions

9.

A _________ helps reduce data collisions by breaking the network into smaller Collision Domains and only passing traffic between them when needed.

a)

switch

b)

navigator

c)

collider

d)

domainigator

10.

To make networking more efficient, large messages are broken into smaller pieces called ______________.

a)

URL's

b)

bits

c)

megabytes

d)

packetts

11.

____________ is a protocol (standardized solution) for the problem of packets arriving out of order.

a)

UHV/VHF

b)

TCP/IP

c)

OSU/UM

d)

WWF/NASCAR

12.

A JavaScript ________ is a block of JavaScript code, that can be executed when "called" for.

a)

Variable

b)

Function

c)

Syntax

d)

Object

13.

What will print to the console?

a)

Time to buy!

b)

Time to wait for a sale.

c)

sale

d)

Nothing, there is a syntax error on the fourth line

14.

Which correctly matches the logical operator with its syntax?

a)

and - !

or - | |

not - &&

b)

and - &&

or - | |

not - !

c)

and - | |

or - !

not - &&

d)

and - &&

or - !

not - | |

15.

For this conditional to be true....

a)

day must be equal to Saturday and Sunday

b)

day must be not equal to Saturday or Sunday

c)

day must be equal to Saturday or Sunday

16.

Which command is written correctly?

a)

Move

b)

move

c)

Move();

d)

move();

17.

What is the name of this function?

a)

function

b)

spin()

c)

3 turnLeft();

d)

spin();

18.

What can be used to teach Karel to turn right?

a)

Functions

b)

Variables

c)

Dog Treats

d)

Karel can already turn right

19.
The conditional statement, in Javascript, begins with the word _______.
a)
Then
b)
Else
c)
If
d)
OK
20.
Which of the following best describes what a function is used for?
a)
they create new variable commands
b)
they are used for difficult math formulas
c)
they are reusable pieces of code that can be called any time in the program
d)
they allow for the use of mathematical operators
21.

What is the syntax to declare a function called doSomething?

a)

function doSomething() { }

b)

doSomething() function { }

c)

function () doSomething { }

d)

doSomething { } function ()

22.

Why do we use if/else statements in JavaScript?

a)

To repeat something for a fixed number of times

b)

To either do something if a condition is true or do something else

c)

To break out of some block of code

d)

To repeat something while a condition is true

23.

WHat part of the computer performs all the operations a computer does?

a)

Sound card

b)

Video card

c)

CPU (central processing unit)

d)

RAM (random access memory)

24.

What is the number identifying computers in the Internet called?

a)

Home address

b)

ID number

c)

IP address

d)

email address

25.

Motherboard

a)

the brain of the computer, processes all data

b)

connects all components

c)

stores all data permanently

d)

cools the CPU

26.

RAM

a)

permanently stores data like software and user files on a computer

b)

is the brain of the computer, executing all programs

c)

temporarily stores data allowing which increases the computer's processing power

d)

temporarily stores data if you hard drive runs out of space

27.

graphics card

a)

processes images and sounds

b)

processes images for display on the monitor

c)

makes video games run faster

d)

stores all images and videos on your computer

28.

hardware

a)

written programs that operate a computer system and that are stored on the hard drive.

b)

screws, nuts and bolts that hold the components

c)

all of the files that you save on a computer

d)

the physical components making up a computer system

29.

Which code will put Karel in the position shown in second world?

a)

putBall(); putBall(); move(); move();

b)

move(); putBall(); move(); putBall();

c)

putBall(); move(); putBall(); move();

d)

move(); putBall(); putBall(); move();

30.

Which code below will put Karel in the position shown in picture?

a)

move(); Move(); turnLeft(); move();

b)

move; move(); turnLeft; move();

c)

move(); move(); TurnLeft(); Move();

d)

move(); move(); turnLeft(); move();

31.

Look at the image. What is the line of code for the rectangle?

a)

rect (400, 400);

b)

ellipse (200, 400);

c)

rect (0, 0);

d)

ellipse (0, 0);

32.

What do we call a piece of code that STORES information to be used later on in the program?

a)

variable

b)

random number

c)

ellipse

d)

storage

33.

What is missing from the line of code?


rect (100, 234, 24, 65)

a)

a period

b)

the semi-colon ;

c)

nothing, it looks great!

d)

the rest of the word rectangle

34.

What is the result of this code?


var a = 15 % 3;

a)

a = 0

b)

a = 5

c)

a = 12

d)

a = 45

35.
What command draws a perfect circle?
a)
ellipse (80, 60, 100, 105);
b)
ellipse(80, 60, 100, 100);
c)
circle (80, 60, 80, 60):
d)
ellipse (80, 60, 105, 100);
36.
What command colors a shape?
a)
color (43, 255, 0);
b)
bucket (43, 255, 0);
c)
fill (43, 255, 0);
d)
bucket (43, 255, 0);
37.

Type in the missing word in the following command:


Command: console (a)   ("Hello World!!!");


Result on Console: Hello World!!!

38.
Parameter
a)
An extra piece of information that you pass to the function to customize it for a specific need.
b)
A set of steps for a computer program to accomplish a task.
c)
A description of the behavior of a command, function, library, API, etc.
d)
A piece of code that combines commands and that you can easily call over and over again.
39.
A symbol or word that stores specific values within a program.
a)
Parameter
b)
Documentation
c)
Abstraction
d)
Variable
40.
Algorithm
a)
A set of steps for a computer program to accomplish a task.
b)
Pulling out specific differences to make one solution work for multiple problems.
c)
A computer programming language that operates in any browser.
d)
A musical pattern that repeats in any programming language
41.

What are the coordinates of the red square?

a)

0,0

b)

200,200

c)

100,100

d)

0,50

42.

Which command is written incorrectly?

a)

putBall();

b)

putball();

c)

turnLeft();

d)

takeBall();

43.

What Javascript code matches this statement:

The score is not 0

a)

if (score != 0)

b)

if (score =! 0)

c)

if (score not 0)

d)

if (score !! 0)

44.

Question: What should be placed in the blank space below to make the program work. It is the same answer for both.

____ Rate_of_Pay= 55.00

____ Gross_Pay= Rate_of_Pay*40



(a)  

45.

When using javascript coding, what is the symbol used to do multiplication?

(a)  

46.

When using JavaScript coding, what is the symbol used to calculate the remainder of a number?

(a)  

47.

When using javascript coding, what is the symbol used to do division?

(a)  

48.

When using JavaScript coding, what is the symbol used to place comments in your code?

(a)  

49.

When using javascript coding, what is the line of code needed to print out a sentence in the blank space below.

(a)   ("This is my program that I created");

50.

The javascript code

answer= 3**2 does what?

a)

raises 3 to the 2nd power.

b)

multiplies 3 times 2

c)

adds 3 and 2

d)

gives the remainder of 3 divided by 2