pencil-icon
Build your own quiz

Computers

9th

grade

Image

Data Unit (Lossy vs Lossless, Binary, Overflow, Roundoff)

24
plays

23 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    A certain programming language uses 4-bit binary sequences to represent nonnegative integers. For example, the binary sequence 0101 represents the corresponding decimal value 5. Using this programming language, a programmer attempts to add the decimal values 14 and 15 and assign the sum to the variable total. Which of the following best describes the result of this operation?

    The correct sum of 29 will be assigned to the variable total.

    An overflow error will occur because 4 bits is not large enough to represent either of the values 14 or 15.

    An overflow error will occur because 4 bits is not large enough to represent 29, the sum of 14 and 15.

    A round-off error will occur because the decimal values 14 and 15 are represented as approximations due to the fixed number of bits used to represent numbers.

  • 2. Multiple Choice
    30 seconds
    1 pt

    Which of the following is an advantage of a lossless compression algorithm over a lossy compression algorithm?

    A lossless compression algorithm can guarantee that compressed information is kept secure, while a lossy compression algorithm cannot.

    A lossless compression algorithm can guarantee reconstruction of original data, while a lossy compression algorithm cannot.

    A lossless compression algorithm typically allows for faster transmission speeds than does a lossy compression algorithm.

    A lossless compression algorithm typically provides a greater reduction in the number of bits stored or transmitted than does a lossy compression algorithm.

  • 3. Multiple Choice
    30 seconds
    1 pt
    Image

    ASCII is a character-encoding scheme that uses 7 bits to represent each character. The decimal (base 10) values 65 through 90 represent the capital letters A through Z, as shown in the table below.

    What ASCII character is represented by the binary (base 2) number 1001010 ?

    H

    I

    J

    K

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?