Digital information Code HS

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is the value of 1310 in binary?

11012

What is the value of F16 in decimal?

1510

What is the number base of the binary number system?

2

How many possible values can be created with 8 bits?

256

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

4

In the binary value 1002, 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')

What is a pixel?

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

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 = R + 50; G = G + 50; B = B + 50; R = Math.min(R + 50, 255); G = Math.min(G + 50, 255); B = Math.min(B + 50, 255); R = R - 50; B = B - 50; G = G - 50; R = Math.max(R - 50, 0); B = Math.max(B - 50, 0); G = Math.max(G - 50, 0);

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

How can you quickly tell if a binary number is odd or even?

Odd binary numbers always end in '1' and even binary numbers always end in '0'.

Which of the following pixels has a color value of #ff0000 (expressed in hexadecimal) (White Pixel) (Blue Pixel) (Green Pixel) (Red Pixel)

(Red Pixel)

What is the highest value that can be created with only 6 bits?

011000002 = 610

What is the value of 9F16 in binary?

1001 11112

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 Given an image: for every (x, y) coordinate in the image Get the current pixel at (x, y) Add 50 to the red value of the pixel Add 50 to the green value of the pixel Add 50 to the blue value of the pixel Update image at (x, y) with this modified pixel Given a pixel: Modify the red value of the pixel according to a function Modify the green value of the pixel according to a function Modify the blue value of the pixel according to a function return the modified pixel Given an image: Get the pixel at (0, 0) from the image Modify the pixel according to a function Update image at (0, 0) with this modified pixel

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

If a binary value has only a single 1, what must be true about the value?

It is negative in value

what are the three color channels that make up a pixel according to the RGB color scheme

Red, Green, Blue

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

Red, Green, and Blue

What is data abstraction?

The process of simplifying complicated data into manageable chunks

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. All of the above

all of the above

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[RED] = 255; return pixel; } var RED = 0; var GREEN = 1; var BLUE = 2; function removeGreenAndBlue(pixel) { pixel[GREEN] = 0; pixel[BLUE] = 0; return pixel; } var RED = 0; var GREEN = 1; var BLUE = 2; function removeGreenAndBlue(pixel) { pixel[GREEN] = 0; pixel[BLUE] = 0; } function removeGreenAndBlue(pixel) { pixel.setGreen(0); pixel.setBlue(0); return pixel; }

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


Kaugnay na mga set ng pag-aaral

Introductory Chemistry Quiz and Exam Answers

View Set

Muskuloskeletal Imaging, Breast, & Superficial Structures

View Set

Unit 13: Treatment of Abnormal Behavior

View Set

Saunders NCLEX - gastrointestinal

View Set