Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science

Total questions: 58

Worksheet time: 5hrs 9mins

Name
Class
Date
1.
_______ is how we write code
a)
Syntax
b)
Loops
c)
Variables
d)
Functions
2.
In the code example: hero.moveRight(), what is the object?
a)
move
b)
hero
c)
()
d)
Right
3.
In the code example: hero.moveRight(), how is it read aloud? 
a)
hero move right
b)
move right hero
c)
hero dot move right
d)
right move dot hero
4.
________ are the building blocks, they are things or characters that perform actions
a)
Variable
b)
Functions
c)
Syntax
d)
Objects
5.
__________ are actions an object can do
a)
Value
b)
Syntax
c)
Objects
d)
Functions
6.
Function names are always followed by parentheses 
a)
True
b)
False
7.
Order does not matter
a)
True
b)
False
8.
A computer cannot understand the directions of code even if there is a mistake in the syntax? 
a)
True
b)
False
9.
_____ is a way of repeating code
a)
While
b)
Expression
c)
Loop
d)
Lopp 
10.
What is a key word in Loop?
a)
True
b)
While
c)
Expression
d)
Action
11.
___________ can be evaluated as True or False
a)
Expression
b)
Infinite Loop
c)
Object
12.
Infinite Loop is a loop that repeats forever
a)
True
b)
False
13.
What do you type for an infinite loop?
a)
while True:
b)
while True ()
c)
While true:
d)
While True ()
14.
How much indention is required for the action to be part of the loop
a)
3 spaces
b)
4 spaces
c)
5 spaces
d)
2 spaces
15.
_________ holds your data for later
a)
Object
b)
Expression
c)
Variable
d)
Value
16.
In the code example: enemy = "Kratt", the varible is 
a)
"Kratt"
b)
Kratt
c)
= 
d)
enemy
17.
enemy = "Kratt" 
hero.attack("Kratt") is the same as 
a)
hero.attack(friend)
b)
Hero.attack(enemy)
c)
hero.attack(enemy2)
d)
hero.attack(enemy)
18.
______ is a type of programming data that represents text
a)
Basic
b)
Syntax
c)
Argument
d)
String
19.
What enables different parts of the CPU to work on different tasks at the same time
a)
Hyper Threading
b)
Multiplier
c)
Cores
d)
Bus Speed
20.
The main circuit board in a computer is called the ________.
a)
RAM
b)
dongle
c)
motherboard
d)
 power supply unit
21.

Computer screens are divided up into a grid of small dots called .....................?

a)

Bits

b)

Pixels

c)

Packets

d)

byte

22.

A list of steps to complete a task

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

23.

An algorithm that has been coded into something that can be run by a machine

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

24.

the brains of the computer where most calculations take place.

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

25.

Part of a program that does not work correctly.

a)

Software

b)

Bug

c)

Debug

d)

Computer

26.

Finding and fixing problems in an algorithm or program.

a)

Software

b)

Bug

c)

Debug

d)

Computer

27.
_______ is how we write code
a)
Syntax
b)
Loops
c)
Variables
d)
Functions
28.

Who was the first know user of the Caesar Cipher?

a)

Caesar Romanus

b)

Julius Caesar

c)

Alan Turing

d)

There isn't one

29.

Plaintext

a)

original message

b)

coded message

c)

algorithm for transforming plaintext to ciphertext

d)

info used in cipher known only to sender/receiver

30.

cryptology

a)

coded message

b)

original message

c)

recovering ciphertext from plaintext

d)

field of both cryptography and cryptanalysis

31.

Encrypt the word alphabet using a Caesar cipher with a shift of 3

a)

DVSDULQV

b)

DOOFOHDU

c)

DOSKDEHW

d)

DORQHBHV

32.

The following word was encrypted using a Caesar cipher with a shift of 2: ecguct. What word is it?

a)

julius

b)

caesar

c)

romans

d)

cipher

33.

The _______ is a number or a set of numbers on which the cipher operates.

a)

secret

b)

cipher

c)

key

d)

none of the mentioned

34.

A method for determining a solution to a problem by sequentially testing all possible solutions.

a)

brute force

b)

relative frequency

c)

cipher

d)

paired keys

35.

What is the name of the method in which letters are rearranged to create the ciphertext?

a)

one-time pad

b)

enigma

c)

substitution

d)

transposition

36.

Which three protocols use asymmetric key algorithms? (Choose three.)

a)

Pretty Good Privacy (PGP)

b)

Secure Sockets Layer (SSL)

c)

Advanced Encryption Standard (AES)

d)

Secure Shell (SSH)

e)

Secure File Transfer Protocol (SFTP)

37.

What is the term used to describe the science of making and breaking secret codes?

a)

cryptology

b)

impersonation

c)

spoofing

d)

factorization

e)

jamming

38.

Which type of cipher is able to encrypt a fixed-length block of plaintext into a 128-bit block of ciphertext at any one time?

a)

hash

b)

symmetric

c)

block

d)

stream

e)

transform

39.

What encryption algorithm uses the same pre-shared key to encrypt and decrypt data?

a)

hash

b)

one-time pad

c)

symmetric

d)

asymmetric

40.

What type of cipher encrypts plaintext one byte or one bit at a time?

a)

block

b)

enigma

c)

hash

d)

elliptical

e)

stream

41.

Which asymmetric algorithm provides an electronic key exchange method to share the secret key?

a)

DES

b)

WEP

c)

hashing

d)

Diffie-Hellman

e)

RSA

42.

What encryption algorithm uses one key to encrypt data and a different key to decrypt data?

a)

symmetric

b)

transposition

c)

one-time pad

d)

asymmetric

43.

What is an important disadvantage of using a public key algorithm compared to a symmetric algorithm?

a)

Asymmetric algorithm provides better access control.

b)

Asymmetric algorithm is a faster process.

c)

Asymmetric algorithm provides nonrepudiation of delivery.

d)

Asymmetric algorithm is more difficult to implement.

44.

The two methods of encrypting data are?

a)

Substitution and transposition

b)

Block and stream

c)

Symmetric and asymmetric

d)

DES and AES

45.

Data that is in an unencrypted form is referred to as which of the following?

a)

plain text

b)

crypt text

c)

cleartext

d)

simpletext

46.

What alternative term can be used to describe asymmetric cryptographic algorithms?

a)

public key cryptography

b)

user key cryptography

c)

private key cryptography

d)

cipher-text cryptography

47.

What type of cryptography uses two keys on both ends i.e a private and a public key?

a)

shared

b)

asymmetric

c)

symmetric

d)

open

48.

Non-repudiation

a)

Ensure message remains secret during transmission between parties

b)

Ensure message is not altered while in transit between communicating partners

c)

Verifies sender is who she says she is

d)

Proves that nobody but on sender could have sent a particular message

49.

"letters" has been encrypted with Caesar cipher to "cvkkvij". The key used was:

a)

16

b)

14

c)

18

d)

17

50.

"PLAINTEXT" has been encrypted with Caesar cipher to "AWLTYEPIE". The key used was:

a)

16

b)

12

c)

11

d)

19

51.

"CIPHERTEXT" has been encrypted with Caesar cipher to "EKRJGTVGZV". The key used was:

a)

7

b)

6

c)

3

d)

2

52.

"CAESAR CIPHER" has been encrypted with Caesar cipher to "SQUIQH SYFXUH". The key used was:

a)

16

b)

14

c)

13

d)

12

53.

It is also called as private key cryptography.

a)

Symmetric Cryptosystem

b)

Asymmetric Cryptosystem

c)

Decryption Key

54.

DES stands for?

(a)  

55.

What does 3DES stands for?

(a)  

56.

Can you break this code?

a)

Orange = 10

b)

Orange = 5

c)

Orange = 6

d)

Orange = 2

57.

This person, known as the father of Computer Science, invented the CAPTCHA.

a)

Alan Turing

b)

Vigenere

c)

Bill Gates

d)

Cliff Stoll

58.
Using the statements:
If it is Friday, then I will get paid.
It is Friday.
Write the conclusion.
a)
It is not Friday
b)
It is Friday
c)
I will not get paid
d)
I will get paid