Readable Code — Cumulative exam Answers

0 verified answers1 views
1
Free Preview

One reason it is important to write code that is readable is that

A
it makes the code execute faster, which makes the code run better.
B
it saves space on the page for important comments.
C
it makes it easier to copy when you want to send the code to others.
D
it makes it easier to follow when revisions or updates are called for.
2
Free Preview

Which of the following is true about the task of calculating paychecks?

A
It can always be correctly executed by using a random process.
B
It can always be correctly executed by using ill-defined steps.
C
It is an example of a logic problem that computers can solve.
D
It is an example of a task that cannot be automated on a computer.
3

What is the most likely reason that a digital artist would use a program such as Autodesk Maya or Max to create 3-D images for a video game rather than just using photos?

A
3-D images can be manipulated to change properties such as color and size, but digital photos cannot be changed.
B
3-D images can include formatted text that the player can easily read, but photos cannot feature text.
C
Video game players prefer to see less realistic images in order to feel like they are in a video game universe rather than in the real world.
D
Video game players can see 3-D images from different angles, interacting with them as if they were objects in a real world.
4

What is the name of a coding sequence that is executed multiple times in a program?

A
a break
B
a pass
C
a loop
D
a suite
5

What do flowcharts communicate to programmers?

A
how to use methods to test code
B
how data will flow through program
C
how the compiler will translate code into assembly language
D
how the to use a debugger to eliminate bugs in code
6

What are three types of audio editing techniques?

A
Sound Forge, Audacity, and Pro Tools
B
burning, copying, and fading
C
non-destructive, destructive, and constructive
D
professional, open source, and free
7

What is an algorithm?

A
a way to make an informed judgment
B
used only on a computer
C
used only with map directions
D
a set of directions for problem solving
8

Which of these outputs can be found by querying a database?

A
the weather for a day next month
B
the number of students with the last name Smith
C
a graph of the number of students who play each sport
D
a list of all the different ways that a student’s name might be spelled
9

Lucia is using the American Psychological Association (APA) style guidelines to writer her research paper. What is her most likely topic?

A
physical sciences
B
literature
C
social sciences
D
biology
10

“Jan23” can be stored using which data type?

A
an alphanumeric string
B
a boolean operator
C
characters
D
floating point numbers
11

Which best describes desktop publishing?

A
the process of designing and laying out printed material
B
the positioning of text, graphics, and white space on a page
C
the style of letters and how they are arranged
D
the use of images and colors
12

What part of digital video processing is practical because it saves space, reduces the expense of file storage, and reduces the amount of time required to upload and download a file?

A
framing
B
converting to analog
C
compression
D
streaming
13

Which is a linear presentation?

A
A company includes a presentation with every new bookcase that has step-by-step building instructions that includes hyperlinks to skip ahead to a further step.
B
A teacher allows students to explore a presentation about New York by choosing hyperlinks to attractions in the city that they are interested in seeing.
C
An insurance salesperson follows a presentation while explaining the different plans he sells.
D
A real estate agent prepares a slide stack for a couple so that they can click on pictures of condos that are in the school district they like.
14

Which line of code will eliminate the element “calculator” from an array of supplies?

A
supplies.append(“calculator”)
B
supplies.pop(“calculator”)
C
supplies.delete(“calculator”)
D
supplies.remove(“calculator”)
15

What is one advantage of top-down programming design?

A
It enables multiple programmers to work on the code at the same time.
B
Programmers can take advantage of abstraction to focus on specific tasks.
C
The same object can be used to process data from a variety of sources.
D
It presents a solution from start to finish.
16

How do most database users perform data searches?

A
by using forms
B
by generating reports
C
by viewing tables
D
by performing calculations
17

What kind of report is a summary of a company’s total sales over a five-year period?

A
a product list
B
a market research report
C
a sales volume report
D
a customer list
18

What happens in the process represented by the flowchart?

Question illustration
A
The person drinks water if the answer to “Thirsty?” is no.
B
The person always drinks water.
C
The person drinks water if the answer to “Thirsty?” is yes.
D
The person never drinks water.
19

Which of the following explains why giving directions to a location is suitable for creating an algorithm?

A
An algorithm provides step-by-step instructions.
B
An algorithm is written in computer code.
C
An algorithm gives different steps each time it is used.
D
An algorithm posts directions on a website.
20

What process is used to convert numbers between the binary system and the decimal system?

A
Enter the number in a calculator, divide by 2, and multiply by 10.
B
Convert each binary number to a letter, then use the letter’s place in the alphabet as the decimal representation ( e.g., A = 1, B = 2).
C
Add up the digits in the binary number and place the sum behind a decimal point.
D
Look up the number on a binary-to-decimal conversion table.

Did you find these answers helpful?