0% found this document useful (0 votes)
56 views4 pages

Assignment 0 Solution 2024 CC

This document contains 10 multiple choice questions about various computer science topics like firewalls, sockets, threads, IP addresses, caches, file systems, transport layer, and memory. For each question there is a correct answer and a detailed explanation of the answer.

Uploaded by

happyammi2021
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Assignment 0 Solution 2024 CC

This document contains 10 multiple choice questions about various computer science topics like firewalls, sockets, threads, IP addresses, caches, file systems, transport layer, and memory. For each question there is a correct answer and a detailed explanation of the answer.

Uploaded by

happyammi2021
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Cloud Computing
Assignment- Week 0
TYPE OF QUESTION: MCQ/MSQ
Number of questions: 10 Total mark: 10 X 1 = 10

QUESTION 1:
Which software does prevent external access to a system?
a) Firewall
b) Gateway
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

Correct Answer: (c)


Detailed Solution: Datagram is basically some information traveling between the sender and the
receiver, but there is no guarantee of its content, arrival or arrival time. Datagram Socket, Datagram
Packet are used for connection-less socket programming, while Server Socket is used for
connection-oriented socket programming.

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.

Correct Answer: (d)


Detailed Solution: Thread shares all other resources of the process except local data like – register
, stack.
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

QUESTION 4:
What is the maximum number of hosts under class B addresses?
a) 65536
b) 65534
c) 65535
d) 254

Correct Answer: (b)


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

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

Indian Institute of Technology Kharagpur

Correct Answer: (a)


Detailed Solution: Using larger block size in a fixed block size system leads to poor disk space
utilization due to data items which are very small comparable to block size cause fragmentation.
But it leads to better disk through put since no. of blocks needs to fetch & replace become less.

QUESTION 7:
Transport layer is implemented in the Firmware of a computer system.
a) True
b) False

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

Correct Answer: (b)


Detailed Solution: Number of blocks = Cache-Size/Block-Size = 512 KB / 32 Bytes = 214
Number of Sets = 214 / 8 = 211

Tag + Set offset + Byte offset = 32


Tag + 11 + 5 = 32
Tag = 16

16 bit address
3 bit valid
1 modified
Total bits = 20
20 × no. of blocks
= 320 K bits.
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

QUESTION 9:
Flow control is mainly implemented in

a) Physical Layer
b) Application Layer
c) Transport Layer
d) Session Layer

Correct Answer: (c)


Detailed Solution: Flow control is mainly a function of the Transport Layer.

QUESTION 10:
Where does the swap space reside ?

a) RAM
b) Disk
c) ROM
d) On-chip cache

Correct Answer: (b)


Detailed Solution: Swap space is an area on disk that temporarily holds a process memory image.

You might also like