AP Computer Science Principles Flashcards: Binary Numbers

Study Binary Numbers in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

AP Computer Science Principles

Binary Numbers

0 mastered0 still learning

0% Complete

QUESTION
1/ 67

Define a nibble in terms of binary numbers.

Tap card or press Space to flip

ANSWER

A nibble is 4 bits. Half a byte, convenient for hex digit representation.

How well did you know it?

Card 1 / 67

What this deck covers

This deck focuses on Binary Numbers, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

All flashcards

Flashcard 1: Define a nibble in terms of binary numbers.

Answer: A nibble is 4 bits. Half a byte, convenient for hex digit representation.

Flashcard 2: What is the binary addition of 1001 + 101?

Answer:

  1. Add column by column: 1001+101=11101001 + 101 = 1110.

Flashcard 3: What is the binary subtraction of 1111 - 1101?

Answer:

  1. Subtract column by column: 11111101=101111 - 1101 = 10.

Flashcard 4: Convert the binary number 1010 to hexadecimal.

Answer: A. Binary 1010 equals decimal 10, which is hex A.

Flashcard 5: What does the binary number 111 equal in octal?

Answer:

  1. Binary 111 equals decimal 7, which is octal 7.

Flashcard 6: What is the binary subtraction of 1101 - 101?

Answer:

  1. Subtract column by column: 1101101=10001101 - 101 = 1000.

Flashcard 7: What does the binary number 1001 equal in octal?

Answer:

  1. Binary 1001 equals decimal 9, which is octal 11.

Flashcard 8: What is the binary equivalent of the decimal number 3?

Answer:

  1. Decimal 3 = 2+1=21+202 + 1 = 2^1 + 2^0, so positions 1 and 0 are set.

Flashcard 9: Define a bit in the context of binary numbers.

Answer: A bit is a binary digit, 0 or 1. The fundamental unit of binary information.

Flashcard 10: How is the number zero represented in binary?

Answer:

  1. Zero has no set bits in any position.

Flashcard 11: What is the binary addition of 110 + 1011?

Answer:

  1. Add column by column with carry: 110+1011=10001110 + 1011 = 10001.

Flashcard 12: Convert the binary number 100 to hexadecimal.

Answer:

  1. Binary 100 equals decimal 4, which is hex 4.

Flashcard 13: What is the binary subtraction of 1010 - 101?

Answer:

  1. Subtract column by column: 1010101=1011010 - 101 = 101.

Flashcard 14: Convert the binary number 100 to hexadecimal.

Answer:

  1. Binary 100 equals decimal 4, which is hex 4.

Flashcard 15: Convert the binary number 1100 to decimal.

Answer:

  1. Binary 1100 = 8+4=23+22=128 + 4 = 2^3 + 2^2 = 12.

Flashcard 16: What does the binary number 1001 equal in octal?

Answer:

  1. Binary 1001 equals decimal 9, which is octal 11.

Flashcard 17: What is the result of binary multiplication: 101 * 11?

Answer:

  1. Binary multiplication: 101×11=5×3=15=1111101 \times 11 = 5 \times 3 = 15 = 1111.

Flashcard 18: What is the binary equivalent of the decimal number 3?

Answer:

  1. Decimal 3 = 2+1=21+202 + 1 = 2^1 + 2^0, so positions 1 and 0 are set.

Flashcard 19: Convert the binary number 111 to decimal.

Answer:

  1. Binary 111 = 4+2+1=22+21+20=74 + 2 + 1 = 2^2 + 2^1 + 2^0 = 7.

Flashcard 20: Convert the decimal number 4 to binary.

Answer:

  1. Decimal 4 = 222^2, so only position 2 is set.

Flashcard 21: Convert the binary number 1101 to decimal.

Answer:

  1. Binary 1101 = 8+4+1=23+22+20=138 + 4 + 1 = 2^3 + 2^2 + 2^0 = 13.

Flashcard 22: Convert the binary number 111 to decimal.

Answer:

  1. Binary 111 = 4+2+1=22+21+20=74 + 2 + 1 = 2^2 + 2^1 + 2^0 = 7.

Flashcard 23: What is the binary subtraction of 1101 - 101?

Answer:

  1. Subtract column by column: 1101101=10001101 - 101 = 1000.

Flashcard 24: What is the binary equivalent of the decimal number 7?

Answer:

  1. Decimal 7 = 4+2+1=22+21+204 + 2 + 1 = 2^2 + 2^1 + 2^0.

Flashcard 25: What is the result of binary multiplication: 10 * 10?

Answer:

  1. Binary multiplication: 10×10=2×2=4=10010 \times 10 = 2 \times 2 = 4 = 100.

Flashcard 26: What is the binary equivalent of the decimal number 7?

Answer:

  1. Decimal 7 = 4+2+1=22+21+204 + 2 + 1 = 2^2 + 2^1 + 2^0.

Flashcard 27: What is the result of binary addition: 1011 + 110?

Answer:

  1. Add column by column with carry: 1011+110=100011011 + 110 = 10001.

Flashcard 28: Define a bit in the context of binary numbers.

Answer: A bit is a binary digit, 0 or 1. The fundamental unit of binary information.

Flashcard 29: How many bits are in a byte?

Answer: 8 bits. Standard computer storage unit containing 8 binary digits.

Flashcard 30: What is the binary subtraction of 1010 - 101?

Answer:

  1. Subtract column by column: 1010101=1011010 - 101 = 101.

Flashcard 31: What is the binary addition of 110 + 1011?

Answer:

  1. Add column by column with carry: 110+1011=10001110 + 1011 = 10001.

Flashcard 32: How many bits are in a byte?

Answer: 8 bits. Standard computer storage unit containing 8 binary digits.

Flashcard 33: What does the binary number 110 equal in octal?

Answer:

  1. Binary 110 equals decimal 6, which is octal 6.

Flashcard 34: Convert the decimal number 15 to binary.

Answer:

  1. Decimal 15 = 8+4+2+18 + 4 + 2 + 1, all four low-order bits set.

Flashcard 35: Define a nibble in terms of binary numbers.

Answer: A nibble is 4 bits. Half a byte, convenient for hex digit representation.

Flashcard 36: What is the result of binary multiplication: 10 * 10?

Answer:

  1. Binary multiplication: 10×10=2×2=4=10010 \times 10 = 2 \times 2 = 4 = 100.

Flashcard 37: What does the binary number 111 equal in octal?

Answer:

  1. Binary 111 equals decimal 7, which is octal 7.

Flashcard 38: What is the result of binary multiplication: 11 * 11?

Answer:

  1. Binary multiplication: 11×11=3×3=9=100111 \times 11 = 3 \times 3 = 9 = 1001.

Flashcard 39: What does the binary number 1111 equal in octal?

Answer:

  1. Binary 1111 equals decimal 15, which is octal 17.

Flashcard 40: Convert the decimal number 4 to binary.

Answer:

  1. Decimal 4 = 222^2, so only position 2 is set.

Flashcard 41: What is the largest number that can be represented with 4 bits?

Answer:

  1. With 4 bits, maximum is 241=161=152^4 - 1 = 16 - 1 = 15.

Flashcard 42: What is the binary equivalent of the decimal number 10?

Answer:

  1. Decimal 10 = 8+2=23+218 + 2 = 2^3 + 2^1, so positions 3 and 1 are set.

Flashcard 43: Convert the decimal number 8 to binary.

Answer:

  1. Decimal 8 = 232^3, so only position 3 is set.

Flashcard 44: What is the binary equivalent of the decimal number 9?

Answer:

  1. Decimal 9 = 8+1=23+208 + 1 = 2^3 + 2^0, so positions 3 and 0 are set.

Flashcard 45: What does the binary number 1111 equal in octal?

Answer:

  1. Binary 1111 equals decimal 15, which is octal 17.

Flashcard 46: Convert the decimal number 6 to binary.

Answer:

  1. Decimal 6 = 4+2=22+214 + 2 = 2^2 + 2^1, so positions 2 and 1 are set.

Flashcard 47: What is the result of binary addition: 1011 + 110?

Answer:

  1. Add column by column with carry: 1011+110=100011011 + 110 = 10001.

Flashcard 48: What is the binary subtraction of 1100 - 101?

Answer:

  1. Subtract column by column with borrowing: 1100101=1111100 - 101 = 111.

Flashcard 49: What is the binary representation of the hexadecimal number F?

Answer:

  1. Hex F equals decimal 15, all four low-order bits set.

Flashcard 50: What is the binary representation of the hexadecimal number A?

Answer:

  1. Hex A equals decimal 10 = 8+2=23+218 + 2 = 2^3 + 2^1.

Flashcard 51: What is the largest number that can be represented with 4 bits?

Answer:

  1. With 4 bits, maximum is 241=161=152^4 - 1 = 16 - 1 = 15.

Flashcard 52: Convert the binary number 1010 to hexadecimal.

Answer: A. Binary 1010 equals decimal 10, which is hex A.

Flashcard 53: What is the binary equivalent of the decimal number 10?

Answer:

  1. Decimal 10 = 8+2=23+218 + 2 = 2^3 + 2^1, so positions 3 and 1 are set.

Flashcard 54: Convert the binary number 101 to hexadecimal.

Answer:

  1. Binary 101 equals decimal 5, which is hex 5.

Flashcard 55: Convert the binary number 1101 to decimal.

Answer:

  1. Binary 1101 = 8+4+1=23+22+20=138 + 4 + 1 = 2^3 + 2^2 + 2^0 = 13.

Flashcard 56: What is the binary subtraction of 1100 - 101?

Answer:

  1. Subtract column by column with borrowing: 1100101=1111100 - 101 = 111.

Flashcard 57: What is the result of binary multiplication: 11 * 11?

Answer:

  1. Binary multiplication: 11×11=3×3=9=100111 \times 11 = 3 \times 3 = 9 = 1001.

Flashcard 58: What is the result of binary multiplication: 101 * 11?

Answer:

  1. Binary multiplication: 101×11=5×3=15=1111101 \times 11 = 5 \times 3 = 15 = 1111.

Flashcard 59: Convert the decimal number 15 to binary.

Answer:

  1. Decimal 15 = 8+4+2+18 + 4 + 2 + 1, all four low-order bits set.

Flashcard 60: Convert the decimal number 6 to binary.

Answer:

  1. Decimal 6 = 4+2=22+214 + 2 = 2^2 + 2^1, so positions 2 and 1 are set.

Flashcard 61: Convert the decimal number 8 to binary.

Answer:

  1. Decimal 8 = 232^3, so only position 3 is set.

Flashcard 62: Convert the binary number 1011 to decimal.

Answer:

  1. Binary 1011 = 8+2+1=23+21+20=118 + 2 + 1 = 2^3 + 2^1 + 2^0 = 11.

Flashcard 63: What does the binary number 110 equal in octal?

Answer:

  1. Binary 110 equals decimal 6, which is octal 6.

Flashcard 64: What is the binary representation of the decimal number 5?

Answer:

  1. Decimal 5 = 4+1=22+204 + 1 = 2^2 + 2^0, so positions 2 and 0 are set.

Flashcard 65: What is the binary addition of 1001 + 101?

Answer:

  1. Add column by column: 1001+101=11101001 + 101 = 1110.

Flashcard 66: Convert the binary number 101 to hexadecimal.

Answer:

  1. Binary 101 equals decimal 5, which is hex 5.

Flashcard 67: What is the binary representation of the hexadecimal number F?

Answer:

  1. Hex F equals decimal 15, all four low-order bits set.