Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


CS506 Grand Quiz + Mid Term Quiz Fall 2020 Prepartion Material Due Date: 27-12-2020

Dear Students, please share your Current Midterm Paper (Grand Quiz) Fall 2020. This will be helpful for many students who are looking for help/assistance regarding there Grand Quiz.

Let's help each other in Grand Quiz and make vustudents into a better community for VU students.

Just copy text of each MCQ of your Grand Quiz and paste here or save in a MS Word/PDF file and upload in replies.

 

VU Students team will post here Grand quiz about this subject, to help VU Students. Let's discuss here abouth Grand QUIZ, clear your concepts, improve learning and help each other. Good luck 

 

 

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

CS506

View All Featured Discussions

Views: 1488

Replies to This Discussion

#GrandquiCs506 #Cs506Grandquiz #SolvedgrandquizCs506
Cs506 Solved Grand Quiz Fall 2020 |midterm grand Quiz Cs506| Cs506 grand quiz solution|Cs506

CS506 GRAND QUIZ 27 DECEMBER 2020||CURRENT GRAND QUIZ CS506

CS506 Grand Quiz Fall 2020 (Current Midterm Papers)


CS506 Grand Quiz Fall 2020 | 27-12-2020

GRAND QUIZ FALL 2020 OF CS506. CS506 Quiz cs506 solved quiz cs506 solved grand quiz cs506 grand solved quiz fall 2020 cs506 solved grand quiz fall 2020

#CS506GrandQuiz #504GrandQuizSolution #CS506GrandQuizSolution2020
CS506 Grand Quiz Solution File Fall 2020 || CS506 Grand Quiz Solved By Sohail Zubair

#cs506grandquiz
CS506 Grand Quiz Fall 2020 | 100% Correct | 27-12-2020 | Must Watch

#CS506 #GrandQuizSolution #Fall2020
CS506 Grand Quiz Solution Fall 2020 | VU |Web Design and Development

CS506 Grand Quiz Solved fall 2020

#Cs506GrandQuiz #Cs506GrandQuizSolution
Cs506 Grand Quiz Solution 2020 Concept Building

CS506 Web Design and Development Grand Quiz (Current Midterm Papers) Spring 2020


CS506 Grand Quiz Solved Spring 2020

28-06-2020

Credit: MC100405123

CS506- Web Design and Development (Session - 1)

Question No: 1 ( Marks: 1 ) - Please choose one
If we remove static from main then program _
►Program cannot compile
►Program will compile and work properly
►Run time errors
►Exception throws in main

 

Question No: 2 ( Marks: 1 ) - Please choose one
If we remove String array from main then program
►Program cannot compile
►Program will compile and work properly
Run time errors
►Exception throws in main

 

Question No: 3 ( Marks: 1 ) - Please choose
oneJava developed in
►1990
1995
►1997
►2000

CS506- Web Design and Development (Session - 2)

Question No: 1 ( Marks: 1 ) - Please choose one
Which of the following methods are invoked by the AWT to support paint and repaint operations?
► paint( )
► repaint( )
► draw( )
► redraw( )

 

Question No: 2 ( Marks: 1 ) - Please choose one
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
► finally block
► catch block
► throws-clause

 

Question No: 3 ( Marks: 1 ) - Please choose one
Aside from the Scanner class, which of the following classes can be used for text-file file input?
► ObjectInputStream
► BufferedReader
► StringTokenizer
► None of these

 

Question No: 4 ( Marks: 1 ) - Please choose one
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.

 

Question No: 5 ( Marks: 1 ) - Please choose one
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

 

Question No: 6 ( Marks: 1 ) - Please choose one
You can ---------to a network using sockets.
► Read
► Write
 Read/Write (Page 222)
► None of these

 

Question No: 7 ( Marks: 1 ) - Please choose one
Socket is a -------------- communication channel between hosts.
► Uni-directional
► Bi-directional (Page 211)
► Multi-directional
► None of these

 

Question No: 8 ( Marks: 1 ) - Please choose one
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

 

Question No: 9 ( Marks: 1 ) - Please choose one
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

 

Question No: 10 ( Marks: 1 ) - Please choose one
To create DataBaseMetaData object we write following line of code
► DataBaseMetaData db = con.getMeataData(); (Page 177)
► ResultSetMetaData rsmd = rs.getMetaData();
► ResultSetMetaData rsmd = rs.setMetaData();
► DataBaseMetaData db = con.setMeataData();

 

Question No: 11 ( Marks: 1 ) - Please choose one
Event source can have ----------listeners registered on it.
► Single
► Double
► Triple
 Multiple (Page 125)

 

Question No: 12 ( Marks: 1 ) - Please choose one
An abstract class---------------- instantiated.
► Can’t be (Page 96)
► Can be
► Must
► None of these

 

Question No: 13 ( Marks: 1 ) - Please choose one
A defines the way and method of communication between two parties.
► Compiler
 Protocol (Page 242)
► Tool
► Technique

 

Question No: 14 ( Marks: 1 ) - Please choose one
What if the static modifier is removed from the signature of the main method?
► The program does not compile
► The program compiles but does not run
► The program compiles and runs properly
 The program throws an exception on compile time

 

Question No: 15 ( Marks: 1 ) - Please choose one
What if the main method is declared as private?
► The program does not compile…
► The program compiles but does not run
► The program compiles and runs properly
► The program throws an exception on compile time

 

Question No: 16 ( Marks: 1 ) - Please choose one
A member variable or method prefixed by the protected access modifier can be accessed:
► Within the same class
► Within the sub-class
► Within the same package
 All of the above

MIDTERM EXAMINATION
Spring 2020
CS506- Web Design and Development (session-3)

Question No: 1 ( Marks: 1 ) - Please choose one
In Java a final class must be sub-classed before it.
► True
► False

 

Question No: 2 ( Marks: 1 ) - Please choose one
A top level class without any modifier is accessible to
► any class
► any class within the same package
► any class within the same file
► any subclass of this class

 

Question No: 3 ( Marks: 1 ) - Please choose one
A top level class may have only the following access modifier.
► Package
► Private
► Protected
► Public

 

Question No: 4 ( Marks: 1 ) - Please choose one
In Java an abstract class cannot be sub-classed
► True
► False

 

Question No: 5 ( Marks: 1 ) - Please choose one
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
► arr.length
► arr.length – 1
► arr.size – 1
► arr.length()

 

Question No: 6 ( Marks: 1 ) - Please choose one
When recursive method is called to solve a problem, the method actually is capable of solving only the simpler
case(s), or base case(s).
 True
► False

Question No: 7 ( Marks: 1 ) - Please choose one
Which of these are valid declarations for the main method?
► public void main();
► public static void main(String args[]);
► static public void main(String);
► public static int main(String args[]);

 

Question No: 8 ( Marks: 1 ) - Please choose one
Map interface is derived from the Collection interface.
► True
► False

 

Question No: 9 ( Marks: 1 ) - Please choose one
In Java, which of these classes implement the LayoutManager interface?
► RowLayout
► ColumnLayout
► GridBagLayout
► FlowLayoutManager

 

Question No: 10 ( Marks: 1 ) - Please choose one
BorderLayout is the default layout manager for a JFrame’s content pane
► True
► False

 

MIDTERM EXAMINATION
Spring 2020
CS506- Web Design and Development (Session 1)

Question No: 1 ( Marks: 1 ) - Please choose one
You want a class to have access to members of another class in the same package. Which is the most restrictive
access that accomplishes this objective?
► public
► private
► protected
► transient
► default access

Question No: 2 ( Marks: 1 ) - Please choose one
In Java garbage collection is done by
► JVM (Java Virtual Machine)
► Programmer
► Both JVM (Java Virtual Machine)and Programmer
► OS (Operating System)
► None of given

 

Question No: 3 ( Marks: 1 ) - Please choose one
Which of following can be thrown using the throw statement?
► Error
► Throwable
 Exception
► RuntimeException
► All of Given

 

Question No: 4 ( Marks: 1 ) - Please choose one
is/are the JSP Implicit Object(s).
► session
► application
► config
► All of Given
► None of Given

 

Question No: 5 ( Marks: 1 ) - Please choose one
JavaBeans are?
► A special Java class file
► Servlets
► Applets
► A Special form of JSP
► None of Given

 

Question No: 6 ( Marks: 1 ) - Please choose one
An expression tag contains a scripting language expression that is evaluated.
► True
► False

 

Question No: 7 ( Marks: 1 ) - Please choose one
A final class can't be extended.
► True
► False

 

Question No: 8 ( Marks: 1 ) - Please choose one
ServletConfig defines a set of methods that a servlet uses to communicate with its servlet container.
► True
► False

 

Question No: 9 ( Marks: 1 ) - Please choose one
A method can not be made final until whole class is made final.
► True
► False

 

Question No: 10 ( Marks: 1 ) - Please choose one
Servlet session and JSP session have different abilities.
► True
► False

 

CS506- Web Design and Development
Some other MCQ’s & quizzes

 

1 - What if the main method is declared as private?
►The program does not compile
The program compiles but does not run
►The program compiles and runs properly
►The program throws an exception on compile time

 

2 - Java program code is compiled into form called
►Machine code
►native Code
Byte Code (Page 16)
►Source Code

 

3 - A top level class without any modifier is accessible to
►any class
any class within the same package
►any class within the same file
►any subclass of this class

 

4 - Overloading is whereas overriding is
► Run time binding, compile time binding
► Late binding, compile time binding
► Compile time binding, run time binding
► Run time binding, late time binding

 

5 - Static methods only access
► instance variable
► instance method
 static variables and methods
► both static and instance members

6 - Which of the following is modifier is provided by default if no access is written explicitly?
► public
► Private
► Protected
► Default

 

7 - A top level class may have only the following access modifier.
► Package
► Private
► Protected
► Public

 

8 - Which of the following is used for inheritance in java?
►implements
►extends
: (colon)
► inherit

 

9 - A collection can store..........
► Homogenous objects
► Heterogeneous objects
► Objects as well as primitive values
► At most 100 objects

 

10 - Which of the following syntax is used to attach an input stream to console?
 FileReader fr = new FileReader(' input.txt ') ; (Page 77)
► FileReader fr = new FileReader(FileDescriptor.in);
► FileReader fr = new FileReader(FileDescriptor);
► FileReader fr = new FileReader(console);

 

11 - Window frame and dialog use as their default layout.
► Border layout
► Flow layout
► GridBag layout
► Grid layout

 

12 - There are types of exceptions in Java
► 2 (Page 72)
► 3
► 4
► 5

 

13 - Which of the following belongs to a category of checked exception?
► Null Pointer exception
► IOException
► Array index out of bounds
► NumberFormatException

 

14 - Which of the following exception belongs to a category of un-checked exception?
► IOException
► Null Pointer exception
► AWTException
► ClassNotFoundException

 

15 - All the exceptions and errors in java are inherited from class.
► Exception
► Error
► Throwable
► IOException

 

16 - Exceptions must be handled while handling files otherwise it may lead to
► Logical error
► Syntax error
► Run-time error (Page 70)
► No error

 

17 - Which of the following package needs to be import while handling files?
► java.util
► java.io
► java.awt
► javax.swing

 

18 - When defining a method you must include a/an........ to declare any exception that might be thrown
but is not caught in the method:
► try block
► finally block
► catch block
► throws clause

 

19 - The classes which contain the word are byte oriented streams.
► Reader
► Writer
► Stream (Page 87)
► Byte

 

20 - Which of the following stream read/write data in the form of bytes?
► FileReader
► FileWriter
► PrintWriter
► FileInputStream (Page 87)

 

21 - An instance of abstract class cannot be created.
► TRUE
► FALSE

 

22 – An abstract class---------------instantiated.
► Cannot be
► Can be
► Must
► None of these

 

23 - The relationship between class and interface is called
► ' Is a ' relationship (Page 98)
► ' Has a ' relationship
► ' Responds to ' relationship
► None of the given options

 

24 - Which of the following is called ' pure abstract class ' ?
► Concrete class
► Wrapper class
► Interface (Page 98)
► Abstract class with no abstract method

 

25 - Which of the following is called ' pure abstract class ' ?
► Concrete class
► Wrapper class
► Interface (Page 98)
► Abstract class with no abstract method

26 - Which of the following is true about abstract class?
► An abstract class must have all methods declared as abstract methods.
► A class must have at least one abstract method to be an abstract class.
► A class without any abstract method can be declared as abstract class.
► An instance of abstract class can be created.

 

27 - Which of the following stream is a filter stream?
► FileWriter
► FileReader
► BufferedReader (Page 91)
► All of given options

 

28 - JPanel and Applet use as their default layout.
► Flow layout
► Border layout
► Grid layout
► GridBag layout

 

29 - Which of the following is true about AWT and SWING components?
► AWT components create a process whereas SWING component creates a thread.
► AWT components create a thread whereas SWING component creates a process.
► Both AWT and SWING component creates a process.
► Both AWT and SWING component creates a thread.

 

30 - BorderLayout is the default layout manager for a JFrame content pane
► TRUE
► FALSE

 

31 - Which of the following is a general purpose container?
► JFrame
► Dialog
► JPanel
► JApplet

 

32 - Border layout divides the area into regions
► 3
► 4
► 5 (Page 113)
► 6

33 - Which of the following function will be used to register event handler with events generator
(button)?
► addAction()
► addActionListener() (Page 123)
► addListener()
► registerListener()

 

34 - Event source can have----------listeners registered on it.
► Single
► Double
► Triple
► Multiple (Page 125)

 

35 - If a class needs to handle events generated by button then which of the following interface a class
needs to implement?
► ComponentListener
► KeyListener
► MouseListener
► ActionListener (Page 122)

 

36 - Which of the following function is declared in MouseMotionListener interface?
► public void mousePressed (MouseEvent me);
 public void mouseDragged (MouseEvent me); (Page 130)
► public void mouseClicked (MouseEvent me);
► public void mouseEntered (MouseEvent me);

 

37 - Window Listener interface contains methods.
► Four
► Six
► Seven (Page 133)
► Eight

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

Latest Activity

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service