Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Encryption and 2D Arrays

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which has 2 keys?

a)

symmetric key

b)

asymmetric key

c)

public key

d)

secret key

2.

Which has 1 key?

a)

symmetric key

b)

asymmetric key

c)

public key

d)

secret key

3.

Caesar cipher is a form of:

a)

symmetric key

b)

asymmetric key

c)

public key

d)

secret key

4.

Using public key encryption, the key is passed over the internet.

a)

True

b)

False

c)

Sometimes

5.

Encryption is:

a)

turning plain text into cipher text

b)

turning cipher text into plain text

6.

Decryption is:

a)

turning plain text into cipher text

b)

turning cipher text into plain text

7.

plain text

a)

is easily read

b)

needs to be decrypted before it's read

8.

cipher text

a)

is easily read

b)

needs to be decrypted before it's read

9.

decodes one character at a time

a)

stream cipher

b)

block cipher

10.

decodes a set of characters at a time

a)

stream cipher

b)

block cipher

11.

Which is a single array?

a)

int[] doubleArray = new int[5];

b)

int[][] singleArray = new int[5][5];

12.

Which is a double array?

a)

int[] doubleArray = new int[5];

b)

int[][] singleArray = new int[5][5];

13.

To cross a double array:

a)

use a for loop

b)

use nested for loops

c)

call on space's address using the name of the array, the row number, and the column number

14.

To look a single cell in a double array:

a)

use a for loop

b)

use nested for loops

c)

call on space's address using the name of the array, the row number, and the column number

15.

int[][] thisArray = new int[4][9];

a)

4 columns. 9 rows

b)

4 rows, 9 columns

16.

int[][] thisArray = new int[4][9] has a space named thisArray[4][9]

a)

true

b)

false

c)

sometimes

17.

loops for a set number of iterations

a)

for loop

b)

while loop

c)

switch statement

d)

if/else statement

18.

creates a blank line between items printed out

a)

System.out.println();

b)

break;

19.

Nest for loops cross a 2D array:

a)

by looking at the first row, then all its columns, then moving on to the next row

b)

by looking at the first column, then all its rows, then moving on to the next column

c)

rondomly

20.

Does Dylan have an appendix?

a)

yes

b)

no