wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Network Programming Quiz Mid 1 2022

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

one of the following applications of the Client and Server Model?

a)

Email

b)

Network Printing

c)

World Wide Web

d)

All the options

2.

TCP groups a number of bytes together______in a packets.

a)

user datagram

b)

datagram

c)

segment

d)

packet

3.

Which of the following mode is used for opening a file in both reading and writing?

a)

O_RDONLY

b)

O_WRONLY

c)

O_RDWR

d)

O_WDR

4.

Which of the following system calls does not return control to the calling point, on termination?

a)

fork

b)

exec

c)

ioctl

d)

longjmp

5.

The following program results in the creation of?

main()

{

if(fork()>0)

sleep(100);

}

a)

an orphan process

b)

a zombie process

c)

a process that executes forever

d)

none of the mentioned

6.

Which is true regarding pipes?

a)

half duplex

b)

full duplex

c)

message boundaries are preserved

d)

unordered data

7.

System V IPC common attributes are

a)

key

b)

id

c)

owner

d)

all of the are correct

8.

Which system call is used to create Sys V message Queue.

a)

msgget()

b)

msgsnd()

c)

msgctl

d)

msgqget()

9.

The persistancy of a FIFO is

a)

process

b)

kernel

c)

file system

d)

none of the mentioned

10.

Which of the following is false with respect to TCP?

a)

Connection-oriented

b)

Process-to-process

c)

Transport layer protocol

d)

Unreliable