Use Data Structures — Cumulative exam Answers

50 verified answers1 views
1
Free Preview

Kali, a Python programmer, is using the turtle module to write the word “hello.” Which code should she use to indicate the location to begin writing the word?

A
# Pick up the turtle and move it to its starting location.
B
penup(-100, 200) goto()pendown()
C
penup() goto(-100, 200) pendown()
D
# Pick up the turtle and move it to (-100, 200)
2
Free Preview

Why is it uncommon for users to perform searches directly in database tables?

A
Users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets.
B
Users are discouraged from interacting directly with tables because this may result in unintended changes to source data.
C
Users do not have the technical skills required to perform searches directly in database tables.
D
Users do not have the permissions required to perform searches directly in database tables.
3

The formula =B2/A2 is inserted into cell C2. Which of the following is true when this formula is copied and pasted into cell C3?

Question illustration
A
The formula changes to =B3/A3.
B
The formula remains =B2/A2.
C
The contents of cell C2 are moved to C3.
D
The contents of cell C2 and C3 are merged.
4

Read the code below. What will the computer print if the input for year_variable is 1700?if year_variable == 1776: print("Your answer is correct. The Declaration of Independence was signed in “year_variable”.")elif year_variable 1776: compute_variable = year_variable - 1776 print("Subtract “compute_variable” years from your answer for the correct answer.")

A
Your answer is incorrect. The Declaration of Independence was signed in 1776.
B
Subtract 76 years from your answer for the correct answer.
C
Add compute_variable years to your answer for the correct answer.
D
Add 76 years to your answer for the correct answer.
5

The Microsoft Developer Network is an example of a

A
software development company.
B
software development marketplace.
C
developer forum.
D
developer blog.
6

A student is writing a research paper about the poetry of the Harlem Renaissance. Which style guidelines will the student most likely follow when writing about this topic?

A
American Chemical Society (ACS)
B
Modern Language Association (MLA)
C
Council of Science Editors (CSE)
D
American Psychological Association (APA)
8

What is an easy and accurate way that a graphic designer can increase the size of a digital shape while keeping the ratio of height to width the same?

A
First make the height taller, and then drag the width by using one’s eyes to try to make sure the proportions stay the same.
B
Hold the key, such as Shift, that the program uses to make sure all dimensions are adjusted while dragging just one side.
C
Open the shape’s properties window, and type the height value multiplied by 2 and the width value multiplied by 3.
D
First convert the shape into a photo file, and then digitally manipulate it in a program such as Adobe Photoshop.
9

What is an example of a network database?

A
a database that stores medical records and needs to accommodate patients who see several doctors and use multiple clinics
B
a database that contains a retail store’s lists of employees and the managers they report to
C
a database that organizes a list of customers’ saved online shopping carts using the customers’ ID numbers
D
a database that stores information for a professional website that keeps users’ photos and resumes
10

An If statement is based on boolean logic because

A
the condition in the statement tests TRUE or FALSE.
B
it contains two different conditions.
C
it returns either a 0 or a 1.
D
it uses shorthand operators.
11

When you are resizing graphics on a business card, holding down the Shift key serves what purpose?

A
maintaining the orientation of the graphic
B
keeping the height and width proportional to the original graphic
C
matching the dimensions of the graphic to the dimensions of the business card
D
moving the graphic to the background behind any text on the business card
12

A real-world use of a word processing software template is

A
a contract for leasing an apartment.
B
a bulleted list of books that are needed for a professor’s classes.
C
a science fiction short story.
D
an accounting of how you spent your money.
13

A programmer is responsible for solving a problem and making a presentation that includes his solution. He does not have much room to show the steps, so he uses mostly words and a few symbols. For this presentation he decides to use

A
a flowchart because pseudocode is harder to write and understand.
B
pseudocode because it gives a summary of the process with concise words and symbols.
C
a flowchart because it requires special training to understand.
D
pseudocode because it uses pre-defined shapes to show the steps.
14

When creating a database, in which step do you add foreign keys to tables?

A
when creating relationships within tables
B
when creating relationships between tables
C
when logically organizing data into tables and fields
D
when determining what data to store
15

Python programmers use the Else statement to run code

A
when all the conditions in the preceding If and Elif statements evaluate as False.
B
when the first condition evaluates as True and the second condition evaluates as False.
C
when the code needs to be executed every time the program is run.
D
when the code needs to be executed for conditions that evaluate as True.
17

Miguel wants to process photos he took while they have the highest possible resolution. He uses RAW format, which allows him to do this. One drawback of transferring RAW files directly to his computer to save and share them is that the photos

A
have a much larger file size than JPG files.
B
will look smaller than JPG files.
C
will not look as good as JPG files.
D
would print with poorer color quality than JPG files.
18

The audio file types that can be added to a presentation using Impress are

A
.avi, .mpeg, and QuickTime.
B
.midi, .mpeg, and .wave.
C
.jpg, .bmp, and .png.
D
.tif, .gif, and .bmp.
19

Common lossless compressed audio file formats include

A
WMA and IIFF
B
WAV and AU
C
MP3 and MP4a
D
FLAC and ALAC

Did you find these answers helpful?