SFU - CMPT 150 - Practice Exams - Solutions - Midterm 1 (1041)

SFU - CMPT 150 - Practice Exams - Solutions - Midterm 1 (1041)

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name:_________________________________ Student Number:_______________________ CMPT 150 04-1 : TEST #1 SOLUTION (TEST A) Time: 50 minutes 30 MARKS February 11, 2004 3 Questions 3 Pages A INSTRUCTIONS 1. ALL questions to be answered on the test paper. The backs of pages can be used for rough work. 2. Place your name at the top of each page. No part of the test paper is to be removed from the lecture room. 1. The 7-bit ASCII encoding scheme exhibits the following relationships between codewords: The codeword for any digit can be obtained by adding the BCD encoding of the digit to 0110000 , the codeword for digit zero (0). Assuming the 7-bit binary codewords are in ascending order (i.e., the usual order) then the 26 codewords beginning with 1000001 represent the capital letters "A" to "Z" respectively. The codeword for a small letter can be obtained from the codeword for a capital letter by adding 32 (in binary) to the codeword of the capital letter. From this information, and assuming 7-bit ASCII encoding:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

SFU - CMPT 150 - Practice Exams - Solutions - Midterm 1 (1041)

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online