# 14 list out the similarities and differences between

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 63 (b) +439 (d) -786 How many bytes are required for each of these representations? 13. Using hexadecimal notation, write the packed-decimal coding for the following numbers: (a) 12915 (c) 872 (b) +9876 (d) -256 How many bytes are required for each of these representations? 14. List out the similarities and differences between 7-bit and 8-bit ASCII. 15. Using binary notation, write the ASCII-7 and ASCII-8 codes for the following words: (a) DRY (c) DAMP (b) WET (d) TERM How many bytes are required for each of these representations? 16. Using hexadecimal notation, write the ASCII-7 and ASCII-8 codes for the following words: (a) PRINT (c) RUB (b) TYPE (d) GIVE How many bytes are required for each of these representations? 17. Explain the meaning of the term &quot;collating sequence&quot;. 18. A computer uses EBCDIC as its internal representation of characters. In which order will this computer sort the following strings? (a) ABC (c) 245 (b) 123 (d) ADD 19. A computer uses ASCII. In which order will this computer sort the following strings? (a) BED (d) 128 (b) 512 (e) BAD . (c) ADD 20. Give the full form of the following abbreviations: (a) BCD (b) EBCDIC (c) ASCII Chapter 5 Computer Arithmetic In Chapter 4 you have seen that computers store numbers, letters, and other characters in coded form that is related to the binary number system. In this chapter you will learn why computers use binary numbers instead of decimal numbers and how the basic arithmetic operations are performed inside the computer using binary numbers. WHY BINARY? You might have observed in Chapter 3 that the use of a smaller base often requires more positions to represent a given value (recall the reason for using octal and hexadecimal notations). For example, 9io = 10012. Here four positions are required instead of one to represent the decimal number 9 in binary form. In spite of this fact, almost all computers use binary numbers. Hence the obvious question that arises is 'Why do we go for binary numbers instead of...
View Full Document

## This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online