0% found this document useful (0 votes)
7 views3 pages

NP Question Bank

Uploaded by

Gangesh Sawarkar
Copyright
© © All Rights Reserved
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)
7 views3 pages

NP Question Bank

Uploaded by

Gangesh Sawarkar
Copyright
© © All Rights Reserved
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/ 3

Question Bank Theory

Unit -1
Question 1: Identify three examples of application layer protocols commonly used in internet
communication. Provide brief descriptions of each.
Question 2: Explain the key differences between TCP and UDP. How do these differences
impact the reliability of data transmission in network communication?
Question 3: Design a simple program that utilizes time and date routines to display the
current date and time in a programming language of your choice. Provide the code and
explain the logic behind it.
Question 4: Compare and contrast IPv4 and IPv6 address structures. Discuss the advantages
of IPv6 over IPv4 and the implications for the future of internet communication.
Question 5: Assess the effectiveness of the TCP/IP protocol suite in modern networking
environments. Discuss its strengths and weaknesses, and propose any potential improvements
or alternatives.

Unit -2
Question 1: Define the term "Berkeley Sockets" and briefly explain its role in socket
programming. Identify three elementary socket system calls and provide a brief description of
each.
Question 2: Explain the concept of socket addresses in the context of socket programming.
How is an address assigned to a socket, and why is this process essential for communication
between networked systems?
Question 3: Write a Java program that creates a server socket, listens for incoming
connections, and establishes a separate thread to handle each client connection. Provide a
brief explanation of how your program uses Java socket programming and thread
programming concepts.
Question 4: Compare and contrast the select and poll functions in the context of I/O
asynchronous and multiplexing models in socket programming. Discuss scenarios in which
one function might be preferred over the other and why.
Question 5: Assess the significance of using UNIX domain protocols in socket
programming. Provide examples of situations where UNIX domain protocols are more
suitable than traditional network protocols. Discuss any potential advantages or drawbacks
associated with their use.

Unit-3:
Question 1: Provide an overview of the Windows Socket API and explain the concept of the
blocking I/O model. Identify two blocking functions used in Winsock programming and
briefly describe their purposes.
Question 2: Explain the significance of timeouts for blocking I/O in Winsock programming.
How can timeouts be implemented to prevent potential issues with blocking sockets? Provide
a practical example.
Question 3: Write a short code snippet in a language of your choice that demonstrates the use
of a blocking function from the Windows Socket API. Explain the purpose of each function
call in your code.
Question 4: Compare and contrast the programming techniques of different APIs,
highlighting the unique features and advantages of the Windows Socket API. Discuss how the
blocking I/O model may impact the performance of applications using this API.
Question 5: Assess the challenges and issues associated with the use of Dynamic Link
Libraries (DLLs) in Winsock programming. Discuss potential solutions or best practices to
address these challenges. Additionally, explain the role of Java Beans in API development.

UNIT-4
Question 1: Outline the key components of Java network programming, including relevant
packages. Provide a brief explanation of Remote Method Invocation (RMI) and its role in
distributed systems.
Question 2: Give an overview of JavaScript, highlighting its core features and its role in
enhancing the interactivity of web pages. Explain how JavaScript differs from Java in terms
of usage and functionality.
Question 3: Develop a simple CGI (Common Gateway Interface) program in a language of
your choice that receives user input from a web form and processes it. Provide a code snippet
and explain the key steps involved in CGI programming.
Question 4: Compare and contrast the concepts of CORBA (Common Object Request Broker
Architecture) and Component Technology. Discuss their respective architectures and their
applications in web programming.
Question 5: Assess the importance of firewalls and security techniques in web programming.
Explain the role of cryptography in web security, and discuss the significance of digital
signatures in ensuring the integrity and authenticity of web transactions.

UNIT-5
Question 1: Explain the process of creating sockets in client-side programming. Provide a
brief overview of the key steps involved in implementing a generic network client.
Question 2: Discuss the role of the String Tokenizer in client-side programming. How does it
facilitate parsing data, and in what scenarios would you use it? Provide an example to
illustrate its usage.
Question 3: Write a Java code snippet that demonstrates the retrieval of a file from an HTTP
server. Use the URL class to access the file, and explain how the code establishes a
connection and retrieves the file.

Question 4: Outline the steps for creating a server in server-side programming. Discuss the
process of accepting connections from web browsers and explain the importance of this step
in server functionality.

Question 5: Assess the advantages and challenges of adding multithreading to an HTTP


server. Explain how multithreading can improve the server's performance and responsiveness.
Discuss any potential issues that developers should be aware of when implementing
multithreading in server-side programming.

You might also like