Creating Computational Artifacts

¡Supera tus tareas y exámenes ahora con Quizwiz!

An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physical sensors are used to set the following Boolean variables. The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on. Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?

(onFloor1 AND callTo2) OR (onFloor2 AND callTo1) Answer B

Which of the following has the greatest potential? Which of the following has the greatest potential for compromising a user's personal privacy?

A group of cookies stored by the user's Web browser Answer A

A code segment will be used to swap the values of the variables a and b using the temporary variable temp. Which of the following code segments correctly swaps the values of a and b ?

Answer B

Digital images are often represented by the red, green, and blue values (an RGB triplet) of each individual pixel in the image. A photographer is manipulating a digital image and overwriting the original image. Which of the following describes a lossless transformation of the digital image?

Creating the negative of an image by creating a new RGB triplet for each pixel in which each value is calculated by subtracting the original value from 255. The negative of an image is reversed from the original ; light areas appear dark, and colors are reversed. Answer C

Consider the following numbers. Binary 1100 Decimal 11 Hexadecimal D Which of the following lists the numbers in order from least to greatest?

Decimal 11, Binary 1100, Hexadecimal D

A programmer is deciding between using a linear or binary search to find a target value in a sorted list. Which of the following is true?

Generally, the advantage of using a binary search over a linear search increases as the size of the list increases.

The student's gender The state in which the student attends college The student's grade point average on a 4.0 scale Which of the following questions could be answered by analyzing only information in the data set?

How many states have a higher percentage of female computer science majors than male computer science majors attending college in that state?

A large data set contains information about all students majoring in computer science in colleges across the United States. The data set contains the following information about each student. The student's gender The state in which the student attends college The student's grade point average on a 4.0 scale Which of the following questions could be answered by analyzing only information in the data set?

How many states have a higher percentage of female computer science majors than male computer science majors attending college in that state? Answer B

Many Web browsers allow users to open anonymous windows. During a browsing session in an anonymous window, the browser does not record a browsing history or a list of downloaded files. When the anonymous window is exited, cookies created during the session are deleted. Which of the following statements about browsing sessions in an anonymous window is true?

Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer. Answer B

Which of the following is considered an unethical use of computer resources?

Purchasing a single-user copy of photo editing software and installing it on all the computers in a computer lab. D

Which of the following is a true statement about cloud computing? Which of the following is a true statement abouT

Storing data using cloud computing can help ensure that data are not lost if a user's computer stops functioning. Answer C

A new bank plans to make customer convenience a priority by minimizing the amount of time a customer waits in line. The bank is considering two options: a single line where the customer at the front waits for the next available teller, or separate lines for each teller. The bank decides to use a computer simulation of these two options to determine the average wait time for customers. Which of the following is NOT true about the bank's plan?

The simulation will not produce usable results because actual customer data are not available. Answer D

A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality? A

The song was saved using fewer bits per second than the original song. answer A

Which of the following is a true statement about data compression?

There are trade-offs involved in choosing a compression technique for storing and transmitting data. answer D

Binary number

a number written in the binary system, a system that uses only two digits, 0s and 1s.


Conjuntos de estudio relacionados

Igneous Rocks - GEOL 1403 - Physical Geology

View Set

Digoxin heparin warfarin (Coumadin)

View Set

Chapter 11: Gender Gap in Earnings: Methods & Evidence

View Set

Exam 2 - Principles of Management

View Set

Human Execution: No Such Thing Read Theory Answers

View Set

VNSG 1323: Chapter 23 Prep U Questions

View Set

The Cardiovascular and Respiratory Systems

View Set