{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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

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: a. Construct the encoding for the character sequence: Feb12 (3 marks) F = 1000110 e = 1100101 b = 1100010

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

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

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online