Created 06/19/03; edited: 02/17/08, 02/27/11


QUIZ on Chapter 6

Instructions: For each question, choose the single best answer. Make your choice by clicking on its button. You can change your answers at any time. When the quiz is graded, the correct answers will appear with each question.



1.   How much data does one byte correspond to?

A.   One character.
B.   Two characters.
C.   One floating point number.
D.   One machine instruction.

2.   What is the NUL byte?

A.   a byte that contains all zeros.
B.   a byte that contains all ones.
C.   a byte that contains no bits.
D.   a byte that contains any illegal pattern.

3.   What is the name of the convention that says how bit patterns in a byte represent characters?

A.   ASCII
B.   BCD
C.   CODEX
D.   DOS

4.   What type of file contains only bytes that correspond to printable characters and a small number of control characters?

A.   object
B.   word
C.   unix
D.   text

5.   What do people sometimes call a file that contains bytes that can potentially hold any bit pattern?

A.   ascii file
B.   binary file
C.   code file
D.   text file

6.   How many patterns can be made out of eight bits?

A.   8
B.   128
C.   256
D.   1024

7.   What do the bit patterns in executable files represent?

A.   assembly language
B.   machine instructions
C.   object code
D.   backup data

8.   Could the bit patterns used to represent characters represent other things in other contexts?

A.   Yes - there is no inherent meaning in any bit pattern.
B.   Yes - the codes for characters are different for each type of machine language.
C.   No - you can tell by looking at a bit pattern that it represents a character.
D.   No - the meaning of a bit pattern does not depend on context.

9.   How are upper case letters and lower case letters represented in ASCII?

A.   ASCII does not represent upper case.
B.   ASCII does not represent lower case.
C.   Control characters shift the carriage to upper case when needed.
D.   There are 26 codes for upper case and 26 codes for lower case.

10.   What MIPS assembly language directive asks for a sequence of ASCII encoded bytes followed by a NUL byte?

A.   .text
B.   .source
C.   .asciiz
D.   .nul


Click here