Computers

12th

grade

Image

Binary

20
plays

16 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    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
    1 minute
    1 pt

    Which of the following are true statements about the data that can be represented using binary sequences?


    I. Binary sequences can be used to represent strings of characters.

    II. Binary sequences can be used to represent colors.

    III. Binary sequences can be used to represent audio recordings.

    I only

    I and II only

    II and III only

    I, II, and III

  • 3. Multiple Choice
    2 minutes
    1 pt

    Consider the 4-bit binary numbers 0011, 0110, and 1111. Which of the following decimal values is NOT equal to one of these binary numbers?

    3

    6

    9

    15

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?