CS501 Midterm Past Paper Spring 2006
- Type
- Midterm past paper
- Course
- CS501 Advance Computer Architecture
- Size
- PDF 92 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 4, 5 of 5. Download the file for all 5 pages.
CS501-Advance Computer Architecture
Midterm Special 2006
_____________all memory systems are dumb, in that they respond to only two commands: read or write
Virtually Logically Physically None of These
Consider two programs having three types of instructions given as follows: [10]
To access an operand in memory, the CPU must first generate an address, which it then issues to the __________
MEMORY REGISTER An instruction that specifies one operand in memory and one operand in a register would be known as a __________ address instruction.
2-1/2
1-1/2
The data movement instructions ___________ data within the machine and to or from input/output devices
Store
LOAD
MOVE NONE OF ABOVE.
Write short answers to the following questions:
[3 x 5]
a. What is the advantage of a linker in the development of assembly language programs?
Solution:-
The linker:
When developing large programs, different people working at the same time can develop separate modules of functionality. These modules can then be ‘linked’ to form a single module that can be loaded and executed. The modularity of programs, that the linking step in assembly language makes possible, provides the same convenience as it does in higher-level languages; namely abstraction and separation of concerns. Once the functionality of a module has been verified for correctness, it can be re-used in any number of other modules. The programmer can focus on other parts of the program. This is the so-called “modular” approach, or the “top-down” approach.
b. Define term “Single stepping”.
Single stepping and breakpoints that allow the examination of the status of the program and registers at desired points during execution. c. Define term “Type checking”.
High-level languages provide various primitive data types, such as integer, Boolean and a string, that a programmer can use. Type checking provides for the verification of proper usage of these data types. It allows the compiler to determine memory requirements for variables and helping in the detection of bad programming practices. On the other hand, there is generally no provision for type checking at the machine level, and hence, no provision for type checking in assembly language. The machine only sees strings of bits. Instructions interpret the strings as a type, and it is usually limited to signed or unsigned integers and floating point numbers. A given 32-bit word might be an instruction, an integer, a floating-point number, or 4 ASCII characters. It is the task of the compiler writer to determine how high-level language data types will be implemented using the data types available at the machine level, and how type checking will be implemented.
d. Define term “Instruction set”.
Solution:-
Instruction Set
A collection of all possible machine language commands that a computer can understand and execute is called its instruction set. Every processor has its own unique instruction set. Therefore, programs written for one processor will generally not run on another processor. This is quite unlike programs written in higher-level languages, which may be portable. Assembly/machine languages are generally unique to the processors on which they are run, because of the differences in computer architecture. Three ways to list instructions in an instruction set of a computer: by function categories by an alphabetic ordering of mnemonics by an ascending order of op-codes
e. Why computer logic design is different from classical logic design?
The traditional sequential circuit design techniques for a finite state machine are not very practical when it comes to the design of a computer, in spite of the fact that a computer is a finite state machine. The reason is that employing these techniques is much too complex as the computer can assume hundreds of states.
Related CS501 files
All CS501 files →- CS501 Midterm Past Paper Fall 2006 Midterm PDF 131 KB
- CS501 Midterm Solved Paper 2013 Midterm PDF 298 KB
- CS501 Midterm Past Papers Midterm PDF 780 KB
- CS501 Midterm Solved MCQs by Junaid Midterm PDF 846 KB
- CS501 Final Term Highlighted Handouts Set 3 by Masters Highlighted PDF 8 MB
- CS501 Quiz 1 by Smile Quiz PDF 14.1 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.