Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Viva Quick-Fire: Asked Nearly Every Year

Lesson 11 of 11 in the free Network Programming Lab notes on Siksha Sarovar, written by Rohit Jangra.

Viva Quick-Fire (asked nearly every year)

  1. Why htons() on the port — what happens without it on x86? (U1)
  2. What is a value-result argument? Name three calls that use one. (U1)
  3. Why must the parent close connfd after fork? (U1)
  4. Client behaviour when the server host crashes vs process crashes? (U2)
  5. Why does the UDP echo server need no fork? (U2)
  6. select vs poll — two differences. shutdown vs close — the key one. (U2)
  7. Why is TIME_WAIT 2·MSL, and which end enters it? (U1)
  8. Why must UDP services in inetd use "wait"? (U3)
  9. Why SO_BROADCAST before broadcasting? Describe the SIGALRM/recvfrom race. (U3)
  10. How does traceroute use TTL? Who answers ping when no server runs? (U4)

How to Answer in a Viva

Keep each answer to two sentences: the mechanism, then the consequence. Example for Q1: "htons converts the port to network byte order (big-endian); on a little-endian x86 machine, omitting it makes the program bind/connect to a byte-swapped port number — port 9877 becomes port 38694."