Code.org Unit 1 test

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What are the similarities and differences between the binary and decimal systems?

similarities: they both use zeros to show that there is nothing in a place, differences: one count from 1 to 10 the other 1 2 4 8 16 and so on, one is a bunch of numbers the other is only 1's and 0's, and binary uses bits

what happens whenever you add a new bit

the amount of numbers one can make increase exponentially

what can the 7-bit system code for?

128 characters. Symbols 0-31 and 127 were reserved for control characters (e.g. "Backspace" or "Delete") with the numbers 32-126 being used for printable characters.

Which of the following would result in a better digital approximation of an analog black and white image?

Decreasing the size of each sample square, thus increasing the number of samples taken.

Many museums have digital catalogs of their collections. What are the potential benefits and harms of creating these digital catalogs?

Some potential benefits of having a digital catalogs of their collections are that it takes away the space needed to store the physical version of this data, the information can easily be accessed no matter the location on any device, and the information can easily be edited or shared whenever needed. Some potential cons of having digital catalogs of their collections are that it less secure than physical data, it can be hacked, deleted, or corrupted, also digital catalogs can be accessed easier by thoughts without the proper qualifications to accessus such information than that of physical data.

When using bits to represent fractions of a number, can you create all possible fractions? Why or why not?

Yes, by using the first bits to represent the full number and the last for bits as the number above the fraction

what does the 6-bit system allow one to do?

affect shade. 010000=dark red, 100000=red, 110000=bright red, concept works the same for the rest of the colors. ex: 001000=green

Modern car odometers can record up to a million miles driven. What happens to the odometer reading when a car drives beyond its maximum reading?

after they pass the cap they read zero and restart the count

Which statement about analog and digital images is true? (a) With advances in technology, digital images look exactly like the analog images they represent. (b) Sampling an analog image more frequently produces a digital image with a better representation. (c) Analog images come from data that is measured at regular intervals. (d) Digital images come from data that is measures continuously.

b

link to 7-bit system key

file:///C:/Users/pmonp/Downloads/U1L07%20Activity%20Guide%20-%20Representing%20Text%20(2).pdf

what do more wires do

more wires the bigger the numbers you can store. each wire=1 bit.

"The binary pattern 01000001 represents the number 65." Write a brief response explaining whether you believe this statement is always true. Explain your reasoning.

01000001 does not only mean 65 because it can also mean A

what is lossy compression and what things have this type of compression?

When it is compressed some of the info is thrown away this used on images

Assume your friend just sent you 32 bits of pixel data (just the 0s and 1s for black and white pixels) that were encoded after sampling an image. Choose the two statements that are true. (a) The 32 bits of pixel data is enough to produce the image using the widget. Nothing else is needed. (b) The digital image would be an exact copy of the analog image. (c) The correct width and height must be input into the pixelation widget to produce the image. (d) The fact that only 32 bits were used to represent the image indicates relatively large sample squares were used. The digital image may vary from the analog image significantly.

c and d

Binary

it's a number system in which is represented by 1's and 0's. for example 1010= 10 in normal numbers

Do we use unaltered digital information?

no its compressed example a 30 MB song can be compressed to 3 MB

You've been given a new cell phone with a 2 gigabyte data plan. You plan to use your phone for text messages, images, video, and music. Which of these categories are best compressed using lossless compression? Which of these categories are best compressed using lossy compression? Why?

"Images, video, and music are best compressed using lossy compression because you can lose data without the human eye or ear noticing much. Text messages can best be compressed using lossless compression because you can reduce the number of bits needed without losing any information. In a text, using abbreviations and symbols is ok because most people know what they mean. But if you are taking away, for example, all the vowels, which would be lossy compression, it will be harder to know what the message means."

In the 3-bit color system what is each color?

100=red, 010=green, 001=blue, 110=yellow, 011=cyan, 111=white, 000=black, 101=purple

What is the origin and use of the 7-bit system?

ASCII (American Standard Code for Information Interchange) is a widely used system for character encoding. It was originally developed in 1963 as a 7-bit system allowing for 128 characters. Symbols 0-31 and 127 were reserved for control characters (e.g. "Backspace" or "Delete") with the numbers 32-126 being used for printable characters. As the 8-bit "byte" became standardized, ASCII was extended to the 8-bit format you see below

What is the most important quality of lossless compression? (a) The data is transformed to usually make it smaller. It can always be re-constructed back to the original. (b) The data is transformed to always make it smaller. It can always be re-constructed back to the original. (c) The data is transformed to usually make it smaller. It cannot always be re-constructed back to the original. (D) The data is transformed to always make it smaller. It cannot always be re-constructed back to the original.

D

Why should we care about information being represented digitally? How does this impact you personally?

I believe we should care about information being represented digitally because it allows users to acquire it with an ease that has never before been seen. However, this easy has influence our personalities as it has left us becoming more goable as we believe everything that we read online and less patient as we are used to getting everything immediately.

Your computer science teacher asks you to sample a black and white image that is 4" x 6". How would you sample the image to provide a good digital approximation using the pixelation widget? What sample size would you use? How would your decision affect the digital representation?

I would use a widget that would have 24 bits. My decisions would affect the image because depending on where I put the 1's and 0's the image will look different.

An author is preparing to send their book to a publisher as an email attachment. The file on their computer is 1000 bytes. When they attach the file to their email, it shows as 750 bytes. The author gets very upset because they are concerned that part of their book has been deleted by the email address. If you could talk to this author, how would you explain what is happening to their book?

If I could talk to the author I would simply explain that their book had gone through a process known as compression in which phrases that are repeated within the book are replaced with a symbol that allows the file to take up much less memory, but when someone opens the file to read his writing the words will appear the same as they did in the original document.

Number system

It is a system of naming and representing numbers. There are various types of numbers like Decimal number system (Base- 10), Binary number system (Base- 2), Octal number system (Base-8), and Hexadecimal number system (Base- 16).

what is lossless compression and what is it used with?

It is compression in which nothing is lost it can be decompressed back into the original thing it is done by finding patterns in the data you are typing to compress. For example, if a song said Jeff 1000 times, you can replace those 4 letters with just one symbol which is 1/4 the memory.

what is the smallest piece of information a computer can store and what can it do?

It's a bit and it can do yes or no questions?

How is a Creative Commons license different from a regular copyright?

It's a way to license out copyrighted work to those who follow the conditions of the person who owns the actual copyright so they can use it in their own work

Describe how the process of sampling, RGB pixels, and binary sequences work together to display a digital color image.

These two factors work together by first deciding whether a color is on or off with 0's and 1's, and then decide which color it is and by what degree the color shows with the order of 1's and 0's.

As a reminder, in the warm-up we saw the this scenario: Imagine you were using some of our pixelation tools to create an image and you posted it online for your friends to see - but, a week later you find out someone took that image and put it on a T-shirt that they're selling for $10 each. Now that we understand Copyright, what would need to change in order for the scenario from the warm-up to be okay?

They would be required to get permission from me in order to put the design on a t-shirt

bit

one digit in a binary code

higher quality sound and images

the more bits the higher quality the images and sound

pixilation widget

were you can code black and white pixels to make pictures. 1 makes the square white and 0 black. it can also be used to define width and height. (when it's white it means the light is on and when its black it means the light is off)


Set pelajaran terkait

Psychology 375 Cognition - Final

View Set

networking threats, assessments, and defenses

View Set

GOVT2305 - U.S. Government - Chapter 4

View Set

Chapter 30: An Introduction to Animals

View Set