Section 1

Preview this deck

A(n) ____ loop structure visits each element in a sequence or counts through a sequence of numbers using a single loop control variable. a. nested b. linear c. single d. straight

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (39)

Section 1

(39 cards)

A(n) ____ loop structure visits each element in a sequence or counts through a sequence of numbers using a single loop control variable. a. nested b. linear c. single d. straight

Front

linear

Back

A constructor without parameters is known as a(n) ____ constructor. a. default b. uninstantiated c. mutated d. object

Front

default

Back

____ detection was used in Figure 5-2 above to remove the full colors of the original image to uncover the outlines of the objects represented in the image. a. Line b. Edge c. Luminance d. Color

Front

edge

Back

The sounds package includes the ability to ____. a. record new sound clips b. open files containing existing clips c. play the currently loaded clip d. all of the above

Front

all of the above

Back

The set of interfaces in a package or an entire language.

Front

API

Back

To create a copy of an image, it is easiest to start by creating a new, blank image with the same height and width as the original. True / False

Front

false

Back

In a pixel grid, the position (width-1, height-1) is in the ____ corner of the grid. a. upper-right b. upper-left c. lower-right d. center

Front

lower right

Back

One way of rearranging sound clips, called ____, is to place one clip after another to form a new sound a. splicing b. dubbing c. composing d. echoing

Front

splicing

Back

Used to measure monitor resolution

Front

PPI

Back

The aspect ratio of a pixel is used to detect an edge. True / False

Front

false

Back

A sample size of 16 bits allows signed integers from 0 to 1. True / False

Front

false

Back

When an image is loaded by a Web browser, the software maps the bits from the image file into a rectangular area of colored dots for display. True / False

Front

true

Back

The area of RAM reserved for Java objects is called the ____ space. a. heap b. free c. storage d. save

Front

heap

Back

In a pixel grid, the position (0, 0) is in the ____ corner of the grid. a. upper-right b. upper-left c. lower-right d. center

Front

upper left

Back

In a pixel grid, the y-coordinates increase positively towards the top. True / False

Front

false

Back

Case 5-1 Emma is writing a program that will adjust a sound clip's volume. Emma knows that to increase a sound clip's volume, she needs to instruct the program to ____ a. increase the size of the sample value b. decrease the amplitude c. divide the sound clip's old value by a given factor d. adjust the sound's aspect ratio

Front

increase the size of the sample value

Back

____ give programmers access to complex behavior. a. Objects b. Aspects c. Samples d. Mutators

Front

objects

Back

A(n) ____ is a method that returns a value and is used to examine part of the contents of an object a. mutator b. evaluator c. instantiator d. accessor

Front

accessor

Back

Used to adjust the heap space used for data memory.

Front

Xmx

Back

An image basically consists of all of the following EXCEPT ____. a. width b. height c. depth d. set of pixels

Front

depth

Back

A program instantiates a class by using one of its ____ with the new operator a. variables b. constructors c. accessors d. mutators

Front

constructors

Back

An enhanced for loop is also called a(n) ____ loop. a. for-for b. for-each c. then-for d. if-for

Front

for each

Back

A sound's volume at a given moment.

Front

amplitude

Back

Case 5-2 Nico is writing a program that combines sound files. Nico wants to ____, or blend together two sound clips so that they will play simultaneously. a. splice b. echo c. compose d. blur

Front

compose

Back

A pixel contains integer values that represent its color in terms of ____ components. a. PPI b. aspect c. height and width d. RGB

Front

RGB

Back

Each pixel is accessible by means of its (x, y) coordinates True / False

Front

true

Back

Object ____ makes a new object available to a program. a. orientation b. definition c. instantiation d. access

Front

instantiation

Back

To convert an image to grayscale, the average of a pixel's color values is calculated, and each value is reset to the average. True / False

Front

true

Back

The average of a pixel's RGB values.

Front

Luminance

Back

The inputs to an echo algorithm are a sound clip and an integer ____. a. coordinate b. value c. variable d. delay

Front

delay

Back

When the resolution of a monitor is increased, the images appear larger. True / False

Front

false

Back

Loops that march across a row before moving onto the next row use a row-major traversal pattern. True / False

Front

true

Back

A sound with higher ____ results in a higher fidelity to the original sound as well in a large file size. a. frequency b. volume c. density d. sampling rate

Front

sampling rate

Back

To use an object effectively, the programmer must know the set of ____ that it recognizes. a. classes b. methods c. parameters d. packages

Front

methods

Back

An image with a file size of 120 kilobytes and an image size of 300 by 225 pixels is a large file. True / False

Front

false

Back

Case 5-2 Nico is writing a program that combines sound files. Nico wants to add a(n) ____, an effect wherein an earlier part of a sound clip is heard concurrently with the sound at the present moment. a. splice b. echo c. compose d. blur

Front

echo

Back

The image to the right in Figure 5-1 above has ____. a. been converted to black and white b. had its brightness adjusted c. had its edges detected d. been converted to grayscale

Front

been converted to gray scale

Back

The ____ method builds and return a new image with the same attributes as the original one, but with an empty string as the filename. a. copy b. duplicate c. clone d. repeat

Front

clone

Back

Case 5-1 Emma is writing a program that will adjust a sound clip's volume. If the factor Emma uses in her algorithm is ____, the product of the sample and the factor might exceed the limit of the legitimate sample range. a. greater than 32767 b. less than -32768 c. greater than 1 d. less than 1

Front

greater than 1

Back