NPTEL CC Assignment0
NPTEL CC Assignment0
Assignment- Week 0
TYPE OF QUESTION: MSQ
QUESTION 1:
Consider a system with 2 level caches. Access times of Level 1 cache, Level 2 cache, and main
memory are 2 ns, 12 ns, and 120 ns, respectively. The hit rates of Level 1, Level 2 cache, and main
memory are 0.4, 0.6, and 1.0 respectively. What is the average access time of the system ignoring
the search time within the cache?
a) 39.32 ns
b) 33.92 ns
c) 32.93 ns
d) 39.32 ms
Correct Answer: b
QUESTION 2:
Which of the following port can be used by a user defined program?
a) 1002
b) 47021
c) 60535
d) 65564
Correct Answer: c
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detailed Solution: The Internet Assigned Numbers Authority (IANA) and RFC 6335 suggests the
range 49152–65535 for dynamic or private ports. Maximum possible port number is 65535.
QUESTION 3:
The memory locations 5000, 5001 and 5020 have data values 118, 101 and 116 respectively
before the following program is executed.
MOVI R1, 1
STOREI 0(R2), 77
Correct Answer: d
Detailed Solution:
1. R1←1 (Move immediate)
2. R2←[5000+[R1]], ( Load from memory)
R2←5000+1
[5000+1]=101
Thus, value =101 is moved to the register R2
3. R2←101+5000 (Add Immediate)
4. 77 will be stored to 0+5101 (Store immediate)
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 4:
In the above-mentioned data path of a CPU, it is given; all the components of the data path are of
identical sizes. ALU carries out all the operations including the incrementation of PC as well as
GPRs. It needs two clock cycles to complete a memory read operation. For the instruction “add Rs,
Rd”, which of the following statements is correct?
a) At least three clock cycles are needed to complete the execution cycle of the instruction.
b) At least five clock cycles are needed to complete the execution cycle of the instruction.
c) At least two clock cycles are needed to complete the execution cycle of the instruction.
d) At least four clock cycles are needed to complete the execution cycle of the instruction.
Correct Answer: a
QUESTION 5:
The interrupt-request line is a part of the ___________
a. Data line
b. Address line
c. Control line
d. None of these
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Correct Answer: c
Detailed Solution: The Interrupt-request line is a control line along which the device is allowed to
send the interrupt signal.
QUESTION 6:
One of the header fields in an IP datagram is the Time to Live (TTL) field. Which of the following
statements best explains the need for this field?
Correct Answer: d
Detailed Solution: Time to Live can be thought as an upper bound on the time that an IP
datagram can exist in the network. The purpose of the TTL field is to avoid a situation in which an
undeliverable datagram keeps circulating.
QUESTION 7:
Correct Answer: a
Detailed Solution: TCP and UDP are part of transport layer of OSI model whereas FTP is a part of
application layer
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 8:
If a class B network on the Internet has a subnet mask of 255.255.240.0, what is
the maximum number of hosts per subnet?
a) 4096
b) 4094
c) 2046
d) 2048
Correct Answer: b
Detailed Solution: The binary representation of the subnet mask is
1111111.11111111.11110000.00000000. There are 20 bits set in the subnet. So 12 (32-20) bits are
left for host ids. Total possible values of host ids is 2^12 = 4096. Out of these 4096 values, 2
addresses are reserved. The address with all bits as 1 is reserved as broadcast address and
address with all host id bits as 0 is used as the network address of the subnet. In general, the
number of addresses usable for addressing specific hosts in each network is always 2^N – 2 where
N is the number of bits for host id.
QUESTION 9:
In classful addressing, an IP address 244.223.156.41 belongs to _____ format.
a) Class A
b) Class B
c) Class C
d) Class D
Correct Answer: d
Detailed Solution: 0 - 126 = Class A
128 - 191 = Class B
192 - 223 = Class C
224 - 255 = Class D
So ans is D.
QUESTION 10:
A computer’s processor sends 32 bit addresses to the cache controller. It has a 512 KByte, 8-way
set associative, write back data cache with block size of 32 Bytes. In addition to the address tag,
each cache tag directory entry contains 3 valid bits and 1 modified bit. Find the size of the cache
tag directory.
a) 212 Kbits
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
b) 320 Kbits
c) 160 Kbits
d) 120 Kbits
Correct Answer: b
************END***********