Define Big-O Notation
A measure of the time and memory needed to complete an algorithm based on the problem size known as (n).
T or F:
A cross-site scripting vulnerability enables attackers to inject client-side scripts into web pages viewed by other users.
True
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
What type of hackers are good hackers (hackers with good intentions) but lack permission?
Grey hackers
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.
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
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
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)
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.
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)
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
Give an example of an iteration structure.
for loop, while loop, for-each loop
Define Data Sanitization
The process of permanently and irreversibly removing or destroying the data stored on a memory device for security purposes.
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.
Which of these statements is used to decrement a variable "countdown"?
countdown = countdown – 1
countdown = countdown + 1
countdown = countdown * 1
countdown = countdown – countdown
1. countdown = countdown - 1
Convert 25 into binary.
00011001
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
Freebie question:
What is 2719 % 4?
(Hint: it's a single digit number)
3
Which of these statements produces the value 5 (five)?
(3 - 2 * (4 - 7) + (3 - (3 * 1/3) + 1)
(3 - (2 * 4 - 7) + (3 - (3 * (1/3 + 1))
3 - 2 * 4 - 7 + 3 - 3 * 1/3 + 1
(3 - (2 * 4 - 7) + (3 - (3 * 1/3) + 1)
4. (3 - (2 * 4 - 7) + (3 - (3 * 1/3) + 1)
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