Frage 1
Frage
Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem?
Antworten
-
When the problem can be solved in a reasonable time and an approximate solution is acceptable
-
When the problem can be solved in a reasonable time and an exact solution is needed.
-
When the problem cannot be solved in a reasonable time and an approximate solution is acceptable
-
When the problem cannot be solved in a reasonable time and an exact solution is needed.
Frage 2
Frage
The colors of the pixels in a digital image are often represented by red, green, and blue values between 0 and 255 ( a RGB triplet). A photographer is manipulating a digital image to lighten it because all of the RGB values are less than 100, making it very dark. He does this by adding 20 to the R, G, and B values of each pixel, the overwriting the original image. What type of transformation is the photographer using on the digital image?
Frage 3
Frage
Which of the following is a true statement about data compression?
Antworten
-
Data compression is only useful for files being transmitted over the internet.
-
Regardless of the compression technique used, once a data file is compressed, it cannot be restored to its original state.
-
Sending a compressed version of a file ensures that the contents of the file cannot be intercepted by an unauthorized user.
-
There are trade-offs involved in choosing a compression technique for storing and transmitting data.
Frage 4
Frage
A video streaming website uses 32-bit integers to count the number of times each video has been played. In anticipation of some videos being played more times than can be represented with 32 bits, the website is planning to change to 64-bit integers for the counter. Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?
Antworten
-
2 times as many values can be represented.
-
32 times as many values can be represented.
-
2^32 times as many values can be represented.
-
32^2 times as many values can be represented.
Frage 5
Frage
Select the answer that lists the units of bytes in ascending order(from smallest to largest).
Antworten
-
gigabyte, megabyte, terabyte
-
megabyte, terabyte, kilobyte
-
gigabyte, terabyte, megabyte
-
kilobyte, gigabyte, terabyte
Frage 6
Frage
An artist makes an RGB raster image in which each pixel color is encoded with 12-bits ---4 bits for red, green, and blue.
Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation?
Frage 7
Frage
A compression scheme for long strings of bits called run-length encoding is described as follows:
Rather than record each 0 and 1 individually, instead record "runs" of bits by storing the number of consecutive 1s and 0s that appear.
Since it's binary, any runs of 0s must be followed by a run of 1s (even if the run is only 1-bit long) and vise versa. Thus, you can store a list of small numbers that represents the alternating runs of 0s and 1s. Here is an example:
Uncompressed bits: 000000000000000111111111101111111100000000001100000000000001111111
Runs of bits: 15 10 1 8 10 2 13 7
Run length encoding: [15, 10, 1, 8, 10, 2, 13, 7]
To decompress the data back into its original binary state, you simply reverse the process. This technique is an example of what type of compression?
Frage 8
Frage
A raw digital sound file samples a sound wave at some interval and measures the height of the wave at each point. Thus, raw sound is recorded as a list of numbers. In very broad terms the MP3 audio compression algorithm identifies frequencies and volume levels - low and high - that are outside the range of human hearing and removes the data representing these frequencies from the original. This technique results in a smaller audio file that sounds exactly the same to the human ear.
This technique is an example of what type of compression?
Frage 9
Frage
Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?
Frage 10
Frage
Which of the following is TRUE about while loops in JavaScript?
Antworten
-
While loops terminate after a fixed number of loops that is pre-determined.
-
While loops terminate after a fixed number of loops that is determined after the loop executes once.
-
While loops run as long as a given boolean condition is true.
-
While loops run as long as a given boolean condition is false.
-
While loops are known as "forever loops" and never stop until the program is halted by the user.
Frage 11
Frage
What will be displayed as a result of the code below executing?
var a = 5;
while ( a < 5 ) {
a = a-1;
}
console.log (a);
Frage 12
Frage
What will be displayed after the loop has executed?
var a = 5;
while ( a >= 3 ){
a = a - 1;
}
console.log(a);
Frage 13
Frage
What will be displayed as a result of the code below executing?
var a = 5;
while ( a < 5 ) {
a = a -1 ;
}
console.log(a);
Frage 14
Frage
The counter variable in the code below increments by 1 each time through the loop. What will the value of counter be after the following loop executes?
var counter = 0;
var n = 6;
while(n > 0){
n = n - 2;
counter = counter + 1;
}
console.log(counter)
Frage 15
Frage
The index of the following string of data begins with 1 instead of 0. It is psuedocode, JavaScript begins with a 1.
data = [5, 8, 3, 4, 2, 1]
a <- data[5]
b <- data[2]
DISPLAY(a + b)
Frage 16
Frage
The following array of data in in psuedocode, there for the string begins with an index of 1, rather than 0.
data [5, 8, 3, 4, 2, 1]
i <- 4
a <- data[i]
b <- data[i + 1]
DISPLAY(a + b)
Frage 17
Frage
Which of the following most accurately describes Moore's Law?
Antworten
-
Moore's Law describes a relationship of boolean logic statements involving AND and OR.
-
Moore's Law is the principle that one should assume that any traffic on the internet is insecure.
-
Moore's Law is the observation that computing power tends to double every two years.
-
Moore's Law explains why cracking modern cryptography is a "computationally hard" problem.
Frage 18
Frage
Fill in the blank of the following statement "___________ encryption is a method of encryption involving one key for both encryption and decryption."
Antworten
-
Symmetric
-
Asymmetric
-
Public Key
-
SSL
Frage 19
Frage
A coffee shop is considering accepting orders and payments through their phone app and have decided to use public key encryption to encrypt their customers' credit card information. Is this a secure form of payment?
Antworten
-
No, public key encryption allows the credit card information to be read by the public.
-
No, the internet protocols are open standards and thus everything sent over the internet is sent "in the clear."
-
Yes, public key encryption is built upon computationally hard problems that even powerful computers cannot easily solve.
-
Yes, public key encryption is secure because it transmits credit card information in binary.
Frage 20
Frage
Which of the following statements best describes the properties of public key encryption?
Antworten
-
Public key encryption is an encryption method which relies on separate keys for encrypting and decrypting information.
-
Public key encryption is a highly secure encryption scheme that in which a single shared key is used by both the sender and receiver of the message.
-
Public key encryption makes use of certain types of problems which are easier for humans to solve than computers.
-
Public key encryption makes use of mathematical problems which no algorithm can be used to solve.
Frage 21
Frage
Choose the answer that is NOT a feature of Public Key Cryptography:
Antworten
-
A key for decrypting is never made public
-
Using public key guarantees that only the intended recipient can decrypt the message.
-
A public key database ensures 3rd party accountability of security.
-
Allows secure communication without establishing a *shared* encryption key ahead of time.
Frage 22
Frage
A programmer is writing a system that is intended to be able to store large amounts of personal data. As the programmer develops the data system, which of the following is LEAST likely to impact the programmer's choices in designing the structure of the system?
Antworten
-
Maintaining privacy of the information stored in the data set.
-
Scalability of the system.
-
Structuring the metadata of the information for analysis
-
The frequency of a particular item occurring in a data set.
Frage 23
Frage
What is a Distributes Denial of Service (DDoS) attack?
Antworten
-
A coordinated effort by a group to simultaneously attempt to gain entry to foreign government's servers or systems.
-
An effort by network engineers to focus all systems on catching a user or computer that has illegally gained access.
-
An attempt to compromise a single target by flooding it with requests from multiple systems.
-
An attempt to harass or extort all customers of one or more Internet Service Providers(ISP's).
Frage 24
Frage
Which of the following scenarios is most characteristic of a phishing attack?
Antworten
-
You accidentally run a pierce of code that automatically spreads from one computer to another, exploiting a common vulnerability.
-
You get an email from the IT support desk that asks you to send a reply email with your username and password to verify your account.
-
You get an unwanted email trying to sell you a low quality product or service that seems "fishy."
-
You accidentally install a piece of software that monitors your activity to steal personal information like your passwords, date of birth, social security number, etc.
Frage 25
Frage
Which of the following are true statements about digital certificates in web browsers?
I. Digital certificates are used to verify the ownership of encrypted keys used in secured communication
II. Digital certificates are used to verify that the connection to a website is fault tolerant.
Antworten
-
I only.
-
II only.
-
I and II.
-
Neither I nor II.
Frage 26
Frage
Which of the following statements about strings in JavaScript is FALSE?
Antworten
-
Strings consist of a sequence of concatenated characters.
-
Strings are indicated by quotation marks.
-
Strings with numerical digits in them are invalid.
-
A string can be empty, meaning it contains nothing.
-
Strings sometimes include spaces.
Frage 27
Frage
A boolean expression is an expression that evaluates to which of the following?
Frage 28
Frage
Which of the following is NOT true about functions in programming?
Antworten
-
Functions are reusable programming abstractions.
-
Functions help reduce the complexity of writing and maintaining programs.
-
Functions cannot make calls to other functions within the same program.
-
Functions help break a problem into logical chunks.
-
Once defined, a function can be called as many times as wanted from different parts of a program.