Visit : Civildatas.blogspot.in

www.universityquestions.in DEPARTMENT OF COMPUTER APPLICATIONS BRANCH: MCA SEMESTER : IV SUBJECT CODE & TITLE: MC7404 NETWORK PROGRAMMING QUESTION BANK UNIT –I PART A

Ci

vil

da

tas

.bl

og

sp o

t.in

1. What is meant by Shell in Unix? 2. What is Program and Process in Unix? 3. Give the memory layout of a C program. 4. Explain environment variables in Unix 5. State the use of setjmp ( ) and longjmp( ) functions? 6. Give the syntax for getrlimit( ) and setrlimit( ) functions. 7. Explain ProcessID 0 , ProcessID 1 and ProcessID2 8. Explain fork( ) function in Unix 9. Explain race condition 10. state the difference between fork( ) and exec( ) functions 11. Explain session in Unix 12. What is signal in Unix 13. List the three different things that we can tell the kernel to do when a signal occurs 14. Explain signal function with syntax 15. What is unreliable signals? 16. What is interrupted system call? 17. What happens when the sticky bit of executable program is set? [NOV 2009 & MAY 2010] 18. How is vfork() different from fork()? [MAY 2010] 19. How can a process obtain its saved set-user-ID? [MAY 2010] 20. What are the limitations of pipes? [MAY 2010] 21. What are the steps involved in obtaining a shared resource by a process? [NOV 2009 & MAY 2010] 22. How is a system call different from Library function? [NOV 2009] 23. What are the fields present in the environment list? [NOV 2009] 24. How can a process obtain its saved set-user-ID? [NOV 2009] 25. What are the limitations of pipes? [NOV 2009] 26. What is named pipe? [NOV 2011] 27. What is a semaphore? [NOV 2011] 28. Give the TCP header format.

www.universityquestions.in Visit : Civildatas.blogspot.in

Visit : Civildatas.blogspot.in

www.universityquestions.in PART B

Ci

vil

da

tas

.bl

og

sp o

t.in

1) Explain the following i. Process termination (4 Marks) ii. exit functions with diagram showing the start and termination of a C Program (12 Marks) 2) Write short notes on i. Memory Layout of a C program (10 Marks) ii. Shared Libraries (6 Marks) 3) Explain environment variables and related functions in UNIX 4) Explain setjmp() and longjmp() function in UNIX with syntax and example 5) Explain fork() and vfork() function with syntax 6) Explain the following a. wait() with syntax b. waitpid() with syntax c. Race Conditions 7) Explain exec() functions with syntax. 8) Explain the terminal logins and network logins in UNIX with diagram 9) Explain the following a. Process group b. Sessions 10) Explain signal sets and associated functions with syntax 11) Explain the following with syntax a. kill() and raise() functions b. alarm() and pause() functions 12) Explain the following functions a. sigprocmask() b. sigpending() c. sigaction() d. sigsuspend() 13) Explain the following with the related functions a. Pipes in UNIX (12 Marks) b. CoProcesses in UNIX (4 Marks) 14) Explain the following with the related functions a. FIFO in UNIX b. Message Queues 15) Explain the following with the related functions and structures a. Semaphores b. Shared Memory 16) Explain the TCP client-server communication with neat TCP state transition diagram

www.universityquestions.in Visit : Civildatas.blogspot.in

Visit : Civildatas.blogspot.in

www.universityquestions.in UNIT II

[NOV 2011] [NOV 2011]

og

sp o

t.in

PART A 1. what is a socket in TCP communication 2. What are the byte ordering functions? 3. Give the IPv4 internet socket address structure 4. List out various address conversion functions 5. What is meant by well known ports? Page 50 6. What is meant by registered ports? Page 50 7. What is meant by dynamic or private ports? Page 50 8. Explain the value result arguments 9. List out the byte manipulation functions with syntax 10. Explain socket function with syntax 11. Explain connect function with syntax 12. Explain bind function with syntax 13. Explain listen function with syntax 14. Explain accept function with syntax 15. Explain close function with syntax 16. Explain incomplete connection queue 17. Explain completed connection queue

.bl

PART B

Ci

vil

da

tas

1. Explain internet socket address structures IPv4 and IPv6 2. Explain address the various address conversion functions with syntax 3. Compare various socket address structures with help of neat diagram 4. Explain with function call sequence in TCP Client/Server communication with a neat diagram. 5. Explain concurrent server implementation with necessary coding 6. Write short notes on the following with syntax i. Socket() 8 Marks ii. Bind() 8 Marks 7. Write short notes on the following with syntax i. Listen() 8 Marks ii. Accept() 8 Marks 8. Write short notes on the following with syntax i. Connect() 8 Marks ii. Close() 8 Marks 9. Write short notes on the following with syntax i. Readn() 6 Marks ii. Written() 6 Marks iii. Readline() 4 Marks

www.universityquestions.in Visit : Civildatas.blogspot.in

Visit : Civildatas.blogspot.in

www.universityquestions.in

da

tas

.bl

og

sp o

t.in

UNIT III PART A 1. Give the block diagram for simple TCP echo client and server communication 2. What is meant by zombie state of a process? 3. Write the coding for sig_chld function to handle the SIGCHLD signal in order to prevent zombie 4. Mention any two uses of I/O Multiplexing in networking applications 5. What is meant by I/O multiplexing? 6. Explain the difference between termination of server process and crashing of server host 7. What are steps performed by a TCP echo server. 8. What is meant by server process? 9. What is meant by server host? 10. List out the various I/O models 11. Give the distinct phases for an input operation on a socket 12. Draw the diagram for blocking I/O model 13. Draw the diagram for non blocking I/O model 14. Draw the diagram for I/O multiplexing 15. Draw the diagram for Signal Driven I/O model 16. Draw the diagram for asynchronous I/O model 17. What is the purpose of select() function? 18. Write the syntax of select() function 19. List out the function’s/macro’s the operate on fd_set descriptor set 20. Explain shutdown() function with syntax 21. Give the difference between close() and shutdown() functions. 22. Explain pselect() function with syntax 23. Give the syntax of poll() function with syntax and structure.

Ci

vil

PART B 1. Write a C program to implement a TCP echo server and explain the steps involved 2. Write a C program to implement a TCP echo client and explain the steps involved. 3. Write short notes on i. POSIX signal handling 8 Marks ii. Signal function that calls the POSIX sigaction function. 8 Marks 4. i) Explain the signal function with syntax 8 Marks ii) Write a SIGCHLD signal handler that calls wait() and explain 8 Marks 5. i. Explain the difference between wait() and waitpid() with diagram 8 Marks ii. Write a SIGCHLD signal handler that calls waitpid() and explain 8 Marks 6. Explain the steps involved when server process terminates 7. Explain the following i. Steps involved in crashing of server host 8 Marks ii. Steps involved in crashing and rebooting of server host 8 Marks 8. Explain the following with necessary diagram i. Blocking I/O 8 Marks

www.universityquestions.in Visit : Civildatas.blogspot.in

Visit : Civildatas.blogspot.in

www.universityquestions.in

t.in

ii. Non Blocking I/O 8 Marks 9. Explain the following with necessary diagram i. I/O Multiplexing 6 Marks ii. Signal driven I/O 6 Marks iii. Asynchronous I/O 4 Marks 10. With help of a neat diagram make a comparison of various I/O models and explain. 11. Explain the following with syntax i. Select() function 8 Marks ii. Pselect() function 8 Marks 12. Explain the following with syntax i. Shutdown() function 8 Marks ii. Poll() function 8 Marks 13. Write a C function for TCP client that handles EOF correctly 14. Write a C program for TCP server using poll() function.

Ci

vil

da

tas

.bl

og

sp o

UNIT- IV PART A 1. Give the syntax of getsockopt and setsockopt functions 2. Name the two socket options for TCP [NOV/DEC 2011] 3. What is the use of SO_BROADCAST option? [NOV/DEC 2009] 4. What is the use of SO_KEEPALIVE option 5. Explain Nagles algorithm 6. Write the following functions with syntax a. i) recvfrom() ii) sendto() 7. Give the expansion for i) DNS ii) FQDN 8. What is the use of DNS? 9. What is meant by resource records? 10. List out the various types of resource records 11. Explain i) A record ii) AAAA record 12. Explain i) PTR record ii) MX record 13. Draw a block diagram for typical arrangement of clients, resolvers and name servers 14. Explain gethostbyname() function with syntax 15. Explain gethostbyaddr() function with syntax 16. Explain getservbyname() function with syntax 17. Explain getservbyport() function with syntax 18. Explain getaddrinfo() function with syntax PART B 1. Discuss in detail about the socket options available for the stream sockets and datagram sockets (Ans: Explain about the TCP Socket Options and Generic Socket Options) [NOV/DEC 2011] 2. Explain generic socket options in detail 3. Explain the following i) getsockopt() and setsockopt() with syntax (8 Marks) ii) ICMP socket option (4 Marks) iii) TCP socket option (4 Marks) 4. Design and develop an echo Client/Server system using UDP sockets [Nov/Dec 2011] 5. Write short notes on i) DNS (4 Marks) ii) Resource Records (8 Marks)

www.universityquestions.in Visit : Civildatas.blogspot.in

Visit : Civildatas.blogspot.in

www.universityquestions.in

iii) Resolvers and Name servers (4 Marks) 6. Write short notes on i) Resolvers and Name server (4 Marks) ii) gethostbyname() (8 Marks) iii) gethostbyaddr() (4 Marks) 7. Write short notes on i) getservbyname() (8 Marks) ii) getservbyport() (8 Marks) 8. Explain getaddrinfo() function with syntax and structures. 9. Write a C program to implement a server that handles TCP and UDP using multiplexing and Explain

vil

da

tas

.bl

og

sp o

t.in

UNIT – V PART – A 1. List out the drawbacks in using a child process (created by fork) to handle the clients 2. What is a thread? 3. What are the advantages of thread? 4. What is the comparative advantage of using threads over child processes? 5. List out the entities that are shared by all threads within a process 6. List out the entities that are unique for each thread 7. Write the function to create a thread with syntax 8. Write the function for making a thread joinable with syntax 9. Write the function to get a thread ID of a thread with syntax 10. Write the syntax for the detach a thread with syntax 11. Write the syntax for terminating a thread 12. Write the two functions related to mutex with syntax 13. Write any two functions related to condition variable 14. What is the use of raw socket? 15. What are the packets that a process can read with raw socket? 16. Write the socket function to create raw socket 17. What is the use of ping program? 18. What is the use of trace route program? 19. Draw a diagram to show IPv6 Server on dual stack host serving IPv4 and IPv6 clients. 20. Give the format of ICMPv4 and ICMPv6 echo request and echo reply message. 21. Draw a diagram to give the overview of the functions in the ping program.

Ci

Part B 1. Write short notes on IPv4 and IPv6 interoperability 2. Explain the dual stack host with IPv6 Server that handle both IPv4 and IPv6 clients with a neat diagram 3. Explain the processing of received IPv4 or IPv6 datagram’s (by IPv6 Server) depending on type of receiving socket with neat diagram 4. Explain the processing of IPv6 Client, depending on address type and socket type 5. Explain the following i) Drawback of using child processes to handle the client request. (4 Marks) ii) Advantage of using thread instead of child processes (4 Marks) iii) Entities shared by threads of same processes (4 Marks) iv) Entities that are unique to each thread (4 Marks) 6. Explain various functions related to threads 7. Write a program to implement TCP echo server using threads and explain 8. Write short notes on i) Mutexes with related functions ii) Condition variables and related functions 9. Write a C program to implement PING command 10. Write a traceroute program using C 

www.universityquestions.in Visit : Civildatas.blogspot.in

MC7404-Network Programming question bank_edited.pdf ...

1. What is meant by Shell in Unix? 2. What is Program and Process in Unix? 3. Give the memory layout of a C program. 4. Explain environment variables in Unix.

125KB Sizes 13 Downloads 222 Views

Recommend Documents

The Question Behind the Question
PDF online, PDF new QBQ! The Question Behind the Question: Practicing Personal Accountability at Work and in Life, Online PDF QBQ! The Question Behind ...

Great Question! Question Quality in Community Q&A - Semantic Scholar
a proxy for the popularity of the question in the community, may not be a faithful reflection of ... Proceedings of the Eighth International AAAI Conference on Weblogs and Social Media. 426 ... able in most CQA sites, and our methods do not rely on .

Question-answer topic model for question retrieval in ...
"plus" way4 (PLSA_qa) with the traditional topic model PLSA [6]. We use folding-in ... TransLM significantly outperforms Trans (row 2 vs. row 3). The results are ...

UPPSC PCS mains Exam Geography Question paper 1 and question ...
UPPSC PCS mains Exam Geography Question paper 1 and question paper 2 downloaded.pdf. UPPSC PCS mains Exam Geography Question paper 1 and ...

Question -
data work.accounting; .... Which program displays a listing of all data sets in the SASUSER library? ... else if producttype = 'SOFTWARE' then output SOFT; run;.

QUESTION BANK.pdf
Will the remainder glow brighter or dimmer? What will be the effect on the source? (HOTS). 10. What is a short circuit? Give two ways to protect against short circuits. SHORT ANSWER QUESTIONS (2 MARKS). 1. A wire of resistance 10ohm is bent in the fo

Question 1
If wt and rt are the wage rate and the rental rate on business capital, respectively, the budget constraint is given by: cmt + kmt+1 + kht+1 ≤ wtnmt + rtkmt + (1 − δm) kmt + (1 − δh) kht. (1). The rate of transformation between business and h

MODEL QUESTION PAPER
28) Verify Euler's formula for the given network. 29) In ∆leABC, PQ II BC. AP = 3 cm, AR = 4.5 cm,. AQ = 6 cm, AB ... A motor boat whose speed is 15km/hr in still water goes 30 km down stream and comes back in a total of a 4 hours 30 minutes. Deter

Question 1
... Ohio State University. 8723 Macroeconomic Theory IIA. Spring 2016. Assignment 1, due January 25, 2016. Assignment 1- SUGGESTED ANSWERS. Question 1. Notice the production function is homogenous of degree one in its first two arguments, the profit

Timestamp Untitled Question Sample Question 2 What is you favorite ...
Oct 27, 2010 - A scary person. A special meal. I stay with friends at home. YES. YES. YES. Scary enough. Pig. Pig. 10/28/2010 10:30:46 Option 1. Hey Cedric!!

Timestamp Sample Question 1 Sample Question 2 Check sessions ...
Page 1. Timestamp. Sample Question. 1. Sample Question. 2. Check sessions you are interested in attending. Your name: Your email address:

QUESTION PAPERS.pdf
Whoops! There was a problem loading more pages. Retrying... QUESTION PAPERS.pdf. QUESTION PAPERS.pdf. Open. Extract. Open with. Sign In. Main menu.

Question Paper
9) Fill the answer book number and put signature in the attendance book which the invigilator will bring to you. ... copy (Green Colour) of the OMR to the candidate which they can carry. The candidate should not ... In order to keep you uncomfortable

Question -
data work.accounting; set work.dept1 work.dept2; .... R18KY21.29 SOFTWARE 25 5. 3KL8BY 6.37 ... else if producttype = 'SOFTWARE' then output SOFT; run;.

Question Bank
UNIT-1: Electronic Components and Signals. Short questions: 1 Define: a) Amplitude b) Frequency c) Wavelength d) waveform e) phase. 2.Draw the symbol of any four semiconductor. 3.Draw the voltage source and current source. 4.Draw different types of w

Question 1
The Ohio State University. 8723 Macroeconomic Theory IIA. Spring 2016. Assignment 2, due February 10, 2016. Question 1. Consider a representative agent economy in which the household's prefer- ences are given by. ∞. ∑ t=0. (1 + ρ). −t. U (ct)

question bag.pdf
O6)O1 iO'he6)(11). (103ifLX/0O61J- 6)131. 439.(M,Ja( rn31(D3 06flJOWo c'4)(TT) C1'OJ8DCJ. 636)c1 (03(3o ii1flU)1- (tfl(08. inoj3. (01,W(T$1cB 107)6)5 J1(0) ...

Question Words.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Question Words.

Question 1
The Ohio State University. 8723 Macroeconomic Theory IIA. Spring 2016. Assignment 4, due February 26, 2016. Question 1. Consider the following model economy composed of firms, households and a government, which live for two periods. Households and fi

Model Question Paper
Choose the best alternative and write the letter of the alphabet and the answer in the space provided ... 5) Pepe preferred the company of Columbus to other seamen because ... d) People walk & drive vehicles on it. .... It was hard on him. So,.

Computer Question Bank - BankExamsToday
c) Web design d) Database management e) None of these. 16. Fourth generation mobile technology provides enhanced capabilities allowing the transfer of both.