Font size
WorksheetsComputer Science Exam CTEA January 2023 January
Total questions: 50
Worksheet time: 30mins
The time between sending a message and the arrival of the message at its destination is called _________.
latency
hyperdrive
normalcy
bandwidth
The first computer networks came into use in the ______________, and were generally used within a company or research lab.
1950 and 60's
1970's and 80's
early 2000's
1920's and 30's
Before computer networks, these all were ways that programs and data were shared within an organization except for _________?
punch cards
magnetic tapes
disks
latency maps
What does the acronym LAN stand for?
Large Angle Newsreel
Local Area Network
Large Area Network
Large Area Netscape
_______________ is a method of networking computers together using a mulit-stranded copper wire. This method of networking is still common today.
FishNet
Ethernet
Botnet
NylonNet
The rate at which a carrier can transmit data is called ____________ .
bandwidth
latency
processor speed
MAC
When two computers attempt to send data on the same network at the same time it is called a ______________.
collision
detection
override
delineation
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?
MAC addresses
network latency
broken ethernet wires
data collisions
A _________ helps reduce data collisions by breaking the network into smaller Collision Domains and only passing traffic between them when needed.
switch
navigator
collider
domainigator
To make networking more efficient, large messages are broken into smaller pieces called ______________.
URL's
bits
megabytes
packetts
____________ is a protocol (standardized solution) for the problem of packets arriving out of order.
UHV/VHF
TCP/IP
OSU/UM
WWF/NASCAR
A JavaScript ________ is a block of JavaScript code, that can be executed when "called" for.
Variable
Function
Syntax
Object
What will print to the console?
Time to buy!
Time to wait for a sale.
sale
Nothing, there is a syntax error on the fourth line
Which correctly matches the logical operator with its syntax?
and - !
or - | |
not - &&
and - &&
or - | |
not - !
and - | |
or - !
not - &&
and - &&
or - !
not - | |
For this conditional to be true....
day must be equal to Saturday and Sunday
day must be not equal to Saturday or Sunday
day must be equal to Saturday or Sunday
Which command is written correctly?
Move
move
Move();
move();
What is the name of this function?
function
spin()
3 turnLeft();
spin();
What can be used to teach Karel to turn right?
Functions
Variables
Dog Treats
Karel can already turn right
What is the syntax to declare a function called doSomething?
function doSomething() { }
doSomething() function { }
function () doSomething { }
doSomething { } function ()
Why do we use if/else statements in JavaScript?
To repeat something for a fixed number of times
To either do something if a condition is true or do something else
To break out of some block of code
To repeat something while a condition is true
WHat part of the computer performs all the operations a computer does?
Sound card
Video card
CPU (central processing unit)
RAM (random access memory)
What is the number identifying computers in the Internet called?
Home address
ID number
IP address
email address
Motherboard
the brain of the computer, processes all data
connects all components
stores all data permanently
cools the CPU
RAM
permanently stores data like software and user files on a computer
is the brain of the computer, executing all programs
temporarily stores data allowing which increases the computer's processing power
temporarily stores data if you hard drive runs out of space
graphics card
processes images and sounds
processes images for display on the monitor
makes video games run faster
stores all images and videos on your computer
hardware
written programs that operate a computer system and that are stored on the hard drive.
screws, nuts and bolts that hold the components
all of the files that you save on a computer
the physical components making up a computer system
Which code will put Karel in the position shown in second world?
putBall(); putBall(); move(); move();
move(); putBall(); move(); putBall();
putBall(); move(); putBall(); move();
move(); putBall(); putBall(); move();
Which code below will put Karel in the position shown in picture?
move(); Move(); turnLeft(); move();
move; move(); turnLeft; move();
move(); move(); TurnLeft(); Move();
move(); move(); turnLeft(); move();
Look at the image. What is the line of code for the rectangle?
rect (400, 400);
ellipse (200, 400);
rect (0, 0);
ellipse (0, 0);
What do we call a piece of code that STORES information to be used later on in the program?
variable
random number
ellipse
storage
What is missing from the line of code?
rect (100, 234, 24, 65)
a period
the semi-colon ;
nothing, it looks great!
the rest of the word rectangle
What is the result of this code?
var a = 15 % 3;
a = 0
a = 5
a = 12
a = 45
Type in the missing word in the following command:
Command: console (a) ("Hello World!!!");
Result on Console: Hello World!!!
What are the coordinates of the red square?
0,0
200,200
100,100
0,50
Which command is written incorrectly?
putBall();
putball();
turnLeft();
takeBall();
What Javascript code matches this statement:
The score is not 0
if (score != 0)
if (score =! 0)
if (score not 0)
if (score !! 0)
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)
When using javascript coding, what is the symbol used to do multiplication?
(a)
When using JavaScript coding, what is the symbol used to calculate the remainder of a number?
(a)
When using javascript coding, what is the symbol used to do division?
(a)
When using JavaScript coding, what is the symbol used to place comments in your code?
(a)
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");
The javascript code
answer= 3**2 does what?
raises 3 to the 2nd power.
multiplies 3 times 2
adds 3 and 2
gives the remainder of 3 divided by 2
