You are on page 1of 2

First Assignment

1. Explain the following briefly.


1) What are registers and explain the task of PC, IR and AC?
2) List and briefly define the four main elements of a computer.
3) In general terms, what are the four distinct actions that a machine instruction can
specify?
4) What is an interrupt and why it is used in computer systems
5) What is the difference between a multiprocessor and a multicore system?
6) What is locality and cache memory? (Operating systems internals and design
principle)
7) How does the distinction between kernel mode and user mode provide mechanism
for OS security?
8) What is DMA and why it is used?
9) What is the kernel of an OS?
10) What is multiprogramming?
11) What is a process?

2. To solve these questions, you should search and find it yourself.


1. What is assembly language? Write an simple assembly program to add two integer
2. Explain the structure of Hard Disk Drive and how does it work in details
3. What is cloud computing?
4. What is Hadoop?
5. What are the open source license type?
3. Solve the following questions (difficult)
1. Suppose the hypothetical processor of slid 13 of Computer System Overview lecture
also has two I/O instructions:
 0011 = Load AC from I/O
 0100 = SUB from AC
 In these cases, the 12-bit address identifies a particular external device.
Show the program execution (Using the mentioned format) for the following
program:
1. Load AC from device 7.
2. SUB from AC contents of memory location 880.
3. Store AC to memory location 881.
4. Assume that the next value retrieved from device 7 is 6 and that
location 880 contains a value of 5.

2. Consider a hypothetical 64-bit microprocessor having 64-bit instructions composed


of two fields. The first 4 bytes contain the opcode, and the remainder an immediate
operand or an operand address.
 What is the maximum directly addressable memory capacity?
4. Optional task (you do it if you wish)
1. Write a menu driven program in java (use switch case) which does the following
 accept file name from user to open
 accept the following options from user performs the action accordingly
o (1) Print (display the file content on screen)
o (2) Lines (count the number of lines in file)
o (3) Words (Count the number of words in file)
o (4) Characters (count the number of char in file)
o (5) Exit (to terminate the file)

You might also like