Second Midterm Exam Samples

Sample Short Answer Questions

1. Explain how to set up and launch a thread.

2. What is a lock? What benefit does it provide?

3. Explain how to use a Socket to communicate over the network with another application.

4. Explain how a server application uses threads and sockets to carry on a conversation with multiple clients.

5. What is a protocol? How does it help you design and implement network applications?

6. How do you use JDBC to establish a connection to a relational database management system?

7. Explain how you would use a Statement object to send a query to a database. How do you process the results of the query?

8. What is a PreparedStatement? How do you use it?

9. Be prepared to explain how to use the SQL insert, delete, update, and select statements.

10. Explain how to set up a form in HTML.

11. Explain how to use a servlet to process a form request.

Design Exercise

Be prepared to design tables for a simple SQL application.