CS501 Final term Past Papers important solve Question

CS501 Final term Past Papers important solve Question   diff bow serial and parallel transfer Answer:  (Page 396) Serial Transfer, or se...

CS501 Final term Past Papers important solve Question



 diff bow serial and parallel transfer

Answer:

 (Page 396)
Serial Transfer, or serial communication of data between the CPU and the I/O devices, refers to the situation when all the data bits in a "piece of information", (which is a byte or word mostly), are transferred one bit at a time, over a single pair of wires.
Parallel Transfer, or parallel communication of data between the CPU and the I/O devices, refers to the situation when all the bits of data (8 or 16 usually), are transferred over separate lines simultaneously, or in parallel.
configuration of 1x8 memory
Answer:

 (Page 351)
Consider a 4-way set-associative cache with 256KB capacity and 32-byte lines
a) How many sets are there in the cache?
b) How many bits of address are required to select a set-in cache?

5)
difference bow connection oriented and connection less
Answer:

 (Page 394)
Connection Oriented Communication • In this method, same path is always taken for the transfer of messages. • It reserves the bandwidth until the transfer is complete. So, no other server could use that path until it becomes free. • Telephone exchange and circuit switching is the example of connection-oriented communication.
Connection less Communication • Here message is divided into packets with each packet having destination address. • Each packet can take different path and reach the destination from any route by looking at its address. • Postal system and packet switching are examples of connection less communication.
21
compare 1D AND 2D
Answer:

 (Page 351)
write RTL for five instructions
move R3,45
In R3,57
OUT R6 15
RET R3
ANDI R5, R4. 5
Answer:

 (Page 93)
move R3,45 R [3] ← 56
In R3,57 R [3] ← IO [57]
OUT R6 15 IO [16] ← R [6]
RET R3 PC ← R [3]
ANDI R5, R4. 5 R [5] ← R [4] & 5
22

Differentiate b/w RISC n CISC according to their instruction size and hardware, software? 5 marks.
Answer:

 Click here for detail
CISC RISC Emphasis on hardware Emphasis on Software Include multi-clock Include Single-clock complex instructions Reduced instructions only memory to memory: Registers to Register: "LOAD" and "STORE “incorporated in instructions "LOAD" and "STORE “are independent instructions Small code sizes Large code sizes high cycles per second Low cycles per second Transistors used for storing Spend more transistors on memory registers
23
A hard disk with 5 platters has 1024 tracks per platter,512 sectors per track and 512 bytes/sector. What
is the total capacity of the disk? 5 marks.
Answer:

 (Page 324) 512 bytes x 512 sectors=0.2MB/track 0.2MB x 1024 tracks=0.2GB/platter Therefore the hard disk has the total capacity of 5 x 0.2=1GB
What is the function of Control unit? 3 marks.

What is the difference between control unit n data path? 2 mark
Answer:

 (Page 150) The data path design involves decisions like the placement and interconnection of various registers, the type of flip-flops to be used and the number and kind of the interconnection buses. The control unit design is a rather tricky process as it involves timing and synchronization issues besides the usual combinational logic used in the data path design.
What is the working of DMA controller? 5 marks
Answer:

 (Page 314) A DMA controller could be a CPU in itself and it could control the total activity and synchronize the transfer of data”. DMA could be considered as a technique of transferring data from I/O to memory and from memory to I/O without the intervention of the CPU. The CPU just sets up an I/O module or a memory subsystem, so that it passes control and the data could be passed on from I/O to memory or from memory to I/O or within the memory from one subsystem to another subsystem without interaction of the CPU. After this data transfer is complete, the control is passed from I/O back to the CPU.
Define 64K x 1 static RAM chip? 5 marks.
Answer:

 (Page 352)
24

Format of the 1-Address instruction set-----2 Marks
Answer:

 (Page 35)
What attributes should have a device to qualify in order to be master device ---- 2 Marks
Answer:

 (Page 317) A Master must have the capability to place addresses on the address bus and direct the bus activity during a bus cycle.
A network is suing the Bus topology if we replace the bus with switch what change will be take effects by
this configuration…. 2 Marks

What is ISA explain…. 2 marks
Answer:

 (Page 28) This set of instructions or operations and the resources together form the instruction set architecture (ISA). It is the ISA, which serves as an interface between the program and the functional units of a computer, i.e., through which, the computer’s resources, are accessed and controlled.
Explain the relationship between the Hard disk tracks, cylinders and sectors…3 marks
Answer:

 (Page 323) A hard disk is the most frequently used peripheral device. It consists of a set of platters. Each platter is divided into tracks. The track is subdivided into sectors. To identify each sector, we need to have an address. So, before the actual data, there is a header and this header consisting of few bytes like 10 bytes. Along with header there is a trailer. Every sector has three parts: a header, data section and a trailer.
Explain 1bit half adder function ……3 marks
Answer:

 (Page 339) It takes two 1-bit inputs x and y and as a result, we get a 1-bit sum and a 1-bit carry. This circuit is called a half adder because it does not take care of input carry. In order to take into account, the effect of the input carry, a 1-bit full adder is used which is also shown in the figure. We can add two m-bit numbers by using a circuit which is made by cascading m 1-bit full adders. 25
SRS assembly program for the following expiration.5 Marks
Z = 13(A+B)-32(c-58)
Answer:

 (Page 57) ld. R1, c ; c is a label used for a memory location sub R3, R1, 58 ; R3 contains (c-58) shul R7, R3, 5 ; R7 contains 32(c-58) ld. R4, A ld. R5, B add R6, R4, R5 ; R6 contains (A+B) Notice that the SRC does not have a multiply instruction. We will make use of the fact that multiplication with powers of 2 can be achieved by repeated shift left operations. But in the given example 13 is not directly is a power of 2. So, you need to make it power of 2. 13(A+B) = 8(A+B) + 4 (A+B) + (A+B) Suppose we place A+B in some register say R6. Shel R7, R6, 3; ;8 (A+B) Shel R8, R6, 2; ;4 (A+B) Add R10, R8, R7; ;8 (A+B) + 4 (A+B) Add R11, R6, R10; ;8 (A+B) + 4 (A+B) + (A+B)that is equal to 13((A+B)) sub R12, R7, R11 set R12, z ; store the result in memory location z
Latency of the ram is 30ns , if the time charge is 10ns and data pre change is 3 byte then find the band
width…5 Marks

Compare the 1 x 8-bit Memory (1D) and 4 x 8 Memory (2D) 5 marks
 26

Consider a 64KB direct-mapped cache with a line length of 32 bytes. (5 marks)
a. Determine the number of bits in the address that refer to the byte within a cache line.
b. Determine the number of bits in the address required to select the cache line

Comparisons of FALCON-A and SRC (5 marks)
Answer:

 (Page 272)
Comparisons of the SRC and FALCON-A Examples The FALCON-A and SRC programmed I/O examples discussed are similar with some differences. In the first example discussed for the SRC (i.e. Character output), the control signal responsible for data transfer by the CPU is the ready signal while for FALCON-A Busy (active low) signal is checked. In the second example for the SRC, the instruction set, address width and no. of lines on address is different. Although different techniques have been used to increase the efficiency of the programmed I/O, overheads due to polling cannot be completely eliminated.
How many platters are required for a 40GB disk if there are 1024 bytes/sector, 2048 sectors per track
and 4096 tracks per platter (5)

What is difference between hard disk, cylinder, sector (3 marks)

How to Virtual Memory work? Briefly define? (3 marks)

Differences between RAID2 and RAID 3 (3 marks)

What is Cache? How does it work? (3 marks)
Answer:

 (Page 356) Cache by definition is a place for safe storage and provides the fastest possible storage after the registers. The cache contains a copy of portions of the main memory. When the CPU attempts to read a word from memory, a check is made to determine if the word is in the cache. If so, the word is delivered to the CPU. If not, a block of the main memory, consisting of some fixed number of words, is read into the cache and then the word is delivered to the CPU.
27
Cache Management (2 marks)
Answer:

 (Page 339) To manage the working of the cache, cache control unit is implemented in hardware, which performs all the logic operations on the cache. As data is exchanged in blocks between main memory and cache, four important cache functions need to be defined. Block Placement Strategy Block Identification Block Replacement Write Strategy
What is EPROM (3 marks)
Answer:

 (Page 356) Erasable Programmable Read-only Memory or EPROM chips have quartz windows and by applying ultraviolet light erase the data can be erased from the EPROM. Data can be restored in an EPROM after erasure. EPROMs are more expensive than PROMs and are generally used for prototyping or small-quantity, special purpose work.
What is difference between comma and semi-colon (2 marks)
Answer:

 (Page 8-163) Comma „, ‟ indicates that these two instructions are concurrent and only one of them would execute at a time.
Comments are indicated by a semicolon (;) and can be placed anywhere in the source file. The
FALSIM assembler ignores any text after the semicolon.

1. What is the difference between CPU Register and cache.
Answer?

 Rep
2. How do you refer register in RTL.
Answer?

Rep
3. What are the advantages of RAID?
Answer:

 (Page 329) The main advantage of having an array of disks is that we could have a simultaneous I/O request. Latency could also be reduced. 28
4. Give two advantages of virtual memory.

5. Explain relationship between Hard disk, tracks, cylinders, sectors.

6. Give difference between spatial Locality and Temporal correlation.

7. Write about single server model and give example.
Answer:

 (Page 381) Consider a black box. Suppose it represents an I/O controller. At the input, we have arrival of different tasks. As one task is done, we have a departure at the output. So, in the black box, we have a server. Now if we expand and open-up the black box, we could see that incoming calls are coming into the buffer and the output of the buffer is connected to the server. This is an example of “single server model”.
8. Write structural RTL Call ra, rob.
Answer:

 (Page 165)
10. Difference between Internal and external fragmentation.

11. Give all steps of Integer division algorithm to divide 45 by 5 in 10 base systems.
Answer:

 (Page 343) There are steps of integer division present on page number 343 of course handouts. But none the less I am going to explain its working. Divide 47 decimal with 5 decimals. 47 and 5 is converted into binary 29 47 = 000000 101111 In these the left six bits are the upper half of dividend and the right ones are the lower half of the dividend. 5 = 000101 We use capital “D” for dividend and small “d” for divisor. D = 000000 101111 d = 000101 First we shift left one bit the value of Dividend and add zero. D = 0 000001 011110 d = 000101 (Now we if the result is negative than we append “0” to the quotient and if it is positive than we replace the upper half the dividend with the positive result and append “1” to the quotient.) D = 0 000001 011110 d = 000101 q = 0 The result is negative so we append “0” to the quotient D = 000010 111100 d = 000101 q = 00 The result is again negative so we append “0” to the quotient D = 000101 111000 d = 000101 -------------- = 000000 q = 001 The result is positive so we append “1” to the quotient and replace the result with the upper half of the dividend. Now D = 000000 111000 D = 000001 110000 d = 000101 q = 0010 The result is negative so we append “0” to the quotient 30 D = 000011 100000 d = 000101 q = 00100 The result is again negative so we append “0” to the quotient D = 000111 000000 d = 000101 -------------- = 000010 q = 001001 The result is positive so we append “1” to the quotient. Remainder = 000010 = 2 decimal Quotient = 001001 = 9 decimal

2. An IO system with single disk gets 100 IO requests/sec. Assume the average time for a disk to
service an IO request is 6ms. What is utilization of the IO system? (5)
Answer:

 (Page 382) Time for an I/O request = 6ms =0.006sec Server utilization = 100 x 0.006 = 0.6
3. What are characteristics of D-flip-flop? Draw truth table. (5)
Answer:

 (Page 77) A flip-flop is a bi-stable device, capable of storing one bit of Information. Therefore, flip-flops are used as the building blocks of a computer’s memory as well as CPU registers. There are various types of flip-flops; most common type, the D flip-flop is shown in the figure given. The given truth table for this positive-edge triggered D flip-flop shows that the flip-flop is set (i.e. stores a 1) when the data input is high on the leading (also called the positive) edge of the clock; it is reset (i.e., the flip-flop stores a 0) when the data input is 0 on the leading edge of the clock. The clear input will reset the flip-flop on a low input. 31

COMMENTS

Read More Here ⇙
Read More Here ⇙
Name

ACC,1,Announcements,3,Assignments,17,bif,7,BIF602,1,BIF731,1,BIF732,1,BIF733,1,bio,23,BIO201,1,BIO202,1,BIO203,1,BIO204,1,BIO301,1,BIO302,1,BIO303,1,BIO401,1,BIO502,1,BIO731,1,BIO732,1,BIO733,1,BIO734,1,BNK,6,BNK601,1,BNK603,1,BNK610,1,BNK611,1,BNK612,1,BNK613,1,bt,34,BT101,1,BT102,1,BT301,1,BT302,1,BT404,1,BT406,1,BT501,1,BT503,1,BT504,1,BT603,1,BT605,1,BT731,1,BT732,1,BT733,1,BT734,1,BT735,1,che,3,CHE301,1,Cisco,1,CS,65,cs101,2,CS201,1,CS202,1,CS205,1,CS206,1,CS301,1,CS302,1,CS304,1,CS311,1,CS312,1,CS315,1,CS401,1,CS402,1,CS403,1,CS405,1,CS407,1,CS408,1,CS410,1,CS411,1,CS432,1,CS435,1,cs501,6,CS502,1,CS504,1,CS506,1,CS507,1,CS508,1,cs601,2,CS602,1,CS603,1,CS604,1,CS605,1,CS606,3,CS607,1,CS609,1,CS610,1,CS611,1,CS614,1,CS615,1,CS620,1,CS701,1,CS702,1,CS703,1,CS704,1,CS706,1,CS707,1,CS708,1,CS709,1,CS710,1,CS711,1,CS712,1,CS713,1,CS716,1,CS718,1,CS721,1,CS723,1,CS724,1,CS725,1,CS726,1,Cybersecurity,1,ECO,11,ECO401,1,ECO402,1,ECO403,1,ECO404,2,ECO501,1,ECO601,1,ECO603,1,ECO606,1,ECO615,1,EDU,30,EDU101,1,EDU201,1,EDU301,1,EDU303,1,EDU304,1,EDU305,1,EDU401,1,EDU402,1,EDU403,2,EDU404,1,EDU405,1,EDU406,1,EDU410,1,EDU411,1,EDU430,1,EDU431,1,EDU501,1,EDU505,1,EDU510,1,EDU512,1,EDU515,1,EDU516,1,EDU601,1,EDU602,1,EDU603,1,EDU604,1,EDU654,1,EDU705,1,EDU712,1,ENG,21,ENG001,1,ENG101,1,ENG201,1,ENG301,1,ENG501,1,ENG502,1,ENG503,1,ENG504,1,ENG505,1,ENG506,1,ENG507,1,ENG508,1,ENG509,1,ENG510,1,ENG511,1,ENG512,1,ENG513,1,ENG515,1,ENG516,1,ENG518,1,ENG519,1,ETH,1,ETH202,1,extension,1,FIN,7,FIN611,1,FIN621,1,FIN622,1,FIN623,1,FIN625,1,FIN630,1,FIN701,1,GDB Solution,1,GEN,2,GEN731,1,GEN732. Mahar Waqas,1,grand quiz,20,GSC,2,GSC101,1,GSC201,1,Handouts,1,HRM,6,HRM613,1,HRM617,1,HRM624,1,HRM626,1,HRM627,1,HRM713,1,Important Question,4,ISL,1,isl201,2,IT,1,IT430,1,Mahar Waqas,309,MCD,8,MCD401,1,MCD402,1,MCD403,1,MCD404,1,MCD501,1,MCD502,1,MCD503,1,MCD504,1,MCM,16,MCM101,1,MCM301,1,MCM304,1,MCM310,1,MCM311,1,MCM401,1,MCM404,1,MCM411,1,MCM501,1,MCM511,1,MCM514,1,MCM515,1,MCM516,1,MCM604,1,MCM610,1,Mega files,334,MGM,1,MGMT,15,MGMT611,1,MGMT614,1,MGMT615,1,MGMT617,1,MGMT622,1,MGMT623,1,MGMT625,1,MGMT627,1,MGMT628,1,MGMT629,1,MGMT630,1,MGMT631,1,MGMT715,1,MGMT727,1,MGMT731,1,MGT,19,MGT101,1,MGT111,1,MGT201,1,MGT211,1,MGT301,2,MGT401,1,MGT402,1,MGT404,1,MGT411,1,MGT501,1,MGT502,1,MGT503,1,MGT504,1,MGT510,1,MGT513,1,MGT520,1,MGT522,1,MGT601,1,MGT602,1,MGT603,1,MGT604,1,MGT610,1,MGT611,1,MGT612,1,MGT613,1,MGT621,1,MGT703,1,MGT705,1,MKT,13,MKT501,1,MKT529,1,MKT530,1,MKT603,1,MKT610,1,MKT611,1,MKT621,1,MKT624,1,MKT625,1,MKT626,1,MKT627,1,MKT630,1,Moazz,333,moazz and Mahar Waqas,1,mth,4,MTH Mahar Waqas,24,MTH001,1,MTH100,1,MTH101,1,MTH102,1,MTH201,1,MTH202,1,MTH301,1,MTH302,1,MTH303,1,mth401,2,MTH501,2,MTH601,1,MTH603,1,MTH621,1,MTH622,1,MTH631,1,MTH632,1,MTH633,1,MTH634,1,MTH641,1,MTH701,1,MTH706,1,MTH7123,1,MTH718,1,MTH721,1,PAD,1,PAD603,1,PAK,2,PAK301,1,PAK302,1,past Papers,399,Phy,3,PHY101,1,PHY301,1,Pk,1,PSC,2,PSC201,1,PSC401,1,psy,20,PSY101,1,PSY401,1,PSY403,1,PSY404,1,PSY405,1,PSY406,1,PSY407,1,PSY408,1,PSY409,1,PSY502,1,PSY504,1,PSY510,1,PSY511,1,PSY512,1,PSY513,1,PSY514,1,PSY610,1,PSY631,1,PSY632,1,Quiz Solution,18,screenshot,2,SEC,1,SEC001,1,SOC,8,SOC101,1,SOC301,1,SOC302,1,SOC401,1,SOC402,1,SOC403,1,SOC601,1,SOC603,1,STA,11,STA100,1,STA301,1,STA621,1,STA630,1,STA631,1,STA632,1,STA642,1,STA643,1,STA644,1,STA730,1,URD,1,URD101,1,Video,6,vu,26,vu toolkit,5,Waqar Siddhu,334,zoo,18,ZOO301,1,ZOO502,1,ZOO503,1,ZOO504,2,ZOO505,1,ZOO731,1,
ltr
item
VU Grand Quiz Assignment GDB past Papers exam: CS501 Final term Past Papers important solve Question
CS501 Final term Past Papers important solve Question
VU Grand Quiz Assignment GDB past Papers exam
https://vueducationhub.blogspot.com/2020/09/cs501-final-term-past-papers-important_47.html
https://vueducationhub.blogspot.com/
https://vueducationhub.blogspot.com/
https://vueducationhub.blogspot.com/2020/09/cs501-final-term-past-papers-important_47.html
true
2817428684875374465
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content