Digital Information

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is the value of 13*10 in binary?

1101*2

What is the value of F*16 in decimal?

15*10

What is the number base of the binary number system?

2

How many possible values can be created with only 2 bits?

4

In the binary value 100*2, what is the place value of the 1?

4s place

How many bits are used to encode a character according to the ASCII encoding scheme?

8 bits (ex: 0100 0001 encodes 'A')

00111110

>

00111111

?

01000000

@

What is a pixel?

A single tiny dot, or square, of color in a digital image.

Which of the following describes the instructions for a general image filter?

Given an image: for every (x, y) coordinate in the image Get the current pixel at (x, y) Modify the pixel according to a function Update image at (x, y) with this modified pixel

We want to write a brightness filter that brightens a given pixel. Which of the following instructions would brighten a pixel? Assume R is the red value of the pixel, G is the green value, and B is the blue value.

R = Math.min(R + 50, 255); G = Math.min(G + 50, 255); B = Math.min(B + 50, 255);

Which of the following pixels has a color value of #ff0000 (expressed in hexadecimal)

(Red Pixel)

What is the range of values (expressed in decimal) that each color channel can have?

0*10 - 255*10

What is the value of 9F*16 in binary?

1001 1111*2

How many numbers can you convert from one base to another?

Any of them

What are the 3 color channels that make up a pixel according to the RGB color scheme?

Red, Green, and Blue

Which of the following are examples of encoding information?

Representing fast food meals as numbers on the menu. For example a number 1 represents a hamburger. Assigning a numeric value to every area of a region, for example zip codes in the United States Assigning a number to every character of the alphabet so we can represent sentences as series of simple digits.

What is data abstraction?

The process of simplifying complicated data into manageable chunks

Which of the following functions properly removes all green and blue from a pixel and returns the modified pixel?

var RED = 0; var GREEN = 1; var BLUE = 2; function removeGreenAndBlue(pixel) { pixel[GREEN] = 0; pixel[BLUE] = 0; return pixel; }


Ensembles d'études connexes

Safety and Infection Control week 3

View Set

New Testament quiz questions: (Midterm multi choice prep)

View Set

Chapter 40: Medical Office Computerization

View Set