CS506 Midterm Past Papers Combined with Pics
- Type
- Midterm past paper
- Course
- CS506 Web Design and Development
- Size
- PDF 541 KB
- 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 1, 2, 3 of 38. Download the file for all 38 pages.
You can ---------to a network using sockets. Read Write
Read/Write
A class that is defined in another class is called ________. Private class Public class
Inner class
Derived class
Which block always execute whether exception occurs or not. Try Block
All of these
2nd phase of java programming Edit Load
Compile
Verify
1st phase of java programming
Edit
Load Compile Verify
3rd phase of java programming Edit
Load
Compile Verify
4th phase of java programming Edit Load Compile
Verify
5th phase of java programming Edit Load
Execute
Verify
Which database allows us to work having closed connection?
Mysql PostgreSQL
SQL
SQLite
Window Adaptor class implements WindowListener interface and provide the definition of all method inside ………………………
WindowListener interface
Inner Class Outer class Window adaptor class
Event handling is _______________ step process
Even handling is _______________ step process
Event handling is _______________ step process One Two
Three
Four
Event handlings steps
Step 1: Create components which can generate events (Event Generators) Step 2: Build component (objects) that can handle events (Event Handlers) Step 3: Register handlers with generators
Which of the following is not the method of ResultSetMetaData class
Previous()
isReadOnly() getColumnDisplay size() getColumnCount()
Java developed in __________ 1990
1995
1997 2000
Which of the following methods are invoked by the AWT to support paint and repaint operations? paint( )
repaint( )
draw() redraw( )
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method Try Block
Throws Block
You must include a ___________ to declare an exception that might be thrown to another method.
try block
throws-clause
Aside from the Scanner class, which of the following classes can be used for text-file file input?
StringTokenizer
Aside from the Scanner class, which of the following class/es can be used for text file input
StringTokenizer
Which of the following statements is true regarding Vectors with no specified base type? A base type is needed, because Java needs to know how to allocate memory.
No base type is needed, because Java will use the Object class as a base type
If a base type is not specified the code will not compile. No base type is needed because Vectors default to storing String objects.
Which method(s) must a serializable class, implement?
It must always implement both readObject and writeObject
It must implement either readObject or writeObject, or both, depending upon the desired behavior No Need to implement any methods
A serializable class must implement the method(s) ........
readObject and writeObject
Either readObject or writeObject, or both, depending upon the desired behavior No need to implement any method None of the given option
Socket is a --------------communication channel between hosts. Uni-directional
Bi-directional
Multi-directional
Which of the following are passed as an argument to the paint () method? A Canvas object
A Graphics object
An Image object A paint object
The code below draws a line. What color is the line? g.setColor(Color.red.green.yellow.red); g.drawLine(0, 0, 100,100); Red Green Yellow
Black
setColor() is a method of ________ object. JPanel JFrame
Graphics
Image
previous() is a method of __________ object. Statement
Related CS506 files
All CS506 files →- CS506 Midterm Solved Objective Papers Preparation Midterm PDF 491 KB
- CS506 Midterm MCQs Set 2 by Waqar Siddhu Midterm PDF 2.9 MB
- CS506 Midterm Solved Paper with References by Waqar Siddhu Midterm ZIP 2.6 MB
- CS506 Midterm Quiz 1 Midterm PDF 10.8 MB
- CS506 Highlighted Handouts Set 2 Highlighted PDF 15.6 MB
- CS506 Solved Grand Quiz 2020 by Sonu Ilyas Quiz PDF 4.5 MB
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.