Cs101-1 midterms Flashcards
A function can have more than one output for a single input.
T
F
F
Every function is a relation, but not every relation is a function.
T
True
F
False
T
What is the output of the function f(x) = x + 3 when x is 2?
Show answer choices
5
3
4
2
5
The domain of a function is the set of all possible inputs.
T
True
F
False
T
If a function has an output of -2 for an input of 3, it can also have an output of 3 for the same input.
T
True
F
False
F
If f(x) = x^2, what is f(4)?
Show answer choices
16
12
4
8
16
In a function, each input must have exactly one __________
output.
The range of a function includes all possible outputs.
T
True
F
False
T
What is domain
All possible input in a function
What is range
All possible outputs from a function
What is input
The Value you put into the function
What is output
The result you get from the function
A function can be represented by a table, a graph, or an equation.
T
True
F
False
T
Which of the following represents a function?
Show answer choices
f(x) = 2x
y^2 = x
x = 5
x + y = 5
f(x) = 2x
In modular arithmetic, what is 10 mod 4?
Show answer choices
0
2
1
2
Public-key Cryptography
Uses pairs of keys, one public and one private
Hash Function
Transforms input data into a fixed size string of characters.
Encryption
The process of converting plaintext into ciphertext.
Decryption
The process of converting ciphertext back into plaintext.
The first prime number is ____.
2
Prime Number
A number greater than 1 that has no positive divisors other than 1 and itself.
Modular Arithmetic
Arithmetic that deals with remainders after division by a specific number.
Caesar Cipher
A method of encryption that shifts letters by a fixed number.
Substitution Cipher
A method of encryption where each letter is replaced by a different letter.