Computer Science - 4CP0 PearsonEdexcel

Binary

Overview

A computer's processor only ever switches between two electrical states, and everything it stores or calculates has to be built out of those two states. Numbers, letters, photographs and even the instructions of the program itself are all, deep down, patterns of binary digits.

In this lesson you will learn to convert confidently between binary, denary and hexadecimal, add two binary numbers and recognise when the result overflows an 8-bit register, shift a binary pattern left and right, and represent both positive and negative whole numbers using sign-and-magnitude and two's complement.

Objectives

  1. Understand that computers use binary to represent data (numbers, text, sound, graphics) and program instructions
  2. Understand how computers represent and manipulate numbers (unsigned integers, signed integers (sign and magnitude, two's complement))
  3. Be able to convert between binary and denary whole numbers (0-255)
  4. Understand how to perform binary arithmetic (add, shifts (logical and arithmetic)) and understand the concept of overflow
  5. Understand why hexadecimal notation is used and be able to convert between hexadecimal and binary

Lesson Note

A computer's circuits are built from switches that are only ever fully on or fully off; there is no reliable middle state to detect at high speed. Binary, the base-2 number system using only the digits 0 and 1, maps perfectly onto this: 1 for on, 0 for off. Every kind of data a computer handles, whole numbers, text, sound, images and even the program instructions themselves, is ultimately stored as a pattern of these binary digits (bits), just interpreted differently depending on what it represents.

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Lesson Evaluation

Congratulations on completing the lesson on Binary. Now that youve explored the key concepts and ideas, its time to put your knowledge to the test. This section offers a variety of practice questions designed to reinforce your understanding and help you gauge your grasp of the material.

You will encounter a mix of question types, including multiple-choice questions, short answer questions, and essay questions. Each question is thoughtfully crafted to assess different aspects of your knowledge and critical thinking skills.

Use this evaluation section as an opportunity to reinforce your understanding of the topic and to identify any areas where you may need additional study. Don't be discouraged by any challenges you encounter; instead, view them as opportunities for growth and improvement.

  1. What is the denary value of the 8-bit binary number 00110010? A) 48 B) 50 C) 52 D) 56 Answer: B
  2. How many bits are grouped together to form a single hexadecimal digit? A) 2 B) 3 C) 4 D) 8 Answer: C
  3. An 8-bit unsigned register adds 250 and 10. What happens? A) The result 260 is stored correctly B) Overflow occurs and the stored result is incorrect C) The register automatically becomes 16-bit D) The addition is rejected and nothing is stored Answer: B
  4. Which type of shift copies the sign bit into new positions created by a right shift? A) Logical shift B) Arithmetic shift C) Circular shift D) Hexadecimal shift Answer: B
  5. In two's complement, what does the leftmost bit of an 8-bit number represent? A) A place value of +128 B) A place value of -128 C) Always 0 D) The number of bits used Answer: B

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Practice Mock Questions

Want to practice mock questions on Binary? Download the Green Bridge CBT app to access mock questions and full practice assessments for this topic.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Past Papers Across IGCSE, JAMB, WAEC & NECO
Over 3000 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning