Font size
WorksheetsCSP GACE Practice
Total questions: 85
Worksheet time: 14hrs 9mins
CPU
A component that executes program instructions
A technology used in flat-screen displays.
A memory device for temporary storage of data and programs.
A storage device for data and start-up instructions for a computer
Which of the following software license agreements allows users to use, modify , and sell or give away source code without the payment of royalties to the original developer?
Creative Commons Attribution- No Derivs license
End-User license
Open-source license
Proprietary license
A component that executes program instructions
LCD
CPU
RAM
USB
A technology used in flat-screen displays.
CPU
LCD
ROM
RAM
A memory device for temporary storage of data and programs.
CPU
RAM
ROM
USB
Allows perfect reconstruction of the original data from the compressed data.
Lossless Compression
Lossy Compression
Generally achieves a greater compression ratio.
Lossy Compression
Lossless Compression
Is more appropriate for streaming
Lossy Compression
Lossless Compression
Why might a developer embed a script in HTML code
Because scripts are needed to control presentation of content styles.
Because scripts are needed to protect the copyrights of a page.
Because scripts are needed to provide semantic markup of the content.
Because scripts are needed to support dynamic Web page behavior.
Which of the following best describes an appropriate use of a wireless communication technology?
Using Bluetooth on a boat to call rescue vessels
Using cellular communication in a sparsely populated area to connect to a mobile device to the Internet.
Using satellite communication to connect a wireless keyboard to a nearby computer
Using Wi-Fi to connect to a laptop and router within a house
In the digital world, businesses and individuals often need to decide between local and cloud based storage options. Each option has trade-offs. Cloud storage can be a risk to businesses and individuals because it often has less__________________________________& ___________________
Select all that apply.
direct control of storage infrastructure
flexibility to scale up or down
long term reliance on internal IT capabilities
dependence on Internet connections
direct control of storage infrastructure
A software application that sends encrypted data over the Internet uses a popular pseudorandom number generator. The application uses a seed value of 1024. Which of the following statements about the application must be true?
The length of the key used to encrypt the data is 1024 bits.
The sequence of random numbers generated will repeat every 1024 numbers.
The sequence of random numbers generated by all instances of the application will be the same because pseudorandom number generators are deterministic. .
Increasing the seed value of 1024 to 2048 would make the application's data significantly more resistant to hacking.
Which of the following is an example of crowdsourcing?
A language-learning platform offers free service to allow anyone to learn a language.
A language-learning platform builds a collection of documents in a native languages by soliciting aid from users of its Internet service.
A language-learning platform offers the use of a free language translator that automatically collects data which is used to improve the translator.
A language-learning platform offers the use of a free language translator that its registered users and then sells the user data for a profit in order to alter other free services.
A city is conducting a census. A variety of data are collected from each household in the city, including information about incomes, levels of education, ages, and races of the members of the household. However, to be anonymous, names and addresses are not collected. Which of the following best describes a valid visualization of the census data using a spreadsheet?
Using a spreadsheet chart, the total number of college graduates living on each street in the city could be reported.
Using the filter feature in the spreadsheet, all ages could be converted to birth years
Using a spreadsheet formula, the average income per household could be estimated.
Using the column sort feature in the spreadsheet, the oldest person could be identified.
Consider the following pseudocode procedure, where the index of the integer array x starts at 0.
// precondition: 0 ≤ y < z < the length of the integer array x
int sumItems ( int[] x, int y, int z )
int s ← 0
int i ←y
while ( i < z )
s ←s + x[i]
i ← i + 1
end while
return s
end sumItems
Consider the following code segment.
int[] a ← {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
int r ← sumItems ( a, 2, 5 ) + sumItems ( a, 4, 6 )
What is the value of r after the code segment is executed?
17
23
29
24
Consider the following method for a class Closet. Assume Closet objects contain Hanger objects and Shoe objects.
Method : void update ( int z, String w )
Explanation : Adds Hanger or Shoe objects to the Closet object.
If the value of w is "a", then z Hanger objects are added.
If the value of w is "r", then z Shoe objects are added. Otherwise, nothing is done.
Given that a Closet object myCloset has been declared and initialized, which of the following method calls is the correct way to add 10 Shoe objects to myCloset ?
myCloset.update ( 10, "a" )
myCloset.update ( "a", 10 )
myCloset ←update ( 10, "r" )
myCloset.update ( 10, "r" )
Consider a plaintext string that consists of uppercase letters. A certain encryption algorithm replaces each letter in the string with a cipher text letter to create a cipher text string as follows. The algorithm selects the letter that is to be replaced. Using the uppercase English alphabet, the algorithm moves a fixed number of positions from the selected letter, in increasing alphabetical order. If the algorithm reaches the end of the English alphabet, it wraps around and continues from the beginning of the alphabet.
Consider the following line of code, which implements the replacement of the selected plaintext uppercase letter ltr, where offset is the fixed number of positions.
ltr ← ( ( ( ltr - 'A' ) + offset ) % 26 ) + 'A'
If offset has the value 3 and the plaintext string has the value "SAY", what is the value of the cipher text string produced by the algorithm?
"PXV"
"RZX"
"TBZ"
"VDB"
Which one of the five pillars of cybersecurity is the following example a violation of: A hospital posts all patient medical records on its public Web site.
Authentication
Availability
Confidentiality
Integrity
Nonrepudiation
Which one of the five pillars of cybersecurity is the following example a violation of:A student uses a bug in a teacher’s grade-book software to change all student grades to As.
Authentication
Availability
Confidentiality
Integrity
Nonrepudiation
Which one of the five pillars of cybersecurity is the following example a violation of: Access to a company’s Web site is slowed because of a denial of service (DoS) attack.
Authentication
Availability
Confidentiality
Integrity
Nonrepudiation
An employee changes the modification metadata of a file to claim credit for the work of someone else. Which pillar of cybersecurity is this a violation of?
Authentication
Availability
Confidentiality
Integrity
Nonrepudiation
Which pillar of cybersecurity is this a violation of?
A private investigator uses a copy of a coworker’s fingerprint to gain access to a computer with a biometric fingerprint sensor.
Authentication
Availability
Confidentiality
Integrity
Which of the following is a factor that affects the size of a digital audio file?
Bit rate
Intensity
Tone
Volume
Consider a program written in an object-oriented programming language. Which of the following statements are true if class B is a child class of parent class A ?
Select all that apply.
Public methods in A are accessible in B and can be overloaded by other methods in B
Public methods in A are accessible in B and can be overridden by other methods in B.
Public methods in B are accessible in A and can be overloaded by other methods in A.
Public methods in B are accessible in A and can be overridden by other methods in A.
Procedure: double random ()
Explanation: Returns a double value from 0 up to (but not including) 1. The return value is a pseudorandom number with an approximately uniform distribution; that is, each double value in the range [0, 1) is approximately equally likely to be returned.
Procedure: int round ( double x )
Explanation: Rounds x to the nearest integer value. Values of x exactly between two integers (e.g., 4.5) are rounded up.
A student wants to write an expression that will generate a random integer between 5 and 10, inclusive. The generated integer should take on values 5, 6, 7, 8, 9, or 10 with approximately equal likelihood. The student writes the expression below.
round ( random () * 5 ) + 5
The expression fails to generate a random integer with the properties described above. Which of the following describes how the integers generated by the expression differ from the intended result?
The expression generates noninteger numbers (for example, the number 5.5).
The expression generates integer numbers outside the desired range (for example, the number 11).
The expression fails to generate all the integers in the desired range (for example, the number 7 is never generated)
The expression generates all integers in the desired range, but the values are not all approximately equally likely.
A traveler is keeping a digital photo journal. When the journal is ready, it will be posted on an Internet Web site that offers controlled access. Which of the following presents the greatest risk to the traveler’s privacy?
Posting the journal using HTTP
Posting the journal using HTTPS
Posting the journal using public Wi-Fi and HTTP
Posting the journal using public Wi-Fi and HTTPS
Which of the following is an advantage of cloud-based storage?
It gives users access to files from any Internet-connected device. .
It gives users the greatest control of files
It gives users the most secure way to store files.
It gives users the quickest way to access files
A homeowner wants to determine how changes in temperature affect the relative humidity in the homeowner’s basement. The homeowner installs a sensor in the basement that monitors the temperature and relative humidity and sends the data to the homeowner’s smartphone every hour. After collecting the data for 48 hours, the homeowner enters the data into a spreadsheet program. Which of the following visualizations is the most appropriate for the analysis of the data?
A histogram showing the number of times the sensor reported temperature values in various ranges and a histogram showing the number of times the sensor reported humidity values in various ranges
A pie chart showing the proportion of time the sensor reported temperature values in various ranges and a pie chart showing the proportion of time the sensor reported humidity values in various ranges
A scatterplot using temperature as the independent variable and the humidity as the dependent variable
A time series plot using time as the independent variable and temperature as the dependent variable and a time series plot using time as the independent variable and humidity as the dependent variable
Match the data descriptions with the four data types for the following: A dollar amount
String
Floating point
Boolean
Integer
Match the data descriptions with the four data types for the following: The state of a check box
String
Floating Point
Boolean
Integer
Match the data descriptions with the four data types for the following: A Year
String
Floating point
Boolean
Integer
Match the data descriptions with the four data types for the following: A name
String
Floating Point
Boolean
Integer
Consider an integer array A of length n, where the index of the array starts at 0, and all the elements in the array are positive. For which of the following code segments is the value of sum at the completion of the code segment less than the sum of all the values in array A ?
int sum ←A[0]
for ( int j ←1; j < n; j ← j + 1 )sum ←
←
sum + A[j]
end for
int sum ←
←
0
for ( int j ←
←
0; j < n; j ←
←
j + 1 )
sum ←
←
sum + A[j]
end for
int sum ←
←
0
int j ←
←
n
do
j ←
←
j - 1
sum ←
←
sum + A[j]
while ( j ≥
≥
1 )
int sum ←
←
0
int j ←
←
1
while ( j < n )
sum ←
←
sum + A[j]
j ←
←
j + 1
end while
Which of the following is the most effective way to prevent a successful cyberattack of a computer system?
Disconnect the computer system from the Internet
Disable the use of e-mail on the computer system
Make sure all security software is up-to-date
Use a strong password
The data in the following spreadsheet are the responses to one question of a survey that asked, “How many siblings do you have?” The survey was given to five small groups A–E. Three responses were obtained from each group.
In order to calculate the average number of siblings, some of the data in the cells must first be modified. Other data cannot be modified and therefore must be removed. Which of the following cells must be removed?
Select all that apply.
A2
A3
B2
C2
D1
Consider the following two code segments.
Which of the following best describes the type of programming languages used in code segments A and B?
Code A- Object-oriented Code B Object-oriented
Code A Object-oriented Code B Procedural
Code A Procedural Code B Object-oriented
Which of the following is an example of single sign-on (SSO) ?
Accessing a travel Web site after completing user authentication on a social media Web site
Entering a user ID and password to access a banking Web site
Entering an access token sent to a smartphone after entering a user ID and password on an e-mail Web site
Using a Web browser to store login and password information for various Web sites
A program has been stored in memory and is ready to be executed. The three steps in the fetch-decode-execute cycle are shown below.
The program counter is a counter that stores the memory location of the next instruction to be executed.
Executing the instruction Fetching and decoding the instruction Incrementing the program counter.
Assume the three-step cycle for the previous instruction has just completed. In which of the following orders must these three steps be performed to complete the next instruction?
Fetch and decode the instruction; execute the instruction; increment the program counter
Fetch and decode the instruction; increment the program counter; execute the instruction
Increment the program counter; execute the instruction; fetch and decode the instruction
Execute the instruction; increment the program counter; fetch and decode the instruction
As part of a class project, students are downloading population data from a Web site. Which of the following file formats would be best if the students plan to write programs to analyze the data?
CSV
JPEG
HTML
Which of the following data types is the best choice when declaring a variable that will be used to store a worker’s hourly wage and that will be used to calculate the worker’s total weekly earnings?
float
int
String
boolean
Each employee of a company is assigned a unique identification number. All of the identification numbers are stored using 32 bits. For example, one employee has the identification number 1001 0110 0000 1110 1010 0101 1111 0000. Which of the following statements about the identification numbers is true?
Writing the greatest possible identification number in hexadecimal requires 8 hexadecimal digits.
Writing the greatest possible identification number in hexadecimal requires 16 hexadecimal digits.
Writing the greatest possible identification number in decimal (base 10) requires 5 digits.
Writing the greatest possible identification number in decimal (base 10) requires 8 digits.
For the following question, select all the answer choices that apply.
To teach students in a Java class about List objects, a teacher gave the students an assignment to design and implement a program that randomly selects cards out of a deck to simulate a five-card-draw poker game. As the students were working on the assignment, the professor received feedback from some of the students. Which of the following pieces of student feedback are reasonable examples of obstacles to equal access to completing the assignment?
I’ve never played cards, so I had to learn how a deck of cards works.
I struggled with avoiding duplicates in the five-card draw when selecting the cards at random.
I couldn’t figure out how to initialize the deck of cards using a List object
I didn’t know the rules of five-card-draw poker, so I spent a lot of the time researching poker.
Which of the following statements best describes a difference between code written in a high-level programming language and code written in a low-level programming language?
Code written in a high-level language is usually less portable than code written in a low-level language.
Code written in a high-level language is generally more difficult to maintain than code written in a low-level language.
Code written in a high-level language is usually better optimized for particular hardware than code written in a low-level language.
Code written in a high-level language can generally make use of more abstractions than code written in a low-level language.
Which of the following is the best way to obtain end-user feedback as part of the process of developing a Web site?
Managerial code reviews
A/B testing
Scrum stand-up meetings
Unit testing
Place the four numbers in order from least to greatest. Drag each number to the correct box.
71 (base 10), 1000110 (base 2), 48 (base 16), and 73 (base 10)
1000110 (base 2), 71 (base 10), 48 (base 16), and 73 (base 10).
71 (base 10), 48 (base 16), 1000110 (base 2), and 73 (base 10).
The Caesar cipher, also known as a shift cipher, encrypts words by replacing each letter in the word with a letter that is a fixed number of positions forward in the alphabet. At the end of the alphabet, the cipher wraps around to the beginning of the alphabet. For instance, with a shift of 2, the word “zoo” is encrypted as “bqq.” For a student learning cryptography, which of the following activities best demonstrates the vulnerabilities of the Caesar cipher encryption technique?
Using a program that takes an input message and returns the Caesar cipher encrypted text
Using public and private key encryption to see how a more-secure encryption algorithm works
Analyzing the frequency of letters in the encrypted text to show how easy it is to break the Caesar cipher
Viewing program code that can both code and decode a message using the Caesar cipher
An algorithm was written for drawing the part of a line segment that lies within a given drawing window. The algorithm takes advantage of the fact that there are simple tests to determine if a line segment lies entirely inside or outside the window. For efficiency, the algorithm only finds where a line segment intersects the window’s border when these tests are both negative. This algorithm is representative of which of the following common approaches to solving problems?
Building a solution by combining small pieces of the solution one at a time and in sequence
Expressing a solution of a large problem in terms of the solutions of smaller, similarly structured problems
Guessing a solution, using a measure of error to refine that initial estimate, and then repeating the process with the new guess
Solving easy cases first and hard cases only when necessary
Taking massive open online courses (MOOCs) is one example of using the Internet for education. MOOCs allow students from all parts of the world to take a course simultaneously. Some MOOCs are managed by private organizations and others by colleges and universities. Which of the following statements is true about the positive and negative impacts of online learning using MOOCs?
MOOCs allow virtually unlimited enrollment, but face-to-face communication is limited.
MOOCs are free and accredited but provide only certificates of completion.
MOOCs have high course-completion rates, but the number of available courses is limited.
MOOCs provide one-on-one access to instructors, but access to course materials is only available while the course is in session.
Consider the following incomplete procedure, which is intended to return the index of the smallest element in the nonempty integer array data. The index of the first element of data is 0 and length is the number of elements in data. For example, if the value of array data is {6, 7, 8, 1, 9}, the procedure is intended to return 3, the index of the array element that contains the smallest value, 1. If there are duplicates of the smallest value in the array, then the procedure returns the index of the first occurrence of the smallest value.
int postionofSmallestValue (int[] data, int length )
int guess <-- 0
for ( int I <-- 1, i <length, i <--i + 1)
/* missing code segment */
end for
return guess
end positionofSmallestValue
Which of the following code segments could replace /* missing code segment */ so that positionOfSmallestValue works as intended?
if ( data[i] < guess )
guess ←data[I]
end if
if ( data[i] < guess )
data[i] ←guess
end if
if ( data[i] < data[guess] )
guess ← i
end if
Which of the following best describes an essential characteristic that can be used to distinguish a recursive algorithm from a nonrecursive algorithm?
Being implemented with a procedure or method that has one parameter
Creating and initializing an accumulator to store the result while the algorithm is running
Making progress toward a solution by running the algorithm on a smaller version of the original problem
Returning a fixed, literal value in the simplest case or cases
A major technology company has millions of users and has collected a great deal of information about them through various means, including surveys and cookies. Which of the following uses of the data would be the most ethical?
Selling the user data as is to another company
Requesting that users specifically opt in to sharing data with another company
Removing personally identifiable information from the data before sharing it with another company
Including a provision that grants the company the right to sell user data in a lengthy terms of service agreement
A programmer wrote the following pseudocode segment. Assume that int variables are stored as 32-bit two’s complement binary numbers.
The negative value surprises the programmer. Which of the following best explains the unexpected negative value?
The use of intermediate variables populationX and populationY introduces errors into the addition operation.
The names of the variables used to store population values are too long
A round-off error occurred as a result of the addition operation.
The sum of the two populations exceeds the largest value that can be stored in a variable of type int.
The pseudocode segment below is intended to count all the even numbers in the integer array numbers, but the code segment contains an error.
Which of the following best describes the error in the code segment?
Arithmetic precision error
Array index out-of-bounds error
Infinite loop error
Stack overflow error
Consider the following incomplete pseudocode segment, which is intended to draw the pattern shown on grid R:
setPosition ( 5, 5 )
/* missing code */
Which of the following could replace /* missing code */ so that the pseudocode segment works as intended?
Put in the correct order from lowest to highest abstraction
field, record, table, and database
record, field, table, and database
database, field , record, and table
field, database, record, and table
Which of the following is the decimal representation of the sum of binary numbers 1011 and 1011 ?
22
31
44
2022
Two people with access to the same bank account made two separate withdrawals from the account. They made the withdrawals at the same time but at two separate bank branches. At the time of the withdrawals, the account had $400. Both people checked the account balance before making their withdrawal and saw that it was $400. One person withdrew $200, and the other person withdrew $250. Both transactions were successful. Later, the two people each received an e-mail from the bank saying that the account was overdrawn. Which of the following best describes the error in the bank software that caused this problem?
The bank software failed to correctly authenticate and authorize the users accessing the account.
The bank software erroneously allowed multiple tasks to be running at the same time.
The bank software erroneously allowed two different processes to access shared data at the same time
The bank software erroneously used virtual memory instead of physical memory to store the data.
Which of the following is most likely to be permitted as fair use?
A small-business owner uses copyrighted music in an advertisement on a social media Web site.
A student uses an image from a Web site for a research project without documenting its source.
A teacher digitizes a computer science textbook and posts it to an electronic blackboard.
A teacher shows a two-minute video clip of a movie illustrating a concept the class had just discussed.
A teacher wants to arrange 32 students in groups of 4 using the following process. Each student in the class ranks the other students in order of preference. After finding all possible groups of 4, the ranking data are used to determine the average of each group member’s satisfaction with other group members to determine the best possible solution, which consists of the highest average satisfaction rating for all students. In a class of 32 students, there are approximately 5.9×1019
different possible groupings. Which of the following best describes the computational limitations of a program designed to implement this process?
Finding the best possible solution is impossible, since there are so many possibilities to consider.
Finding an optimal solution is impossible, since no algorithm exists that can solve the problem exactly.
Finding an optimal solution is difficult, since the data cannot easily be stored in a digital format.
Finding an acceptable solution using a heuristic approach is possible, but the solution may differ from the best possible solution.
A software developer is designing a simulation of city street traffic over a 24-hour period. As part of the design, the simulation will use a variable that represents the amount of time, in hours, that elapses between the entry of successive cars onto the street. During a run of the simulation, which of the following best describes what values should be assigned to the variable in order to create the most realistic simulation?
Values that decrease linearly during the simulation
Values that increase exponentially during the simulation
Values that oscillate during the simulation above and below a specified mean
Values randomly generated during the simulation that are integers between 1 and 23, inclusive
Which of the following best describes how network load and latency change as more devices are connected to the Internet in a home network?
Both the network load and the latency decrease
Both the network load and the latency increase.
The network load increases and the latency decreases.
The network load decreases and the latency increases.
or the following question, select all the answer choices that apply.
Which of the following are examples of a digital divide?
Select all that apply.
BC.A family finds that its broadband Internet connection is slower when the three children in the household simultaneously access the Internet.
An older couple cannot post messages on a social network site without help from their grandchildren.
A student is unable to view a video homework assignment because the student does not have access to a high-speed Internet connection.
A family finds that its broadband Internet connection is slower when the three children in the household simultaneously access the Internet.
A programmer is writing a program to display the even numbers 2 through 10. The program will contain the following statements
Which of the following shows the five numbered statements in correct order so that the program works as intended?
2, 5, 1, 3, 4
2, 5, 3, 4, 1
5, 2, 1, 3, 4
5, 2, 3, 1, 4
Suppose a computer uses the following encoding scheme to store signed decimal numbers using 4 bits. The signed decimal numbers that can be stored in this manner range from −8 to 7, inclusive. The following table shows the mapping of each decimal number in that range to its corresponding binary representation. To add two decimal numbers using this encoding scheme, each number is first converted to its binary representation. The two binary representations are added, using binary addition. The decimal result is the number corresponding to the binary sum. In this encoding scheme, any overflow digit is ignored.
For the encoding scheme shown in the table, what decimal number is the result of adding the decimal numbers 5 and 6 ?
-6
-5
1
-1
In an online scam, a bank customer receives an e-mail warning of suspicious activity on the customer’s account. The e-mail asks the customer to click on a link in the e-mail, which, the e-mail claims, will allow the customer to log into his or her account and verify his or her identity. The e-mail has the look and feel of a legitimate e-mail, but the link points to a malicious Web site. Which of the following best describes the scam?
Hacking
Phishing
Spam
Robocalls
Which of the following features would be the most beneficial for Deaf people who are accessing a Web site?
Captions for video media
Limited use of color contrast and sound to convey meaning
Alternate text for all images
An advanced speech synthesizer
An employee regularly transfers collections of videos from a recording device to an external hard drive. One day, the total amount of data to be transferred was 30 gigabytes. If the employee used a USB 2.0 connection with a transfer rate of 480 megabits/second, which of the following is closest to the total transfer time needed for the 30 gigabytes of data? (Note: 1 byte = 8 bits; 1 megabit = 220 bits;
1 gigabyte = 230 bytes.)
50 seconds
8 minutes
1 hour
5 hours
Although self-driving cars have imperfect driving records, the potential benefits could outweigh the costs. Which of the following statements best explains why research to improve self-driving cars is worthwhile?
Once pedestrians learn to be more careful around self-driving cars, potential injuries will be avoided.
Computers do not get distracted, so the number of traffic collisions due to distracted driving by humans can be reduced.
Software bugs are to be expected in the beginning, but eventually all the software bugs will be fixed.
Self-driving cars will make travel more productive, allowing employees to move farther away from cities.
Consider the following pseudocode procedure header.
int average ( int a, int b, int c )
Which of the following is a valid call to the procedure average ?
average ( 3, 4 )
average ( "2", 3, 4 )
average ( 2.5, 5, 6 )
average ( average ( 1, 2, 3 ), 4, 5 )
Using 8-bit ASCII, the 2-character string message "Hi" is encoded as 01001000 01101001. If each 8-bit binary code of the message is encrypted using the 8-bit key 11010011 and an XOR operation, which of the following represents the encrypted message?
00011011 00111100
00100001 10111010
10011011 10111010
11011011 11111011
ASCII is a character encoding standard that uses 7-bit binary numbers to represent each character. The following table shows four ASCII characters and the decimal number associated with each character.
ASCII 7 Decimal Number 55
ASCII = Decimal Number 61
ASCII A Decimal Number 65
ASCII Z Decimal Number 90
Consider the pseudocode segment with integer variables below, where the arithmetic expression contains mismatched parentheses.
int x ← ( r + 4 * ( t - 3 ) / 2
Which of the following statements best describes the type of error that would result, in most high-level programming languages, from mismatched parentheses like those in the arithmetic expression?
The code would compile but produce an incorrect value for x.
The compilation step would fail because of the improper syntax.
The code would compile but cause a run-time error due to division by zero.
The code would compile but cause a rounding error in x for any value of t that is not a multiple of 3.
The general form of an Internet protocol version 4 (IPv4) address is nnn.nnn.nnn.nnn, where nnn is an 8-bit integer. The general form of an Internet protocol version 6 (IPv6) address is:
HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH, where each H is a hexadecimal digit. Which of the following is a true statement about the relationship between the number of possible IPv4 addresses and the number of possible IPv6 addresses?
There are 4 times as many possible IPv6 addresses as possible IPv4 addresses.
There are 24 times as many possible IPv6 addresses as possible IPv4 addresses.
There are 296times as many possible IPv6 addresses as possible IPv4 addresses.
There are 264times as many possible IPv6 addresses as possible IPv4 addresses.
Which of the following best describes a situation in which a heuristic should be used to find a solution?
A nurse is determining the correct dosage of medications for a patient based on his age and weight.
A family is planning a cross-country road trip and wants a route that avoids roads at times they are normally congested.
A researcher is compiling the results from three separate research groups into one list.
An accountant is calculating the taxes of her clients.
Which of the following is a primary difference between encoding and encryption?
Which of the following is a primary difference between encoding and encryption?
Encoding transforms data and encryption does not.
Encryption is used in online transactions and encoding is not.
Encryption is used to restrict access and encoding is not.
Which THREE of the following are factors that contribute to the digital divide?
Different physical access to computers and networks
Different levels of information literacy
Different accessibility needs when working with digital technologies
Different manufacturers of physical digital devices
Which of the following is an example of the Internet of Things (IoT) ?
A driver uses a remote car starter to warm up the car when it is cold outside.
A coffeemaker in the kitchen turns on when an alarm clock uses the Internet to send it a message.
A computer automatically runs a daily scan to look for viruses.
A customer receives an automatically generated e-mail via the Internet for a special discount at a local shop.
Which of the following best describes the average running time of a linear search algorithm and a binary search algorithm on a sorted array of integers, in terms of the length of the array?
Linear Search Binary Search
Logarithmic Logarithmic
Logarithmic Linear
Linear Logarithmic
Linear Linear
Integrated development environments (IDEs) contain programming tools to help developers create software. Which of the following describes an IDE feature and its intended purpose?
Code completion: Suggests subsequent text based on current text
Compiler: Maintains a logical ordering of source-code files
Debugger: Generates API documentation in HTML format
Interpreter: Optimizes code to minimize the program’s running time
Which of the following best describes the main purpose of encoding?
To format data for efficient storage and transmission
To maintain data confidentiality
To minimize data size
To slow down the transfer of data between computers
What is the maximum number of distinct symbols that could appear in the hexadecimal representation of a positive integer?
8
10
15
16
Which of the following is the best reason to use named constants instead of hard-coded values in a program?
To make the program easier for clients to use
To make the program easier for programmers to maintain
To make the program execute in less time
To make the program use less memory
An e-commerce site asks users to input a shipping address. A United States address consists of the street name and number, the city, the two-character state/territory abbreviation, and the ZIP code. Once the information has been entered, it must be validated. To eliminate some of the validation, the designers decide to ask users to choose the two-character state/territory code from a pull-down menu containing all legal codes. What additional validation must be performed on the state/territory code?
The state/territory code must be validated against the ZIP code to make sure they form a valid pair.
The state/territory code must be validated against a database of shipping costs to determine the user’s total cost.
No additional validation is needed since only state/territory codes from the pull-down menu can be entered.
The state/territory code must be validated against a pattern-matching algorithm to make sure it contains the correct characters.
A major technology company has millions of users and has collected a great deal of information about them through various means, including surveys and cookies. Which of the following uses of the data would be the most ethical?
Selling the user data as is to another company
Requesting that users specifically opt in to sharing data with another company
Including a provision that grants the company the right to sell user data in a lengthy terms of service agreement
Removing personally identifiable information from the data before sharing it with another company
Which of the following best describes an essential characteristic that can be used to distinguish a recursive algorithm from a nonrecursive algorithm?
Being implemented with a procedure or method that has one parameter
Creating and initializing an accumulator to store the result while the algorithm is running
Making progress toward a solution by running the algorithm on a smaller version of the original problem
Returning a fixed, literal value in the simplest case or cases
