Page 101 - Code Craft Computer-7
P. 101
Binary Representation of Information
Binary code is the fundamental form of the programming data that is directly interpreted by a
computer.
Computers store and processes data and information using binary code in the form of digital 1’s and
Os Inside the (CPU) and RAM. These digital numbers are electrical signals that are either ON (1) or
OFF (0) For example, 5 is stored as 00000101
Binary numbers can be translated into text characters using American Standard Code for
Information Interchange (ASCII) codes to store information in the computer's RAM or CPU. For
example, the binary code for ASCII uppercase A is 1000001.
Extra Bytes
ASCII is made up of 128 symbols in the character set. These symbols consist of letters (both
uppercase and lowercase), numbers, punctuation marks, special characters and control
characters.
Try It Out #Critical Thinking
Look at these binary codes of numbers 1-10.
Number Binary Number Binary
1 0001 6 0110
2 0010 7 0111
3 0011 8 1000
4 0100 9 1001
5 0101 10 1010
Now answer the following in binary digits.
1. Write all the prime numbers between 1 and 10.
_________________________________________________________________________
2. Write all the even numbers between 1 and 10.
_________________________________________________________________________
3. Write the sum of 5 and 4.
_________________________________________________________________________
4. Write all the numbers divisible by 3 between 1 and 10.
_________________________________________________________________________
CONDITIONS IN A PROGRAM
While writing a program, we need to make certain decisions based on the logic of the program.
Such situations are called conditions . Conditional statements are used in a program to instruct the
101

