Assignment0
Assignment0
Cloud Computing
Assignment- Week 0
TYPE OF QUESTION: MCQ/MSQ
L
Number of questions: 10 Total mark: 10 X 1 = 10
E
QUESTION 1:
T
Which software does prevent external access to a system?
P
a) Firewall
b) Gateway
N
c) Router
d) Virus checker
Correct Answer: (a)
Detailed Solution: A firewall is a network securing software that prevents unauthorized users and
dangerous elements from accessing the network. Software firewall acts as a filter for our network
which prevents harmful information.
QUESTION 2:
Which classes are used for connection-less socket programming?
a) Datagram Socket
b) Datagram Packet
c) Both Datagram Socket & Datagram Packet
d) Server Socket
QUESTION 3:
Which of the following is most appropriate about Threads?
Threads of a process share
a) only global variables.
b) only heap.
c) neither global variables nor heap.
d) both heap and global variables.
QUESTION 4:
What is the maximum number of hosts under class B addresses?
L
a) 65536
b) 65534
E
c) 65535
d) 254
T
Correct Answer: (b)
P
Detailed Solution: In Class B IP address first two octets are used to represent the network number,
which leaves two octets or 16 bits to represent the host portion of the address. With 16 bits total, 2
16
N
combinations are possible, yielding 65,536 Class B addresses. Although two of those numbers, the
lowest and highest values, are reserved for special purposes. Therefore, each Class B address can
support up to 65,534 hosts.
QUESTION 5:
Consider a system with 2 level caches. Access times of Level 1 cache, Level 2 cache, and main
memory are 1 ns, 10ns, and 400 ns, respectively. The hit rates of Level 1 and Level 2 caches are 0.8
and 0.9, respectively. What is the average access time of the system ignoring the search time within
the cache?
a) 12.6 ns
b) 11.2 ns
c) 10.6 ns
d) 12.4 ns
Correct Answer: (c)
Detailed Solution: Average access time = [H1*T1]+[(1-H1)*H2*T2]+[(1-H1)(1-H2)*Hm*Tm]
H1 = Hit rate of level 1 cache = 0.8
T1 = Access time for level 1 cache = 1 ns
H2 = Hit rate of level 2 cache = 0.9
T2 = Access time for level 2 cache = 10 ns
Hm = Hit rate of Main Memory = 1
Tm = Access time for Main Memory = 200 ns
QUESTION 6:
Using a larger block size in a fixed block size file system leads to
a) better disk throughput but poorer disk space utilization
b) better disk throughput and better disk space utilization
c) poorer disk throughput but better disk space utilization
d) poorer disk throughput and poorer disk space utilization
NPTEL Online Certification Courses
L
But it leads to better disk through put since no. of blocks needs to fetch & replace become less.
T E
QUESTION 7:
Transport layer is implemented in the Firmware of a computer system.
P
a) True
b) False
N
Correct Answer: (b)
Detailed Solution: Transport layer is implemented in the kernel.
QUESTION 8:
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
b) 320 Kbits
c) 160 Kbits
d) 120 Kbits
16 bit address
3 bit valid
1 modified
Total bits = 20
20 × no. of blocks
= 320 K bits.
NPTEL Online Certification Courses
QUESTION 9:
Flow control is mainly implemented in
L
a) Physical Layer
E
b) Application Layer
c) Transport Layer
T
d) Session Layer
P
Correct Answer: (c)
Detailed Solution: Flow control is mainly a function of the Transport Layer.
N
QUESTION 10:
Where does the swap space reside ?
a) RAM
b) Disk
c) ROM
d) On-chip cache