Vocabulary (Hard)
T or F
MC
Random TSA
100

Define Big-O Notation

A measure of the time and memory needed to complete an algorithm based on the problem size known as (n).

100

T or F:

A cross-site scripting vulnerability enables attackers to inject client-side scripts into web pages viewed by other users.

True

100

Given x = 10 when the loop starts, which of these assignment statements inside of a "while" loop (while ( x < 0)) will cause the loop to end?

1. x = x + 1

2. x = 0

3. x = 1e100

4. x = -1


4. x= -1

100

What type of hackers are good hackers (hackers with good intentions) but lack permission?

Grey hackers

200

Define BIOS (Basic Input/Output System)

Pre-installed Windows programmed used to startup the computer; it checks the hardware connections and devices before launching the OS.

200

T or F: A spoofing attack is the fraudulent practice of sending emails purporting to be from reputable companies in order to induce individuals to reveal personal information, such as passwords and credit card numbers

True

200

If A is true and B is true, which of these logical statements is false?

1. A OR B

2. A AND B

3. not(A) XOR B

4. A XOR B


3. not(A) XOR B

200

Which data type will you most likely use for performing division (such as y = a / b)?

float / floating point / double

(use these to have more precise and accurate results)

300

Define Hashmap

An imported Java Utility that is used for storing key and value pairs: HashMap<key,value>; this class permits null values and the null key.

300

T or F: If A is true and B is false, the logical statement "A and B" is true.

False. (It can be A or B, A and [not]B, and [not]B)

300

Which of these programming constructs repeats an action while a condition is true?

1. a "while" loop

2.  a "for" loop

3. an "if" conditional

4. a "print" statement

1. a "while" loop

300

Give an example of an iteration structure. 

for loop, while loop, for-each loop

400

Define Data Sanitization

The process of permanently and irreversibly removing or destroying the data stored on a memory device for security purposes.

400

What does the modulo sign do? 

(Sorry guys, was just allowed to do 3 T/F ?s.)

It returns the remainder once two numbers are divided.

400

Which of these statements is used to decrement a variable "countdown"?

  1. countdown = countdown – 1

  2. countdown = countdown + 1

  3. countdown = countdown * 1

  4. countdown = countdown – countdown

1. countdown = countdown - 1

400

Convert 25 into binary.

00011001

500

Define McCarthy Evaluation

A type of short-circuit evaluation in which semantics of some Boolean operators where the second argument is executed or evaluated if the first argument is insufficient in determining the value of the expression

500

Freebie question:

What is 2719 % 4? 

(Hint: it's a single digit number)

3

500

Which of these statements produces the value 5 (five)?

  1.  (3 - 2 * (4 - 7) + (3 - (3 * 1/3) + 1)

  2. (3 - (2 * 4 - 7) + (3 - (3 * (1/3 + 1))

  3. 3 - 2 * 4 - 7 + 3 - 3 * 1/3 + 1

  4. (3 - (2 * 4 - 7) + (3 - (3 * 1/3) + 1)

4. (3 - (2 * 4 - 7) + (3 - (3 * 1/3) + 1)

500

What are the two laws of DeMorgan?

1) When the NOT operator is applied to the AND of two variables, it is equal to the NOT applied to each of the variables with an OR in between; 

2) When the NOT operator is applied to the OR of two variables, it is equal to the NOT applied to each of the two variables with an AND in between

M
e
n
u