0% found this document useful (0 votes)
22 views

Question Bank Related To Programs

Uploaded by

Trishala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Question Bank Related To Programs

Uploaded by

Trishala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Question Bank Related to Programs

Socket Programming

1. Send a request to the server from client to send its date. When the request
is reached the server. The server will respond to the client.
2. Read the sent message from the client. The server will read the message
and encode it its format. It will resend the same message by encoding it.
Use encoding procedure as for example: “INDIA” encoded as “JOEJB”.
3. Establish a client-server communication to use port number 2041 as
‘analyze’ port. That is, the client will send a string to local host on this port
number. The server will analyze the string and respond by sending total
number of upper case letters, lower case letters, digits and special symbols
in it.
4. Create a communication between client and server. Client will send a
request on port number 3642 for communication. Then server will ask for
the password. The communication will not be established until the password
is correct. After inputting correct password, the server will send: “Welcome”
and close the communication.
5. Open the socket on server and client sides on port number 4233. The server
will send the data continuously to client until ctrl+c is pressed.
6. Create a echo server on port number 7. That is, when server receives any
data the same data will be sent to the client.
7. Program a simple chatting application on the local host. The communication
will be completed after the server sends message “QUIT”.
8. Transfer a file from server to client. The client will save this file at path
given by the server.
9. Establish the communication of client and server on port 5005. When client
requests the data on this port. Server will respond to it by sending its
inetaddress information. Print this information on the client side.
10.Create a server and two clients on local host. Serve both the clients one by
one by server by establishing the communication.

JDBC
Database: Student_Marks
Columns: Roll, Name, Age, Class, Marks
DSN: Student Entries: 10
Database: NewsPaper
Columns: Serial Number, Newspaper name, Language, Region,
Circulation
DSN: News Entries: 05

Database: Mobile_Company
Columns: mobile Company, Serial Number, Cost, Memory capacity
DSN: Mobile Entries: 06

1. Display all the information of the student whose marks are greater than 70
percent.
2. Delete the information of all the newspapers whose circulation is less than
average of all. Display the database
3. Display the whole information of all the mobiles except their memory
capacity.
8. Sort the information of student database according to ascending order of
ages.
9. Determine total number of mobiles belongs to ‘Nokia’ mobile company.
10. Identify and display the information of all the newspapers in Marathi
published in Nashik region.
11. Identify who has got highest marks and lowest marks in the class.
12. Calculate the average circulation of all the English news papers.
13. Show the information of all the mobiles as per the descending order of
cost.

Servlet

1. Display the server port and protocol number in the browser in bold format.
2. Create a client side HTML web page to input your name from textbox and
display “Hello <your name>” on the servlet after clicking on the “login”
button.
3. Accept your name, father’s name and surname from the textboxes on the
HTML page and display these names in servlet area in sequence.
4. Input any number from the textbox on the HTML page and determine its
hexadecimal equivalent on the servlet.
5. Display the server port and protocol number in the browser in scrolling
from right to left format.
6. Display the information of all the parameters passed from HTML page to
the servlet page.
7. Input three numbers from the textboxes present on the HTML page. After
clicking the button “OK”, all three numbers must get displayed on the
servlet page.
8. Create two textboxes on the HTML page named login and password. After
clicking on the ‘login’ button the servlet will be displayed. It will show ‘login
successful’ upon correct password else ‘authentication failure’ will be
displayed.
9. Create a textbox to input a name from the HTML page and check whether
it matches with the names present in your program’s string array database
or not?
10. Create a textbox and button on HTML page. After giving desired string as
input and clicking on the ‘Submit’ button, any HTML page will displayed on the
servlet.
11. Display the character encoding and content type of your web page on the
servlet. Create its connectivity to the HTML page.
12. Input any number from the textbox on the HTML page and determine
whether that number is odd or even using servlet application.
13. Input three numbers from the textboxes present on the HTML page. After
clicking the button “Go”, the middle number must get displayed on the
servlet page in bigger font.
14. Input any number from the textbox on the HTML page and determine its
binary equivalent on the servlet.
15. Accept your name, father’s name and surname from the textboxes on the
HTML page and display these names in servlet area in upper case format.
18. Write a program to identify how many numbers of times the web page visited
using session tracking.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy