CS506 Web Design Solved MCQswith Refrence
CS506 Web Design Solved MCQswith Refrence
LION
5 – 3 - 2014
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
1. Java
2. Applet
3. Servlet
4. JSP (Page: 330)
1. Can
2. Can’t
3. Must (Page: 356)
4. Shouldn’t
1. Can
2. Can’t
3. Must
4. Shouldn’t (Page: 356)
1. Java
2. Servlet
3. JSP
4. JSF (page: 409)
1. Java
2. JavaScript
3. Servlet (Page: 412)
4. JSP
1. java.io
2. java.sql (Page: 149)
3. java.awt
4. java.swing
1. JSP
2. HTML
3. web.xml (page: 266)
4. Servlet
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
Question No: 17 ( Marks: 1 ) - Please choose one
Which of the following method is called only once during the life cycle of
servlet?
1. service()
2. post()
3. get()
4. init() (Page: 267)
1. Functionality
2. Usability
3. Category
4. All of the given options (Use common sense file can
Organized in all these manner)
1. Input Parameters
2. Application State
3. All of the given options (Page>: 411)
4. The Request URL
1. to last row
2. to next-to-last row
3. three steps back-to-last row (Note *)
4. will give error
(Note *); absolute means where the cursor is pointer at the movement. And
-4 represent the 4 point back started from 0.
1. No folder
2. 3
3. 7
4. 9 (Page: 561 see the directory diagram)
1. String
2. MIME
3. Char (Page: 310)
4. Enum
1. <%..comments..%>
2. <%--comments--%> (Page: 367)
3. <%comments%>
4. <%!comments%>
1. exception
2. session
3. pageContext
4. pageDirective (Page: 343)
1. java.io
2. java.util (Page: 328)
3. java.awt
4. java.sql
1. Error
2. Exception (Page: 71)
3. Throwable
4. IOException
1. Try block
2. catch block (Page: 72)
3. final block
4. throws clause
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
1. IOException
2. AWTException
3. ClassNotFoundException
4. Null Pointer exception (Page: 72)
1. Stack
2. Queue (Page: 126)
3. List
4. Hash table
class CommonErrors {
public static void main(String[] args){
int num ;
System.out.println(num);
}
}
What type of error can occur in the above code segment?
1. Start of tag
2. End of tag
3. Attribute Tag (Page: 379)
4. None of these
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
Question No: 2 (Marks: 1) - Please choose one
From the following; which component is/are used in directory Structure of
web components?
1. Interface
2. Inheritance
3. Both Interface and Inheritance (Page: 228)
4. None of these
1. DoubleRangeValidator
2. LongRangeValidator
3. LengthValidator
4. StringValidator (Page: 486)
1. EL (Page: 468)
2. RT
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
3. Both EL and RT
4. None of these
1. View
2. Model (Page: 409)
3. Controller
4. Component
1. JavaScript
2. Java Bean (Page: 368)
3. ManagedBeans
4. HTML
1. Can
2. Can’t
3. Must
4. Shouldn’t (Page: 356)
1. Integer
2. String (Page: 334)
3. Depends on the expression
4. Nothing
(Note *) JSP works with HTML so when we write a file or modify it after that
we save that file. This saving process is also known as jsp file’s
compilation.
1. Different
2. Same (I have tried in code)
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
3. Critical
4. None of these
1. Result Code
2. URI (Page: 243)
3. Header fields
4. Body
1. JSTL
2. JSF
3. JSP
4. All of the given (because all are work on Server)
1. try block
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
2. finally block
3. catch block
4. Throw Clause (Page: 72)
1. paint();
2. main();
3. Init(); (Pae: 202)
4. run() ;
1. Super class
2. Abstract Class (Page: 96)
3. Anonymous Class
4. Concrete Class
1. Up casting
2. Down Casting (Page: 59)
3. In Casting
4. Out casting
1. Overloading
2. Overriding
3. Pointers
4. Multiple Inheritance
Solved By:
CS506 Web Design & Development
LION
Final Term Solved MCQs
5 - 3 - 2014
Question No: 30 ( Marks: 1 ) - Please choose one
int x = 7/2;
value of x is:
1. (1)
2. (2)
3. (3.5)
4. (3) (In int division we cannot get value in floating numbers)