Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Lab 2 - Binary | CS 160, Exercises of Computer Science

Lab 2 for intro to code in CS160

Typology: Exercises

2016/2017

Available from 01/14/2022

hoang-vu-nguyen
hoang-vu-nguyen 🇺🇸

4 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Vu Nguyen
CS160
Lab 2
Lab 2 Assignment
1. Convert
Binary Octal Hexadecimal
21 10101 25 15
28 11100 34 1C
32 100000 40 20
53 110101 65 35
2. Convert
a. 15 + -6 = 1111 + – 110 = 1001
b. 34 + -52 = 100010 + - 110100 = -10010
3. There are 8 bits in a byte
4. 256 things
5. Difference
- Lossy File Compression: mostly associated with images files, it also be used for audio
files. An original image which has been compressed using lossy format, will retain
about 80% of it’s original quality.
pf2

Partial preview of the text

Download Lab 2 - Binary | CS 160 and more Exercises Computer Science in PDF only on Docsity!

Vu Nguyen CS Lab 2 Lab 2 Assignment

  1. Convert Binary Octal Hexadecimal 21 10101 25 15 28 11100 34 1C 32 100000 40 20 53 110101 65 35
  2. Convert a. 15 + -6 = 1111 + – 110 = 1001 b. 34 + -52 = 100010 + - 110100 = -
  3. There are 8 bits in a byte
  4. 256 things
  5. Difference
    • Lossy File Compression: mostly associated with images files, it also be used for audio files. An original image which has been compressed using lossy format, will retain about 80% of it’s original quality.
  • Lossless File Compression: Using lossless format can end up reducing a file’s size without any loss of the original quality. Lossless compressed files are preserved better.
  1. Go Titans!
  2. It means the color is purple
  3. Sample rate as the number of electronic snapshots made of the sound wave per second. Higher sample rates result in higher sound quality because the analog waveform is more closely approximated by the discrete samples.
  4. Video compression uses modern coding techniques to reduce redundancy in video data. Most video compression algorithms and codecs combine spatial image compression and temporal motion compensation