159k views
1 vote
HELP!!!!!!!!!

1. Which of the following sorts software from the lowest level of abstraction to the highest?

Program, code segment, statement

Statement, code segment, program

Program, statement, code segment

Code segment, statement, program



2.Which of the following describes a lossy transformation of a digital image composed of pixels which have red, green and blue components stored using values from 0-255?

Swap the values of the blue and green components for each pixel.

Replace the green component of each pixel with the average value of the red and blue components of the pixel.

Replace the values for each pixel with the values from the pixel which is 10 pixels to the right. If the pixel is less than 10 pixels from the right of the image continue counting from the left of the image when the edge is reached

Replace each component of each pixel with the original value of that component subtracted from 255.

3. Procedures in programming are often defined with parameters - variables that are used in the procedure for which a value needs to be specified each time the procedure is called. Which of the following give a variable that would be useful to have as a parameter for the specified method? The value of (pi) in a procedure to find the area of a circle The name of an author in a procedure to search a library catalog for books The side length of a cube in a procedure to find the surface area of a cube

I and III only

II and III only

I, II, and III

I only

2 Answers

5 votes

Answer:

Step-by-step explanation:

1. the lowest level of abstraction to the highest: Statement, code segment, program

2. lossy transformation of a digital image: Replace the green component of each pixel with the average value of the red and blue components of the pixel.

3. a variable that would be useful to have as a parameter for the specified method: The name of an author in a procedure to search a library catalog for books The side length of a cube in a procedure to find the surface area of a cube

II and III only

User John Willemse
by
6.2k points
1 vote

Answer:

Step-by-step explanation:

1. Statement, code segment, program

as program includes everything so it has the highest level of abstraction.

2. Replace the green component of each pixel with the average value of the red and blue components of the pixel

as averaging will cause the transformation to become lossy.

3. II and III only

as value of pi is constant, not a variable.

User Asmodianis
by
5.5k points