Study Notes on Computer Science Principles - Binary Numbers
Directions for Questions
The questions consist of incomplete statements followed by four suggested answers.
Select the one that is best in each case.
Question Summaries
Question 1
Context: Computer operation results as value Y.
Options:
- (A) An overflow error occurred.
- (B) The precision of the result is limited due to the constraints of floating-point representation.
- (C) The operation arguments were in reverse order.
- (D) Attempt to represent a floating-point number as an integer.
Question 2
Context: A computer program uses 4 bits for nonnegative integers.
Statements:
- I. Operation will result in an overflow error.
- II. Operation will result in an overflow error.
- III. Operation will result in an overflow error.Options:
- (A) I only
- (B) II only
- (C) II and III only
- (D) I, II, and III
Question 3
Context: Programmer adds 14 and 15 using 4-bit binary sequences.
Options:
- (A) The correct sum of 29 will be assigned.
- (B) Overflow error occurs as 4 bits are insufficient for 14 or 15.
- (C) Overflow error occurs as 4 bits are insufficient for 29.
- (D) A round-off error occurs.
Question 4
Context: An online store uses 6-bit sequences, plans to switch to 7-bit sequences.
Options:
- (A) 2 more items can be identified.
- (B) 10 more items can be identified.
- (C) 2 times as many items can be identified.
- (D) 10 times as many items can be identified.
Question 5
Context: ASCII character encoding; E.g., 'G' = 71.
Hex Representation: Which letter is represented by hex 56?
Options:
- (A) A
- (B) L
- (C) V
- (D) Y
Question 6
Context: Recording saved at lower quality.
Options:
- (A) Saved using fewer bits per second than the original.
- (B) Saved using more bits per second than the original.
- (C) Saved using a lossless compression technique.
- (D) Some information is lost during saving.
Question 7
Context: Text-editing application; 200 different characters.
Question: Minimum bits needed for unique sequences?
Options:
- (A) 4
- (B) 6
- (C) 7
- (D) 8
Question 8
Context: Color 'indigo' represented by RGB triplet (75, 0, 130).
Question: What is the binary representation?
Options:
- (A) (00100101, 00000000, 10000010)
- (B) (00100101, 00000000, 01000001)
- (C) (01001011, 00000000, 10000010)
- (D) (01001011, 00000000, 01000001)
Question 9
Context: RGB triplet (11111111, 11111111, 11110000).
Question: What color does it represent?
Options:
- (A) Ivory
- (B) Light yellow
- (C) Neutral gray
- (D) Vivid yellow
Question 10
Context: Video game character can face 4 directions.
Question: How to store 8 new directions?
Options:
- (A) 4 bits insufficient; 5 bits needed.
- (B) 4 bits insufficient; 8 bits needed.
- (C) 4 bits insufficient; 16 bits needed.
- (D) 4 bits sufficient.
Question 11
Context: Positive integers added; overflow error.
Options:
- (A) Operation considered undecidable.
- (B) The precision is limited due to floating-point constraints.
- (C) Fixed number of bits limited representation beyond maximum.
- (D) Integers approximated leading to rounding errors.
Question 12
Context: Video count fluctuates; displays negative number.
Options:
- (A) Count exceed maximum allowed.
- (B) Rounding error in calculations.
- (C) Software failure due to simultaneous plays.
- (D) Sampling error with digital approximation.
Question 13
Context: Control representation with binary values.
Question: Which control represented by decimal 15?
Options:
- (A) ←
- (B) ↑
- (C) →
- (D) ↓
Question 14
Question: Decimal value for jump control?
Options:
- (A) 3
- (B) 12
- (C) 24
- (D) 48
Question 15
Context: Representation by bits.
Option Choices:
- I. An integer
- II. An alphanumeric character
- III. A machine language instruction.Options:
- (A) I only
- (B) III only
- (C) I and II only
- (D) I, II, and III
Question 16
Statements about data representation:
- I. Binary represents strings of characters.
- II. Represents colors.
- III. Represents audio recordings.Options:
- (A) I only
- (B) I and II only
- (C) II and III only
- (D) I, II, and III
Question 17
Context: Binary values 0011, 0110, 1111.
Question: Which is NOT equal to these values?
Options:
- (A) 3
- (B) 6
- (C) 9
- (D) 15
Question 18
Context: Analog audio signal representation.
Options:
- (A) Measured as input parameters as variables.
- (B) Measured at intervals; each sample is a sequence of bits.
- (C) Measured as operations for sound reproduction.
- (D) Measured as text describing attributes.
Question 19
Context: Runner's position as analog data.
Options:
- (A) Determined via time differences and average speed.
- (B) Measured and rounded as closer to start or finish.
- (C) Predicted using previous performance data.
- (D) Sampled at intervals with bits representing each sample.
Question 20
Context: Transformation of a binary number by appending three 0s.
Options:
- (A) Transformed number is 3 times original.
- (B) Transformed number is 4 times original.
- (C) Transformed number is 8 times original.
- (D) Transformed number is 1,000 times original.
Question 21
Context: IPv4 vs. IPv6
Options:
- (A) 4 times as many addresses available.
- (B) 96 times as many addresses available.
- (C) A certain number of times as many addresses available.
- (D) A certain number of times as many addresses available.
Question 22
Context: Student ID number in binary.
Question: What number is assigned to the next student?
Options:
- (A) 1001 0100
- (B) 1001 0111
- (C) 1101 0100
- (D) 1101 0111
Question 23
Context: Minimum bits required for 75 to 100 items.
Options:
- (A) 5
- (B) 6
- (C) 7
- (D) 8
Question 24
Context: Values to compare: Binary 1011, Binary 1101, Decimal 5, Decimal 12.
Options:
- (A) Decimal 5, binary 1011, decimal 12, binary 1101.
- (B) Decimal 5, decimal 12, binary 1011, binary 1101.
- (C) Decimal 5, binary 1011, binary 1101, decimal 12.
- (D) Binary 1011, binary 1101, decimal 5, decimal 12.
Question 25
Context: Use of constants in programming.
Statements:
- I. Represent pi as 3.14.
- II. Represent the score in a game.
- III. Represent number of days in a week.Options:
- (A) I and II only.
- (B) I and III only.
- (C) II and III only.
- (D) I, II, and III.
Question 26
Context: Customer account balances; imprecise values.
Options:
- (A) Fixed bits lead to overflow errors.
- (B) Fixed bits lead to round-off errors.
- (C) Unlimited bits lead to overflow errors.
- (D) Unlimited bits lead to round-off errors.
Question 27
Context: Assigning sequences to 100 staff members.
Options:
- (A) 5
- (B) 6
- (C) 7
- (D) 8
Question 28
Context: Representable via a single binary digit.
Options:
- (A) Position of minute hand.
- (B) Remainder from dividing a whole number by 2.
- (C) Value of a Boolean variable.
- (D) Volume of car radio.
Conclusion
The problem sets explore various computer science concepts, particularly focusing on representations in binary, ASCII values, overflow errors, and the minimum bits needed for specific applications.