Skip to content
VUBuddy

CS506 Midterm MCQs by VU Topper RM

Web Design and Development PDF 310 KBUpdated 23 Oct 2026
Midterm past paper CS506 Midterm MCQs by VU Topper RM PDF 310 KB
vubuddy.com
Type
Midterm past paper
Course
CS506 Web Design and Development
Size
PDF 310 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 310 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 17. Download the file for all 17 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

All CS506 files →
CS506 Web Design and Development All CS506 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.