CS506 Midterm Quiz 1 and 2 Updated by Mohsin
- Type
- Midterm past paper
- Course
- CS506 Web Design and Development
- Size
- PDF 6 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 571. Download the file for all 571 pages.
Q1. Vu-Topper RM (1 marks)
How many ports are available for TCP socket?
64k Page 193
Q2. Vu-Topper RM (1 marks)
In Java, ____________ types of statement objects are available for sending SQL queries to the databases. Three Page 140
Q3. Vu-Topper RM (1 marks)
Which of the following statement object is used to execute stored procedures? CallableStatement Page 159
Q4. Vu-Topper RM (1 marks)
If you want the timer to fire only the first time and then stop, invoke
SetRepeats G
Q5. Vu-Topper RM (1 marks)
How many ports are available for UDP socket?
64k Page 193
Q6. Vu-Topper RM (1 marks)
In order to include graphics in your Java program, it is mandatory to extend from- ---------class. JPanel G
Q7. Vu-Topper RM (1 marks)
Which of the following methods is called only once during the life cycle of an Applet?
init( ) Page 184
Q8. Vu-Topper RM (1 marks)
An applet can be defined as: A small program written in java and included in an HTML page G
Q9. Vu-Topper RM (1 marks)
Which of the following methods is used to determine whether a database is read only or not?
isReadOnly() Page 177
Q10. Vu-Topper RM (1 marks)
Timer t = new Timer (1000, this); action events Page 179
Q11. Vu-Topper RM (1 marks)
How many simultaneous connections can be opened using TCP and UDP ports? 128k Page 193
Q12. Vu-Topper RM (1 marks)
There are ________ steps in order to communicate successfully with database. Eight Page 144
Q13. Vu-Topper RM (1 marks)
An applet is typically embedded in a Web page and can be run from a browser. False Page 181
Q14. Vu-Topper RM (1 marks)
In the context of Java Graphics; most of time, painting is done automatically. Java components Page 165
Q15. Vu-Topper RM (1 marks)
If we want to animate something like ball, moving from one place to another, we constantly need to call paint ( ) method. False G
Q16. Vu-Topper RM (1 marks)
In ResultSetMetaData methods, ____________ method returns the suggested column label for printouts. The getColumnLabel() Page 157
Q17. Vu-Topper RM (1 marks)
The server just waits, listening to the socket for a client to make a connection request. Client - Server Communicate Page 193
Q18. Vu-Topper RM (1 marks)
Which of the following methods is invoked by the AWT package to support paint and repaint operations?
paint( ) Page 180
Q19. Vu-Topper RM (1 marks)
Which of the following statement object is used to execute precompiled SQL statements?
PreparedStatement Page 147
Q20. Vu-Topper RM (1 marks)
Which of the following is the correct java code statement that is used to establish the connection?
Connection con = DriverManager.getConnection(url); Page 153
Q21. Vu-Topper RM (1 marks)
Which of the following syntaxe is used to get ResultSetMetaData object? MetaDataEx Page 157
Q22. Vu-Topper RM (1 marks)
FTP (File Transmission Protocol) works on _____________ port. 21 Page 194
Q23. Vu-Topper RM (1 marks)
Exception handling code is written in ______. catch block Page 72
Q24. Vu-Topper RM (1 marks)
The classes which contain the word _____ in their name are byte oriented streams.
Q25. Vu-Topper RM (1 marks)
Which command of the following commands is used to compile “Java Test” java file’s code?
javac JavaTest.java G
Q26. Vu-Topper RM (1 marks)
WindowListener interface contains ________ methods.
Q27. Vu-Topper RM (1 marks)
Java developed in __________ 1995 Page 12
Q28. Vu-Topper RM (1 marks)
You can ---------to a network using sockets. Read/Write Page 222
Q29. Vu-Topper RM (1 marks)
Socket is a --------------communication channel between hosts. Uni-directional Bi-directional Page 211
Related CS506 files
All CS506 files →- CS506 Midterm Solved File 2 by Team Hadi Midterm PDF 4.1 MB
- CS506 Midterm Subjective by Waqar Siddhu Midterm PDF 793 KB
- CS506 Midterm Current Solved Subjective Papers by Sarim Midterm PDF 3 MB
- CS506 Midterm Current Paper Fall 2023 Midterm PDF 4.4 MB
- CS506 Handouts by VUBuddy Handout PDF 6.2 MB
- CS506 Solved Grand Quiz Spring 2021 by Riz Mughal Quiz PDF 912 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.