m4 MCQ
m4 MCQ
Servlets - Listeners-Knowledge
Servlets - Listeners-Knowledge
Servlets - Listeners-Knowledge
Servlets - Listeners-Knowledge
Servlets - Listeners-Knowledge
Servlets - Listeners-Knowledge
JSP - EL (Expression Language)-Comprehension
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - JSTL-Knowledge
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Elements-Application
JSP - Directives-Application
JSP - Directives-Application
JSP - Directives-Application
JSP - Directives-Application
JSP - Directives-Application
JSP - Directives-Application
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
JSP - Basics-Knowledge
Servlets - Filtering-Application
Servlets - Filtering-Application
Servlets - Filtering-Application
Servlets - Filtering-Application
Servlets - Filtering-Knowledge
Servlets - Filtering-Knowledge
Servlets - Filtering-Knowledge
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Access Specifiers_Constructors_Methods
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Keywords_Variables_Operators_Datatypes
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Threads-Knowledge
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Application
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-Exception Handling-Comprehension
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
CoreJava-JDBC-Knowledge
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
Oracle-Fundamental of PL/SQL-Comprehension
HTML - Fundamentals-Knowledge
HTML - Fundamentals-Knowledge
HTML - Fundamentals-Knowledge
HTML - Fundamentals-Knowledge
Javascript - Basics-Knowledge
Javascript - Basics-Knowledge
Javascript - Basics-Knowledge
Javascript - Basics-Knowledge
Javascript - Basics-Knowledge
Javascript - Objects & Events-Application
Industry Practices-SCM-Knowledge
Industry Practices-SCM-Knowledge
HttpServl
HttpSessi etRequest
on session =
HttpSession session = request.g
Carefully read the question and answer accordingly. session = request.g etSession
Martin has created a Web application in which a servlet stores request.getSe etSession (); String
a JDBC URL as an attribute of the session object to access a ssion(); String (); String String url url
database. He wants other servlets of the application to retrieve url url =(String)s =(String)s
the URL attribute from the session object to access the =(String)sessi =session. ession.get ession.get
database. Which of the following code snippets can Martin use on.getAttribut getAttribut Session(" Attribute("
to retrieve the URL from the session object? e("URL"); e("URL"); URL"); URL");
RequestD
ispatcher RequestD
dispatche ispatcher
RequestDisp r= dispatche
atcher request.g r =
dispatcher = etRequest request.g
request.getR Dispatche etRequest
equestDispat r("Servlet Dispatche
cher("Servlet 2"); r("Servlet
2"); dispatche 2"); request.s
dispatcher.for r.dispatch dispatche endRedir
Carefully read the question and answer accordingly. ward(req, (req, r.chain(re ect("Servl
Select the code to chain a servlet with another servlet resp); resp); q, resp); et2");
By storing
the By storing By storing
Carefully read the question and answer accordingly. content the the
Mahesh has observed that some users are able to directly files content content
access the content files stored in the Web application from the By storing the under the files files
Web browser. Which of the following options should Mahesh content files META- under the under the
use to prevent the users from directly accessing the content under the dist INF WEB-INF INF
files? directory directory directory directory
Carefully read the question and answer accordingly.
Which of the following is an interface that gets data from the ServletReque ServletRe PrintStrea ServletCo
client and sends it to the servlet? st sponse m nfig
Carefully read the question and answer accordingly.
Whenever a request goes from the client to the server some
additional information other than the request is also passed to
the server. This additional information is in the form of a Applicatio Session
____________. footer header n ID ID
Based on
rules set,
One of the
the key firewall
Firewall tasks of server will
server mainly firewall is A Proxy filter the
focusses on routing server incoming
network between can be a requests
Carefully read the question and answer accordingly. security within a cluster firewall over
Which of the following is / are true about a firewall server? a LAN of servers server internet
Carefully read the question and answer accordingly.
HTTP cannot save state information between one request and
other TRUE FALSE
Each
Servlets Servlets request in
are robust only servlet
Servlets are and contains runs in
Carefully read the question and answer accordingly. Platform object business separate
Which of the following is NOT TRUE for the servlet? Independent. oriented. logic. thread.
Carefully read the question and answer accordingly.
While architecting a system, if "minimum down time" is the
primary expected behavior of the system, the system Applicatio Proxy
architecture should be based on ------------------- Firewall Cluster n Servers Server
to provide to provide
the listener
configurat informatio
ion details n to notify
on how certain has to list
the web classes down the
server when external
should some API's
provides use them events which are
security to serve (like used in
Carefully read the question and answer accordingly. information of the session the web
Which of the following can be considered as role(s) of a the incoming creation) applicatio
deployment descriptor in a .war or .ear modules? application requests happen n
Will be
bundled
inside the
applicatio
n, hence
Carefully read the question and answer accordingly. no need
A web application contains images to be displayed across the to deploy
UI screens. In a typical production environment, where these Application Web Proxy individuall
images will be deployed? Server Server Server y
Carefully read the question and answer accordingly.
For every HTTP request, static contents will be served by a
web server, whereas if dynamic content is requested, web
server forwards the request to application server. TRUE FALSE
Carefully read the question and answer accordingly.
Always the enterprise archive (EAR) files will be deployed in a
web container TRUE FALSE
Carefully read the question and answer accordingly.
The method getWriter() of HttpServletResponse returns an HttpServletRe PrintWrite ServletCo ServletCo
object of type ____________. quest r ntext nfig
Carefully read the question and answer accordingly. Applicatio
Which of the following Java EE containers manages the Web n client Applet
execution of enterprise beans for Java EE applications? EJB container container container container
<jsp:useB
ean
<jsp:useB id="myBe <jsp:useB
Carefully read the question and answer accordingly. <jsp:useBean ean anAttribut ean
If you would like the JSP container to first try to find the id="myBeanA id="myBe e" id="myBe
“myBeanAttribute” attribute in the request scope. If it’s not ttribute" anAttribut type=”co anAttribut
existing then should create the instance of “MyBean” and then class=”com.ct e" m.cts.My e"
assign it to the “myBeanAttribute “ id variable in JSP and sets it s.MyBean" class=”co Bean" type=”co
as an attribute to the request scope. scope="reque m.cts.My scope=”re m.cts.My
Which of the given option will help you to attain this? st" /> Bean" /> quest”/> Bean" />
It will
iterate
It will over the
iterate current
over the ServletRe
It will iterate current quest
over the ServletRe parameter
current quest s and
ServletReque parameter would not
Carefully read the question and answer accordingly. st parameters s getting set any
Smith is developing an application using Java Server Pages. setting each each property
The name of the component that he has matched property to the
created is "Emp". he has included the following statement in property to to the value of
her application: the value of value of It will give the
<jsp:setProperty name="Emp" property=* /> the matching the a run-time matching
What would be the result of the above code? parameter parameter error. parameter
A
message
box
stating for
user's
confirmati
on about
The terminatio
execution n or
Carefully read the question and answer accordingly. The of the continuati
Consider the following code snippet: execution of current on of the
<jsp:forward page="relativeURLspec"/> the current page is A run time applicatio
Which of the following statements is true about the execution page terminate error is n is
status of the page where this statement has been written? continues. d. displayed. displayed.
<jsp:impo <jsp:inclu
rt <jsp:impo de
page=”us rt path=”use
er- file=”user- r-
pref.jsp”> pref.jsp”> pref.jsp”>
<jsp:para <jsp:para <jsp:para
<jsp:include m m m
page=”user- name=”us name=”us name=”us
pref.jsp”> erPref” erPref” erPref”
<jsp:param value=”$ value=”$ value=”$
name=”userP {user.pref {user.pref {user.pref
Carefully read the question and answer accordingly. ref” value=”$ erence}” / erence}” / erence}” /
In an web page how would you write the JSP standard action {user.prefere > > >
code to import a JSP segment that generates user preference nce}” /> </jsp:inclu </jsp:impo </jsp:inclu
specific content? </jsp:include> de> rt> de>
<jsp:useB
ean
Carefully read the question and answer accordingly. id="accou
Given a servlet that stores an Account bean in the session nt"
scope with the following code snippet: <jsp:useB type="co
public void doPost(HttpServletRequest req, ean m.cts.Acc
HttpServletResponse resp) { id="accou ount”
HttpSession session = req.getSession(); nt" scope="s
com.cts.Account acc= new com.cts.Account(); type=”co ession"/>
emp.setAccountNumber(req.getParameter(“acc_num”)); m.cts.Acc <jsp:getPr
session.setAttribute(“account”, acc); ount” /> < operty
RequestDispatcher page = <%= %= name="ac
req.getRequestDispatcher(“index.jsp”); <%= employee employee count"
page.forward(req, resp); account.getA .getAccou .getAccou property="
} ccountNumbe ntNumber ntNumber accountN
Which of these complete JSPs will print the account number? r() %> ();%> (); %> umber" />
<jsp:useB
ean <jsp:useB
identity="l <jsp:useB ean
ogin" ean id="login"
scope="S id="login" scope="S
<jsp:useBean ession" scope="S ession"
id="login" class="s.b ession" class="s.b
scope="Sessi eans.Logi class="s.b eans.Logi
on" nBean"> eans.Logi nBean">
class="s.bean <%! nBean"> <login.set
s.LoginBean" login.setV login.setV Value(req
> <% alue(requ alue(requ uest.getP
Carefully read the question and answer accordingly. login.setValu est.getPar est.getPar arameter(
Consider the following code snippet of JSP Bean: e(request.get ameter("L ameter("L "Loginid"))
<jsp:usebean identity="login" scope="Session" Parameter("L oginid")); oginid")); ;/>
class=s.beans.LoginBean> oginid")); login.setA login.setA <login.set
<%! login.setAddr ddress(re ddress(re Address(r
login.setValue(request.getParameter("Loginid")); ess(request.g quest.get quest.get equest.ge
login.setAddress(request.getParameter("address")); etParameter(" Paramete Paramete tParamet
%> address")); r("address r("address er("addre
<jsp:usebean> %> ")); %> ")); ss"));/>
However the preceding code contains errors. Predict the </jsp:useBea <jsp:useB </jsp:use </jsp:use
correct code. n> ean> Bean> Bean>
Carefully read the question and answer accordingly.
Lisa is a web developer she developing dynamic web
application using JSP. She want to include "Header.jsp" in all
JSP page which she have designed. Which of the following
statement includes Header.jsp file?
1.<jsp:include page=“Header.jsp”/>
2.<jsp:include file=“Header.jsp”/>
3.<%@include file=“Header.jsp”%>
4.<%@include page=“Header.jsp”%> 1&3 2&3 1&2 3&4
<jsp:inclu
de <jsp:insert
page='W file='WEB
EB- <jsp:inclu -
Carefully read the question and answer accordingly. INF/jsp/he de INF/jsp/he
Your web application views all have the same header which <jsp:insert ader.jsp'> file='WEB ader.jsp'>
includes <title> tag in the <head> element of the rendered page='WEB- <jsp:para - <jsp:para
HTML. You have decided to remove the redundant HTML code INF/jsp/heade m INF/jsp/he m
from your JSPs and put into a single JSP called /WEB- r.jsp'> name='pa ader.jsp'> name='pa
INF/jsp/header.jsp. However, the title of each page is unique, <jsp:param geTitle' $ geTitle
so you have decided to use variable called pageTitle to name='pageT value='W {pageTitle value=”W
parameterize this in the header JSP like this: itle' elcome ='Welcom elcome
<title> ${param.pageTitle}</title> value=”Welco Page'/> e Page'} Page” />
Which JSP code snippet you use in your main view JSPs to me Page” /> </jsp:inclu </jsp:inclu </jsp:inser
insert the header and pass the pageTitle variable? </jsp:include> de> de> t>
page, page,
request, response,
page, response session
Carefully read the question and answer accordingly. request, page and and and
Identify the different values which a scope attribute of a session and request applicatio applicatio
<jsp:useBean>action can set? application. only n n
<% if
(request.r
etrievePar <% if
ameter(" <% if (request.g
marks"))> (request.g etParame
=60) { %> etParame ter("marks
<jsp:move ter("marks "))>=60)
<% forward "))>=60) { %>
if(Integer.pars page="Ex { %> <jsp:jsppa
eInt(request.g .jsp"> <jsp:forwa ram="Ex.j
etParameter(" </jsp:forw rd sp">
Carefully read the question and answer accordingly. marks"))>=60 ard> <% } page="Ex </jsp:forw
Lisa is a systems programmer at ABC Consultants. She has ) { %> else { %> .jsp" /> < ard> <% }
written an application to accept student marks in the variable <jsp:forward <jsp:move % } else else { %>
marks. If the student has scored marks greater than 60. She page="Ex.jsp" forward { %> <jsp:jsppa
needs to forward the control of the program to another file /> <% } else page="Av <jsp:forwa ram="Av.j
called as "Ex.jsp" else the control should be forwarded to a file { %> .jsp"> rd sp">
called as "Av.jsp". <jsp:forward </jsp:forw page="Av </jsp:forw
Which of the following code snippets should she use for page="Av.jsp" ard> <% } .jsp"> < ard> <% }
checking this condition and forward control? /> <% } %> %> % } %> %>
<jsp:setPr
operty>
<jsp:useBean <jsp:getPr
><jsp:setProp <jsp:useB operty> <jsp:useB
Carefully read the question and answer accordingly. erty> and ean> and and ean> and
Identify the different actions which are generally used while <jsp:getPrope <jsp:inclu <jsp:forwa <jsp:plugi
integrating JavaBeans with JSP? rty> de> rd> n>
Carefully read the question and answer accordingly.
Which attribute of the page directive indicates that the JSP
engine can handle more than one request at a time when its
value is set to true? IsThreadSafe Info autoflush extends
Carefully read the question and answer accordingly.
Sally has written the following code to access the Employee
bean that has already been created with the property called
EmpNumber:
<html>
<body>
<jsp:useBean id="employee" scope="session"
class="Employee" />
<b> The current count for the Employee bean is:</b> <
%employee.getEmpNumber()%>
</body>
</html>
The bean has the following code in the getEmpNumber
method:
public int getEmpNumber()
{ The value will
EmpNumber++; be The value The
return this.EmpNumber; incremented will be syntax The value
} everytime the always error will be
Which of the following statements is true about the output of page is displayed would be equal to
the above code when the page is loaded and reloaded? loaded. as 1. displayed. 10.
Carefully read the question and answer accordingly.
Which of the following objects of JSP contain the servlet applicatio
configuration? config n out page
Carefully read the question and answer accordingly.
Which of the following variable represents the uncaught
throwable object that resulted from a call to the error page in
JSP? Application Config Exception Request
Carefully read the question and answer accordingly.
Which object of JSP holds reference to PageCont
javax.servlet.http.HttpSession object? session request response ext
Declaring Putting
Putting <scripting scripting-
<scripting- -invalid> invalid=tru
invalid> tag at the e attribute Scripting
Carefully read the question and answer accordingly. element in top of in form can’t be
Scripting can be blocked in a jsp by: web.xml JSP page tag blocked
Carefully read the question and answer accordingly.
Gen wants to create a new JSP page. Which element of JSP Expressio Declaratio
provide global information about an entire JSP page? Scriptlet Directive n n
Carefully read the question and answer accordingly.
Manisha is creating an application which makes use of Java
Server pages. Which of the following implicit object she should
use to get a reference to the JSPWriter? out in request response
Print Write a
Carefully read the question and answer accordingly. something on Declare a Import a block of
The purpose of a JSP Expression tag is to: the screen variable java class java code
Carefully read the question and answer accordingly.
A scriptlet contains Java code that is executed every time a
JSP is invoked.State True or False. TRUE FALSE
Carefully read the question and answer accordingly.
You are developing dynamic web application using JSP. Which
attribute of page directive specifies the list of classes imported
in the JSP file? import session extends language
< %=
< %! < %@ public
String String String
Carefully read the question and answer accordingly. <!% String name="R name="A name="A
Which of the following is valid declaration in JSP using name="Rocky ocky"; % nand" % nand"; %
declaration tag? "%> > > >
A servlet
configuration The
object used ServletCo Defines
by a servlet nfig object an object
container to is to provide
pass contained client
information to within the request
a servlet ServletCo informatio All of the
Carefully read the question and answer accordingly. during ntext n to a listed
What is the use of ServletConfig interface? initialization object. servlet options
void void
setAttribut void setAttribut
void e(String setAttribut e(Object
Carefully read the question and answer accordingly. setAttribute(S name, e(Object object,
Which method binds an object to a given attribute name in this tring name, String object,Stri Object
ServletContext interface? Object object) value) ng name) object)
Carefully read the question and answer accordingly. javax.Ser
Which of the following interface represents the Servlet Config javax.servlet. vlet.Confi javax.Con Servlet.C
for the current Servlet? ServletConfig g fig onfig
after after after
Carefully read the question and answer accordingly. after init() construct service() servlet is
ServletConfig comes into picture _______. runs or runs runs loaded
Carefully read the question and answer accordingly. <servlet-
Which of the following tag is used to specify the initialization mapping <url-
parameters in the web.xml file? <init-param> <servlet> > pattern>
Carefully read the question and answer accordingly. None of
What is the return type of getAttribute() method of the listed
HttpServletRequest ? Object String Attribute options
Carefully read the question and answer accordingly. getInitPar
Which method of ServletConfig interface returns a String getInitParame getServlet ameterNa
containing the value of the named initialization parameter, or ter(String getParam Name(Stri me(String
null if the parameter does not exist? name) eter() ng name) name)
void void void
Carefully read the question and answer accordingly. void clearAttrib removeAtt removeAtt
Which method removes the attribute with the given name from flushAttribute( ute(String ribute(Obj ribute(Stri
the ServletContext interface? String name) name) ect name) ng name)
public
void
_jspServi public public
ce(HttpSe void void
private void rvletRequ _jspServi _jspServi
_jspService(H est ce(HttpSe ce(HttpSe
ttpServletReq request, rvletRequ rvletRequ
uest request, HttpServl est est
HttpServletRe etRespon request, request,
sponse se HttpServl HttpServl
response)thro response) etRespon etRespon
ws throws se se
ServletExcept ServletEx response) response)
ion, ception, throws throws
Carefully read the question and answer accordingly. java.io.IOExc java.io.IO ServletEx java.io.IO
Which of the following is valid _jspService() method signature? eption Exception ception Exception
It
depends
on the
Carefully read the question and answer accordingly. WEB- servlet
Identify the location in which the translated JSP servlet code INF/class container WEB-
will be stored WEB-INF es settings INF/class
JSP page
is
translated JSP is
JSP page is to a compiled,
translated to servlet, JSP page
a servlet, code is is JSP is
servlet is compiled, translated loaded
loaded into servlet is to a into
memory, loaded servlet, memory,
code is into code is Code is
Carefully read the question and answer accordingly. compiled, memory, loaded, compiled,
Which of the following describes the jsp life cycle process instance is instance instance instance
best? created is created is created is created
Carefully read the question and answer accordingly. No need
Which protocol Servlets and JSP use to communicate with of any
clients? HTTP FTP SMTP protocol
Carefully read the question and answer accordingly.
Identify the method in which all our scriptlets code will be jspServic _jspServi jspInitializ
placed jspInit() e() ce() ation()
Scriptlet
The The code gets
The init service doGet() no place
method of the method of method of in the
Carefully read the question and answer accordingly. generated generated generated generated
During translation the scriptlet code is copied inside: servlet servlet servlet servlet
Construct
or is a
special Construct
type of ors
Construct method should be
ors can which called
Constructors be may have explicitly
Carefully read the question and answer accordingly. can be overridde return like
Which of the following are true about constructors? overloaded n. type. methods
Carefully read the question and answer accordingly.
A field with default access specifier can be accessed out side
the package.
State True or False. FALSE TRUE
Carefully read the question and answer accordingly.
________ determines which member of a class can be used Inheritanc Implemen Access
by other classes. specifier e tation specifier
Carefully read the question and answer accordingly.
Which of the following statements are true about Method
Overriding?
I: Signature must be same including return type
II: If the super class method is throwing the exception then
overriding method should throw the same Exception
III: Overriding can be done in same class
IV: Overriding should be done in two different classes with no
relation between the classes I II & IV III I & III
Carefully read the question and answer accordingly.
If display method in super class has a protected specifier then None of
what should be the specifier for the overriding display method protected or protected the listed
in sub class? default or public options private
If one class is
having
protected
method then
the method is All
available for members Protected
subclass A class of is default
which is can be abstract access
Carefully read the question and answer accordingly. present in declared class are modifier
Which of the following are true about protected access another as by default of a child
specifier? package protected. protected class
Carefully read the question and answer accordingly.
What will be the output for following code?
public class Variables
{
public static void main(String[]args)
{
public int i=10;
System.out.println(i++); None of
} Compilati the listed
} 10 11 on error options
Carefully read the question and answer accordingly.
Constructor of an class is executed each time when an object
of that class is created TRUE FALSE
Carefully read the question and answer accordingly.
Which of the following correctly fits for the definition 'holding Compositi Polymorp
instances of other objects'? Aggregation on Generic hic
Requires
less
overhead
Support s
Reduce parallel compared
response operation Increase to
Carefully read the question and answer accordingly. time of of system multitaski
Which of these is not a benefit of Multithreading? process. functions. efficiency. ng.
The delay
Carefully read the question and answer accordingly. between
You have created a TimeOut class as an extension of Thread, “Start!” If “Time’s
the purpose of which is to print a “Time’s Over” message if the being Over!” is
Thread is not interrupted within 10 seconds of being started. printed printed,
Here is the run method that you have coded: and you can
public void run() { Exactly “Time’s be sure
System.out.println(“Start!”); 10 Over!” will that at
try { Exactly 10 seconds be 10 least 10
Thread.sleep(10000); seconds after after the seconds seconds
System.out.println(“Time’s Over!”); the start “Start!” is plus or have
} catch (InterruptedException e) { method is printed, minus elapsed
System.out.println(“Interrupted!”); called, “Time’s one tick of since
} “Time’s Over!” will the “Start!”
}Given that a program creates and starts a TimeOut object, Over!” will be be system was
which of the following statements is true? printed. printed. clock. printed.
Synchroni
Carefully read the question and answer accordingly. Synchroni Synchroni zed
Synchronization is achieved by using which of the below Synchronized zed zed abstract
methods blocks methods classes classes
Carefully read the question and answer accordingly.
State whether TRUE or FALSE.
The below code will compile & provide desired output:
package p1;
class MyThread extends Thread {
public void run() {
System.out.println("Important job running in MyThread");
}
public void run(String s) {
System.out.println("String in run is " + s);
}
}
class Test {
public static void main(String[] args) {
MyThread t1=new MyThread();
t1.start();
}
} TRUE FALSE
Carefully read the question and answer accordingly. Statement BOTH BOTH
Which of the following statements are true? 2 is TRUE Statement Statement
Statement1: When a thread is sleeping as a result of sleep(), it Statement1 is but 1& 1&
releases its locks. TRUE but Statement Statement Statement
Statement2: The Object.wait() method can be invoked only Statement2 is 1 is 2 are 2 are
from a synchronized context. FALSE. FALSE. TRUE. FALSE.
The
The elements
elements in the
The elements in the collection
in the collection are HashSet
collection are are accessed allows at
accessed guarantee using a most one
Carefully read the question and answer accordingly. using a non- d to be unique null
Which statement are true for the class HashSet? unique key. unique key. element
Carefully read the question and answer accordingly.
Enumeration is having remove() method.
State True or False. FALSE TRUE
The The
ListIterato ListIterato
The r interface r interface
The Iterator ListIterato provides provides
interface r interface the ability forward
declares only extends to and
three both the determine backward
methods: List and its iteration
Carefully read the question and answer accordingly. hasNext, next Iterator position in capabilitie
Which of the following are true statements? and remove. interfaces the List. s.
all
implemen
All All tations
implemen implemen are
All tations tations immutabl
implementatio support are e and
Carefully read the question and answer accordingly. ns are having serializabl supports
which are the Basic features of implementations of interfaces in unsynchroniz null e and duplicates
Collections Framework in java? ed elements. cloneable data
try
{
}
catch(IOException t)
{
System.out.println("B");
}
System.out.println("C");
} Compile time Runtime
} error A A,C error
finally
Carefully read the question and answer accordingly. block will
If you put a finally block after a try and its associated catch be always
blocks, then once execution enters the try block, the code in An exception The use executed
that finally block will definitely be executed except in some arising in the of in any The death
circumstances.select the correct circumstance from given finally block System.e circumsta of the
options: itself xit() nces. thread
RunTime
Exception
are the
exception
Runtime s which
exceptions forces the
need not be Runtime programm
explicitly exception er to
caught in try s include catch
catch block arithmetic RuntimeE them
as it can exception xception explicitly
occur s, pointer is a class in try-
Carefully read the question and answer accordingly. anywhere in a exception of I/O catch
what are true for RuntimeException program. s exception block
Array
Index Out
Of ClassNot Number
Carefully read the question and answer accordingly. Class Cast Bounds FoundExc Format
which are the Unchecked exceptions Exception Exception eption Exception
Carefully read the question and answer accordingly.
What will be the output for following code?
public class Exception1
{
public static void main(String[]args)
{
System.out.println("A");
try
{
System.exit(0);
}catch(Exception e)
{
System.out.println("B");
}
System.out.println("C");
} None of
} Compilati the listed
} A,C A on error options
NoClassD
efFoundE
rror
means
that the
class was
found by
the
ClassLoa
A der
ClassNotFou however
ndException when
is thrown trying to NoClassD
when the load the efFoundE
reported class, it rror is a
class is not ran into subClass
found by the an error of
ClassLoader reading ClassNot None of
Carefully read the question and answer accordingly. in the the class FoundExc the
Which is/are true among given statements CLASSPATH. definition. eption options
Carefully read the question and answer accordingly.
What will be the output for following code?
public class Exe3
{
public static void main(String[]args)
{
try
{
int i=10;
int j=i/0;
return;
}catch(Exception e)
{
System.out.println("welcome");
}
System.out.println("error");
}
}
1.welcome
2.error
3.compilation error 1&2 1&2&3 1&3 2
after
switching
from try
block to
catch catch
block is block the
if not control
exception mandate never
occurs, always come
control only back to
Try block switches finally try block
always to followed to
needed a following by try can execute
Carefully read the question and answer accordingly. catch block first Catch be rest of the
which are true for try block followed block executed code
Carefully read the question and answer accordingly.
What will be the output of following code?
public class Exception1{
public static void main(String args[]) {
int i=1, j=1;
try {
i++;
j--;
if(i/j > 1)
i++;
} catch(ArithmeticException e) {
System.out.println(0);
} catch(ArrayIndexOutOfBoundsException e) {
System.out.println(1);
} catch(Exception e) {
System.out.println(2);
}
finally {
System.out.println(3);
}
System.out.println(4);
}
}
1.0
2.1
3.3
4.4. 1&2 1&2&3 1&3&4 1&2&4
An exception Both
which is not A catch catch
handled by a block can block and
catch block have finally
will be another block can
Carefully read the question and answer accordingly. handled by try block throw All of the
Which of the following statement is true regarding try-catch- subsequent nested exception listed
finally? catch blocks inside s options
Checked
exception
s are the
object of
the
Exception
class or All
any of its runtime
A checked error and subclasse exception
exception is a checked s except s are
subclass of exception Runtime checked
Carefully read the question and answer accordingly. throwable s are Exception exception
which are correct for checked exceptions class same. class. s
Carefully read the question and answer accordingly.
Try can be followed with either catch or finally.
State True or False. TRUE FALSE
Carefully read the question and answer accordingly. RuntimeE
Which is the super class for Exception and Error? Throwable throws throw xception
Carefully read the question and answer accordingly.
The finally block always executes when the try block exits.
State True or False. TRUE FALSE
Carefully read the question and answer accordingly. The The The
What happens when the following code is compiled and run. number 1 number 2 number 3
Select the one correct The class gets gets gets
answer. compiles and printed printed printed
for(int i = 1; i < 3; i++) runs, but with with with
for(int j = 3; j >= 1; j--) does not print Assertion Assertion Assertion
assert i!=j : i; anything. Error Error Error
All kinds
of
Statement
s (i.e.
which
implemen
Paramete t a sub
rizedState interface
Paramete ment and of
Carefully read the question and answer accordingly. PreparedStat rizedState CallableSt Statement
Which type of Statement can execute parameterized queries? ement ment atement )
Carefully read the question and answer accordingly.
Connection object can be initialized using which method of the putConnectio setConne Connectio getConne
Driver Manager class? n() ction() n() tion()
Carefully read the question and answer accordingly.
Which of the following is true with respect to code given below?
import java.sql.*;
public class OracleDemo
{
public static void main(String [] args) throws
SQLException,ClassNotFoundException
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection "SELECT
con=DriverManager.getConnection("jdbc:oracle:thin:@PC1886 * FROM
81:1521:training","scott","tiger"); Person"
Statement stmt=con.createStatement(); Class.for query
ResultSet rs=stmt.executeQuery("SELECT * FROM Person"); The code Name must be
while(rs.next()) will must be passed as
{ The code will display all mentione parameter
System.out.println(rs.getString("column1")); not compile values in d after to
} as no try column Connectio con.creat
} catch block named n eStateme
} specified column1 statement nt()
Carefully read the question and answer accordingly.
If your JDBC Connection is in auto-commit mode, which it is by
default, then every SQL statement is committed to the
database upon its completion. State True or False. TRUE FALSE
Call Call
method method Call
Call method executePr execute() method
execute() on ocedure() on a run() on a
a on a StoredPro Procedur
Carefully read the question and answer accordingly. CallableState Statement cedure eComma
How can you execute a stored procedure in the database? ment object object object nd object
Connectio
n Connectio Connectio
cn=Driver n n
Manager. cn=Driver cn=Driver
getConne Manager. Manager.
ction("jdb getConne getConne
c:odbc:My ction("jdb ction("jdb
Connection dsn", c:odbc c:odbc:ds
Carefully read the question and answer accordingly. cn=DriverMan "usernam ","userna n" ,"usern
You are using JDBC-ODBC bridge driver to establish a ager.getConn e", me", ame",
connection with a database. You have created a DSN Mydsn. ection("jdbc:o "passwor "passwor "passwor
Which statement will you use to connect to the database? dbc"); d"); d"); d");
Carefully read the question and answer accordingly.
Which of the following listed option gives the valid type of java.sql.D java.sql.Ti java.sql.Ti
object to store a date and time combination using JDBC API? java.util.Date ate me mestamp
Carefully read the question and answer accordingly.
Which method executes an SQL statement that may return executeUpdat executeQ noexecut
multiple results? e() uery() execute() e()
Carefully read the question and answer accordingly.
Which package contains classes that help in connecting to a
database, sending SQL statements to the database, and connection.sq
processing the query results l db.sql pkg.sql java.sql
Carefully read the question and answer accordingly.
Which method sets the query parameters of the insertStrin setString( setToStrin
PreparedStatement Object? putString() g() ) g()
DDL DDL
statements statement
are treated as s cannot
normal SQL be
statements, executed
and are To by making
executed by execute use of
calling the DDL JDBC, Support
execute() statement you for DDL
method on a s, you should statement
Statement (or have to use the s will be a
a sub install native feature of
interface additional database a future
Carefully read the question and answer accordingly. thereof) support tools for release of
What is correct about DDL statements? object files this. JDBC
adds 10 adds 10
minutes days to
adds 10 to the the
Carefully read the question and answer accordingly. seconds to current current query
What will be the output of the below query? the current Timestam Timestam contains
select to_CHAR(sysdate+(10/1400),'HH:MI:SS') from dual; Timestamp p p error
Carefully read the question and answer accordingly.
Which of the following integrity rules of SQL states that if a
relational table has a foreign key, then every value of the
foreign key must either be null or match the values in the Referential Domain Entity Table
relational table in which that foreign key is a primary key? Integrity Integrity Integrity Integrity
The
above
Carefully read the question and answer accordingly. query
What will be the result of the following code? contains
SELECT (2+3*4/2–5) FROM dual; 3 2 an error 5
Carefully read the question and answer accordingly.
What will be the output of the below query? Query
select instr('My SQL World','a') from dual; contains error Prints 0 Prints -1 Prints 6
All All
supplier supplier
record record
All whose whose
Carefully read the question and answer accordingly. supplier name name
What will be the output of the below query? Query will record will starts with starts with
SELECT * FROM suppliers generate an be % will be ! will be
WHERE supplier_name LIKE '!%' escape '!'; error displayed displayed displayed
Flashback
Query
Flashback does not
Query apply to
For using needs to code
flashback be objects
query, the enabled like
server need and Packages
not be disabled ,
configured to using the Procedur
use DBMS_F es,
Carefully read the question and answer accordingly. Automatic LASHBA Function None of
Which of the following statement is True with respect to Query Undo CK or the listed
Flash Back? Management. package. Triggers options
Create Create Create
Create sequence sequence sequence
sequence MySeq MySeq MySeq
MySeq Start ( Start ( Start Start with
Carefully read the question and answer accordingly. with 2 with 2 with 2 2
Identify the correct syntax to create a sequence which Increment by Increment Increment Increment
generates values as 2,4,6,8,10? 1 by 1 ) by 2 ) by 2
Carefully read the question and answer accordingly.
A dropped table can be restored by issuing this command.
FLASHBACK TABLE Supplier TO BEFORE DROP;
State True or False. TRUE FALSE
It would
be
created
and
remains
It would It would in a
be be disabled
Carefully read the question and answer accordingly. created created state
Evaluate the CREATE TABLE statement: and would and would because
CREATE TABLE products It would be use an use an no index
(product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY created only if automatic automatic is
KEY, a unique ally ally specified
product_name VARCHAR2(15)); index is created created in the
Which statement is true regarding the PROD_ID_PK manually unique nonuniqu command
constraint? created first. index. e index. .
Separate
GRANT
statement
WITH s are
GRANT required
Carefully read the question and answer accordingly. ALL OPTION for
The user SCOTT who is the owner of ORDERS and PUBLIC should be should be ORDERS
SUPPLIERS tables issues the following GRANT command: should be replaced added to and
GRANT ALL replaced with with a list the SUPPLIE
ON orders, Suppliers TO PUBLIC; specific of specific statement RS
What correction needs to be done to the above statement? usernames. privileges. . tables.
Carefully read the question and answer accordingly.
Which of the following is used to store the most recently Data
executed SQL statements and the most recently used data Dictionary Shared Library
definitions? Data Pool Cache Pool Cache
One or
more The table
columns is large
are and most
frequently queries
used are
A column together expected
contains in a to retrieve
A column large where less than
contains a number of clause or 2 to 4 %
Carefully read the question and answer accordingly. wide range of null a join of the
Identify the circumstance under which you will create an Index? values. values. condition. rows.
A
synonym A A
with the synonym synonym
name with the with the
A synonym UserDetai name name
Carefully read the question and answer accordingly. with the name ls is User is User is
You are using the system account to create a synonym as UserDetails is created created created
follows: created and and any and only and any
Create synonym User for UserDetails only system user can system user can
Which statements are true with respect to the above synonym? can access it access it can use it access it
Carefully read the question and answer accordingly.
Oracle instance comprises of background processes and
memory structure. State True or False. TRUE FALSE
Carefully read the question and answer accordingly.
In Oracle10g database, control files contain information that
describes the names, locations, and sizes of the database
files. State true or False. TRUE FALSE
DROP DROP
PURGE PURGE ALL_TAB DBA_RE
Carefully read the question and answer accordingly. DBA_RECYC RECYCL LE_RECY CYCLEBI
How to drop all tables from recycle bin? LEBIN EBIN CLEBIN N
Carefully read the question and answer accordingly.
Which of the following parameter in Query Flashback clearly UNDO_T UNDO_R DBA_UN
defines the maximum time period that the database can be UNDO_MAN ABLESPA ETENTIO DO_EXT
flashbacked? AGEMENT CE N ENTS
Carefully read the question and answer accordingly.
When a database is created the users SYS and SYSTEM are
created automatically and granted the DBA role. State True or
False. TRUE FALSE
To join
two tables
through
You an
specify an equijoin,
equijoin the
condition columns
You can in the in the join
join a SELECT condition
maximum or FROM must be
You can join of two clauses of primary
a maximum of columns a key an
two tables through SELECT foreign
Carefully read the question and answer accordingly. through an an statement key
What is true about joining tables through an equijoin? equijoin. equijoin. . columns.
Select
Select Select count(*)
count(*) count(*) from emp
Select from emp from emp where sal
count(*) from where sal where sal exist
Carefully read the question and answer accordingly. emp where > (select > (select (select
John wants to see how many employees are there whose sal > (select Avg(sal) Average(s avg(sal)
salary is above average. max(sal) from from al) from from
Which of the following query will help john to achieve this task? emp); emp); emp); emp);
select select
empNam select empNam
e, empNam e ,
select empNo e, empNo
empName , from emp empNo from emp
empNo from where from emp where
emp where empno where empno
Carefully read the question and answer accordingly. empno = exists empno in has Any
John wants to retrieve all the employee details whose ( select ( select ( select ( select
Employee Number matches to any of the Department Number. deptNo from deptNo deptNo deptNo
Help john to achieve his task dept) from dept) from dept) from dept)
Carefully read the question and answer accordingly.
An outer join returns all rows that satisfy the join condition and
those rows from one table for which no rows from the other
satisfy the join condition.
State True or False. TRUE FALSE
Carefully read the question and answer accordingly.
Which of the Following Statements are true? Statement Both Both
Statement A : Join permanently joins two tables having 1 or Statement A A is false statement statement
more common attributes is true and B and B is s A and B s A and B
Statement B: Inner Joins are also called as EQUI Joins is false. true. are true. are false.
The IN
IN parameter
Paramete is a
r value variable
should be whose
passed to The same value will
the parameter change in
procedure will serve the
IN Parameter for as input invoked
Carefully read the question and answer accordingly. is the default processin and procedure
Which statements are true about IN parameter? parameter. g. output. .
When the
EXIT
statement
is
encounter
ed, the
condition
in the
WHEN
clause is
evaluated
. If the
condition
is true,
the loop
completes The EXIT-
The EXIT- and WHEN
WHEN control statement
statement lets passes to replaces
a loop the next a simple
complete statement IF
Carefully read the question and answer accordingly. unconditionall after the statement None of
What is an EXIT - WHEN statement? y. loop . the above
Column Column
constraint constraint
s, such as s, such as
the NOT the NOT
NULL and NULL and
We can use check check
the %TYPE constraint constraint
attribute as a , or , or %TYPE is
datatype default default used
specifier values values when
when are not are declaring
declaring inherited inherited variables
constants, by items by items to hold
variables, declared declared database
Carefully read the question and answer accordingly. fields, and using using table
What is meant by %Type? parameters. %TYPE. %TYPE. values
DBMS_O
UTPUT.P
UT_LINE(
' The
DBMS_OUTP DBMS_O DBMSOU employee
Carefully read the question and answer accordingly. UT.PUT_LIN UTPUT.P TPUT.PU name is :
How to display output from PLSQL? E UTLINE T_LINE X')
%TYPE
variables %TYPE
%TYPE do not variables %TYPE
variables do inherit do not variables
Carefully read the question and answer accordingly. not inherit check inherit inherit
Pick the CORRECT statement about %TYPE variables NOT NULL constraint default default
such as the NOT NULL or or default values constraints , values values
Carefully read the question and answer accordingly.
Identify the code snippet
DECLARE
var_num1 number:=50;
var_num2 number;
BEGIN
var_num2 := 200;
DECLARE
var_mult number;
var_num1 number:= 100; -- LINE 1
BEGIN
var_mult := var_num1 * var_num2;
END;
dbms_output.put_line( var_num1);
END; Compiles Compiles
/ , executes , executes
what will be the output of the above code assume serveroutput Runs without Compilati and Prints and Prints
is on any output on fails 100 50
Returns Return
NULL if the FALSE if
cursor is Return a Return
open but FALSE if successfu the
fetch has not no rows l fetch has number of
Carefully read the question and answer accordingly. been was been rows
What are the true aspects about the %NOTFOUND attribute? executed. returned executed. fetched
In a table,
if no
single
column
can be
assigned
Primary uniquely
Key as
constraint A primary primary
has to be key can key, then
explicitly be a
A Default dropped reference combinati
index is before d in on of two
created in the completel another columns
Carefully read the question and answer accordingly. column which y table as a can act as
In SQL, which of the following is NOT true with respect to acts as a removing Foreign a Primary
Primary Key? Primary key. the table. Key. Key.
Invalid
Carefully read the question and answer accordingly. Variable
Identify the type of variable declared Host declaratio Global
VARIABLE City Varchar2(20). Bind Variable Variable n Variable
None of
Carefully read the question and answer accordingly. Associativ the listed
Which is called as index-by tables ? Nested tables e arrays Varrays option
Carefully read the question and answer accordingly. Error ,
If the declaration is Number (4,5) and the assigned value is exceeds 12345.56 1234.556 1.234556
123.4567 , what is the stored value? precision 7 7 7
The
Subprogr
ams that
are
present
A inside a
package package
body cannot
A package appears A exists
specification without package separatel
can exists package can be y as
Carefully read the question and answer accordingly. without a specificati invoked database
What are the true aspects of PLSQL? package body on by itself. objects.
max_days CONSTA
_in_year NT
max_days_in CONSTA max_days
_year NT _in_year None of
Carefully read the question and answer accordingly. CONSTANT INTEGER INTEGER the listed
Pick the valid constant declaration in PL/SQL INTEGER; := 366; := 366; option
Value
before
change
(:OLD) : Value
Value before
before change
Value before delete (:OLD) :
change Value Null Value
(:OLD) : Null After After
Carefully read the question and answer accordingly. Value After change change
What will be the old and new value of a database column change (:NEW) : (:NEW) : None of
before AFTER and DELETE operation? (:NEW) : Null Null Not Null the above
A GOTO
statement
can
transfer
control
A GOTO from one
statement IF
cannot statement
transfer clause to
control into another, A GOTO A GOTO
an IF or from statement statement
statement, one can cannot
CASE CASE transfer transfer
statement, statement control control
LOOP WHEN into an out of a
Carefully read the question and answer accordingly. statement, or clause to exception subprogra
What are the restrictions of GO TO statements? sub-block. another. handler. m.
When an
EXIT
When an statement
When an EXIT is
EXIT statement encounter
statement is ed, the
is encounter loop does
encounter ed, the not gets
ed, the loop complete
loop completes d
completes immediat immediat
The EXIT immediat ely and ely and
statement ely and control control
forces a loop control passes to passes to
to complete passes to the end of the end of
Carefully read the question and answer accordingly. unconditionall the next the the
What does an EXIT statement do in PLSQL? y statement program program
Carefully read the question and answer accordingly. PROGRA
You cannot assign nulls to a variable defined as NOT NULL. If STORAGE_E VALUE_E SELF_IS_ M_ERRO
you try, PL/SQL raises the predefined exception _________ RROR RROR NULL R
Carefully read the question and answer accordingly.
Which of the following statement is TRUE None of
(i) Strong REF CURSOR types are less error prone the listed
(ii) Weak REF CURSOR types are not flexible (i) (ii) (i) & (ii) option
Carefully read the question and answer accordingly.
Which of the following logically related components can be exception procedure
grouped in a PL/SQL package ? PL/SQL types s s functions
Carefully read the question and answer accordingly.
A PL/SQL function can return more than one value from a
function using PL/SQL record or PL/SQL table TRUE FALSE
Condition
al
expressio The
ns of the VALUES The SET
WHERE clause of clause of
The SELECT and the the
Carefully read the question and answer accordingly. list or clause HAVING INSERT UPDATE
User-defined PL/SQL functions can be used in of a query clauses statement statement
Carefully read the question and answer accordingly.
which parameter passing mode passes a value from the
calling environment to the procedure and a possibly different None of
value from the procedure back to the calling environment using the listed
the same parameter ? IN OUT IN OUT option
Carefully read the question and answer accordingly.
Which of the following sections can be present in an Executabl All Listed
anonymous PL/SQL block? Declaration e Exception options
CREATE
OR
REPLAC
E CREATE CREATE
TRIGGER OR OR
check_sal REPLAC REPLAC
BEFORE E E
UPDATE TRIGGER TRIGGER
OF sal check_sal check_sal
ON emp BEFORE AFTER
FOR UPDATE UPDATE
EACH OF sal OR sal
ROW ON emp ON emp
WHEN WHEN WHEN
(new.sal < (new.sal < (new.sal <
old.sal old.sal old.sal
OR OR OR
new.sal > new.sal > -new.sal >
old.sal * old.sal * old.sal *
1.1) 1.1) 1.1)
BEGIN BEGIN BEGIN
RAISE_A RAISE_A RAISE_A
PPLICATI PPLICATI PPLICATI
ON_ERR ON_ERR ON_ERR
OR ( - OR ( - OR ( -
ALTER 20508, 20508, 20508,
TABLE emp ‘Do not ‘Do not ‘Do not
ADD decrease decrease decrease
CONSTRAIN salary not salary not salary not
T ck_sal increase increase increase
Carefully read the question and answer accordingly. CHECK (sal by more by more by more
Which code can you use to ensure that the salary is not BETWEEN than than than
increased by more than 10% at a time nor is it ever sal AND 10%’); 10%’); 10%’);
decreased? sal*1.1); END; END; END;
Carefully read the question and answer accordingly. None of
what is the result when we attempt to change the value of an run time compile- the listed
IN parameter ? exception time error no error option
FOR
EACH Statement
ROW -level
Carefully read the question and answer accordingly. Statement trigger on trigger on
You need to create a trigger on the EMP table that monitors FOR EACH -level the the
every row that is changed and places this information into the ROW trigger trigger on AUDIT_T AUDIT_T
AUDIT_TABLE. on the EMP the EMP ABLE ABLE
What type of trigger do you create? table. table. table. table.
optional
Carefully read the question and answer accordingly. precision datatype value for
For the parameters of the PL/SQL procedures, which cannot length of the of the of the the
be specified ? parameter parameter parameter parameter
PL/SQL
PL/SQL procedure
PL/SQL procedure Can
procedure cannot contain a RETURN
Can contain a contain RETURN statement
RETURN RETURN statement Not
statement statement with a allowed in
Carefully read the question and answer accordingly. without a without a single PL/SQL
Pick the VALID statement about PL/SQL procedure ? value value value procedure
When a
PL/SQL- The
packaged package
construct specificati
is on may
reference also
d for the include PRAGMA
first time, PRAGMA s are not
the whole s, which allowed
package are as part of
Package is loaded directives package
Carefully read the question and answer accordingly. body is into to the specificati
Which are VALID statement about PL/SQL package ? optional memory compiler on
combined
Carefully read the question and answer accordingly. (positional None of
When calling a function in a SQL statement which parameter and the listed
notation must be used ? positional named named) option
None of
these
command
s; you
ALTER cannot
ALTER TABLE disable
employee employee multiple
ALTER s s triggers
TRIGGERS DISABLE DISABLE on a table
Carefully read the question and answer accordingly. ON TABLE ALL ALL in one
You need to disable all triggers on the EMPLOYEES table. employees TRIGGER TRIGGER command
Which command accomplishes this? DISABLE; S; S; .
Carefully read the question and answer accordingly. ALL_SOURC USER_S USER_O USER_S
what are the data dictionary views? E OURCE BJECTS OURCES
Functions Functions
called called
from: An from: An
UPDATE UPDATE
or Functions or
DELETE called DELETE
statement from: • A statement
Functions on a table SELECT on a table
called from: • T cannot statement T can
A SELECT query or can query or
statement contain contain contain
Carefully read the question and answer accordingly. cannot DML on DML DML on
Which are TRUE about calling a function from SQL contain DML the same statement the same
expressions ? statements table T s table T
Carefully read the question and answer accordingly.
The functions can return PL/SQL specific data types such as
BOOLEAN, RECORD, or TABLE TRUE FALSE
The
trigger
The fails
trigger because
fails you
The because cannot
trigger a use the
fails SELECT minimum
Carefully read the question and answer accordingly. because it statement and
You have a row level BEFORE UPDATE trigger on the EMP needs to on the maximum
table. This trigger contains a SELECT statement on the EMP be a row table functions
table to ensure that the new salary value falls within the level being in a
minimum and maximum salary for a given job title. What The trigger AFTER updated BEFORE
happens when you try to update a salary value in the EMP fires UPDATE is not UPDATE
table? successfully. trigger. allowed. trigger.
Carefully read the question and answer accordingly. None of
Which parameter mode can be used to assign a default value the listed
in the formal parameter declaration ? IN OUT OUT IN option
the
Using the parameter
Using the %ROWTY size
Carefully read the question and answer accordingly. an explicit %TYPE PE specificati
The parameters for procedures can be specified using ? data type definition definition on
Comparison
operators The value
cannot be of a
used to test cursor Two types
cursor variable of cursors Null
variables for can be are 1) cannot be
equality, stored in Strongly assigned
inequality, a typed and to a
Carefully read the question and answer accordingly. null, or not database 2) Weakly cursor
What are the restrictions of REF cursor in PLSQL? null. column Typed. variable
The
select
statement
provided
within the Open
cursor statement
statement retrieves The
gets the rows active set
Opening the executed from the pointer is
cursor when we cursor set to the
Carefully read the question and answer accordingly. allocates the open the and will second
What occurs when a cursor is opened? memory first. cursor. process it. row.
When we
issues a
SELECT..
FOR
UPDATE
clause the
RDBMS will The lock
automatically The will not be
place a locks records released
on the all the will be even if we
rows available issue
identified by for our ROLLBA
Carefully read the question and answer accordingly. the select changes CK or None of
What is FOR UPDATE clause in Cursors? statement. only. COMMIT . the above
declare
EnameUs
er
Emp.ena
me%type;
MrgUser
Emp.Mrg
%type;
Replace cursor c1
Replace the above is select
the above code as EnameUs
code as declare er,MrgUs
declare enameUs er from
enameUs er Emp;
er Emp.ena begin
varchar(2 me%type; open c1;
0); MrgUser loop fetch
MrgUser Emp.Mrg c1 into
varchar(2 %type; EnameUs
0); begin begin er,MrgUs
select select er; exit
ename,Mr ename,Mr when
Carefully read the question and answer accordingly. g into g into c1%NOT
The following Block of statement is written to check the enameUs enameUs FOUND;
manager for each employee er,MrgUs er,MrgUs dbms_out
declare er from er from put.put_li
cursor c1 is Emp; Emp; ne('
select ename , Mgr dbms_out dbms_out Employee
from Emp; put.put_li put.put_li '||
begin ne('Emplo ne('Emplo EnameUs
for rec in c1 LOOP yee '|| yee '|| er||'
dbms_output.put_line('Employee '||rec.ename||' Works for '|| enameUs enameUs Works for
rec.Mgr); The above er||' er||' '||
end loop; code has no Works for Works for MrgUser);
end; error and '|| '|| end loop;
Identify errors if any in the above code and provide suitable gives the MrgUser); MrgUser); close c1;
solution desired result end; / end; / end;
create or create or
create or replace replace
replace procedure procedure
procedure prcEmp_d prcEmp_d
prcEmp_d etails(Em etails(Em
etails(Em pName pName
pName varchar2 varchar2
create or varchar2) OUT) as OUT) as
replace as begin begin begin
procedure declare declare declare
prcEmp_detai cursor c1 cursor c1 cursor c1
ls(EmpName is select * is select * is select *
varchar2) as from Emp from Emp from Emp
begin declare where where where
cursor c1 is Ename=E Ename=E Ename=E
select * from mpName; mpName; mpName;
Emp where begin for begin for begin for
Ename=Emp rec in c1 rec in c1 rec in c1
Name; begin LOOP LOOP LOOP
for rec in c1 dbms_out dbms_out dbms_out
LOOP put.put_li put.put_li put.put_li
dbms_output. ne(c1.ena ne(rec.en ne(c1.ena
put_line(rec.e me||’ ’|| ame||’ ’|| me||’ ’||
Carefully read the question and answer accordingly. name||’ ’|| c1.empN rec.empN c1.empN
You are creating a procedure which accepts the employee rec.empNO||’ O||’ ’|| O||’ ’|| O||’ ’||
name and displays the employee details like Employee Name, ’||rec.Mrg); c1.Mrg); rec.Mrg); c1.Mrg);
Employee No, Manager end loop; end loop; end loop; end loop;
Identify the correct syntax to achieve the desired result. end; end; end; end; end; end; end; end;
CURSOR
DECLAR occupanc
E y_cur IS
CURSOR SELECT
DECLAR occupanc pet_id,
E y_cur IS room_nu
CURSOR SELECT mber
occupanc pet_id, FROM
DECLARE y_cur IS room_nu occupanc
CURSOR SELECT mber y WHERE
occupancy_c pet_id, FROM occupied_
ur IS room_nu occupanc dt =
SELECT mber y WHERE SYSDAT
pet_id, FROM occupied_ E; BEGIN
room_number occupanc dt = OPEN
FROM y WHERE SYSDAT occupanc
occupancy occupied_ E; BEGIN y_cur
WHERE dt = FOR FOR
occupied_dt = SYSDAT occupanc occupanc
Carefully read the question and answer accordingly. SYSDATE; E; BEGIN y_rec IN y_rec IN
How to convert the following code using the cursor FOR occupancy_re FOR occupanc occupanc
LOOP? c occupanc y_cur y_cur
DECLARE occupancy_c y_rec IN LOOP LOOP
CURSOR occupancy_cur IS ur occupanc update_bi update_bi
SELECT pet_id, room_number %ROWTYPE; y_cur ll ll
FROM occupancy WHERE occupied_dt = SYSDATE; BEGIN FOR LOOP (occupan (occupan
occupancy_rec occupancy_cur%ROWTYPE; occupancy_re update_bi cy_rec.pe cy_rec.pe
BEGIN c IN ll t_id, t_id,
OPEN occupancy_cur; occupancy_c (occupan occupanc occupanc
LOOP ur LOOP cy_rec.pe y_rec.roo y_rec.roo
FETCH occupancy_cur INTO occupancy_rec; update_bill t_id, m_numbe m_numbe
EXIT WHEN occupancy_cur%NOTFOUND; (occupancy_r occupanc r); END r); END
update_bill (occupancy_rec.pet_id, ec.pet_id, y_rec.roo LOOP; LOOP;
occupancy_rec.room_number); occupancy_re m_numbe CLOSE CLOSE
END LOOP; c.room_numb r); END occupanc occupanc
CLOSE occupancy_cur; er); END LOOP; y_cur; y_cur;
END; LOOP; END; END; END; END;
DECLAR
DECLAR E
E exception DECLAR
exception _name E
_name EXCEPTI exception
DECLARE EXCEPTI ON _name
exception_na ON PRAGMA EXCEPTI
me PRAGMA EXCEPTI ON
EXCEPTION EXCEPTI ON_INIT PRAGMA
EXCEPTION ON_INIT (exceptio EXCEPTI
_INIT (exceptio n_name , ON_INIT
PRAGMA n_name , err_code); (exceptio
(exception_n err_code); Begin n_name);
ame , Begin Execution Begin
err_code); Execution section Execution
Begin section Exception section
Execution Exception WHEN Exception
section WHEN PRAGMA WHEN
Exception exception exception exception
WHEN _name _init _name
exception_na THEN THEN THEN
me THEN Handle Handle Handle
Handle the the the the
Carefully read the question and answer accordingly. exception exception exception exception
What is the syntax of PRAGMA EXCEPTION_INIT? END; END; END; END;
Whenever
Implicit a DML
cursors are statement
automatically (INSERT,
created by UPDATE
oracle when a For and
select query INSERT DELETE)
in PLSQL is operation is issued,
executed. s, the an implicit
Explicit implicit cursor is The
cursors is cursor not implicit
explicitly holds the automatic cursor is
attached to a data that ally declared
select query need to associate in the
Carefully read the question and answer accordingly. by be d with this declaratio
What are the true aspects of implicit and explicit cursors? programmer. inserted statement n section.
Carefully read the question and answer accordingly.
Examine the PL/SQL Block
declare
result Number;
num1 Number:=&number1;
num2 Number:=&number2;
begin
select num1/num2 into result from dual;
dbms_output.put_line('Result is '||result);
exception
when ZEROS_DIVIDE then
dbms_output.put_line('Exception Occurred Divide by Zero');
end; Exception
/ Occurred
What will be the output of the above code when user passes Divide by Result is Result is Compilati
the value for NUM1 as 0 and NUM2 as 10 Zero 10 0 on fails
1. Add a 1. Add a
new new
genre. 2. genre. 2.
Is this Display
genre id the total #
already in of
1. Add a new 1. Add a the elements.
genre. 2. Is new collection 3. **Add**
Carefully read the question and answer accordingly. this genre id genre. 2. ? 3. another
IF add_genre_new THEN already in the Display **Add** element
IF NOT fic_genres.EXISTS(f_genre_id) THEN collection? 3. the total # another to the
fic_genres.EXTENDS(1); Display the of element varray. 4.
fic_genres(f_genre_id) := f_genre; total # of elements. to the Is this
DBMS_OUTPUT.PUT_LINE('Total # of entries in elements. 4. 3. **Add** varray. 4. genre id
fiction_genres is : **Add** another Display already in
'||fiction_genres.COUNT(); another element the total # the
END IF; element to to the of collection
Predict the correct steps of the above code ? the varray. varray. elements. ?
Carefully read the question and answer accordingly.
HTML is used to perform the programming logic.
State True or False. FALSE TRUE
Carefully read the question and answer accordingly.
Which of the following is an empty tag in HTML? <a> <br> <input> <h1>
Alternativ
e text to
be
displayed
if the
ID used to image is None of
Carefully read the question and answer accordingly. Image identify not the listed
ALT' attribute in <IMG> tag used to represents filename the image displayed options
Which
represents Provides
the content to additional Attribute None of
Carefully read the question and answer accordingly. be displayed behaviour is a type the listed
What is the use of attributes in HTML tags? in the page to the tag of tag options
Carefully read the question and answer accordingly. None of
Which tag is used to include multiple HTML pages in single the listed
page? frame frameset frames options
Carefully read the question and answer accordingly. By using By using
How to divide the page into two rows when we are using cols=50%,50 rows=50 By using By using
frameset? % %,50% colspan rowspan
Java
Script can
be written
as an
JavaScrip external
JavaScript t can be file and
Carefully read the question and answer accordingly. can be written written imported All of the
Please select the correct statement with respect to including inside the inside the to the listed
JavaScript in HTML pages. page body header page options
document
document.get document .getEleme
Carefully read the question and answer accordingly. ElementsByT .getEleme ntsByTag None of
In JavaScript, for accessing first paragraph tag in the agName("p") ntsByTag Name("p[ the listed
document which of the statement is used? [0] Name("p") 0]") options
document document
.getEleme .getEleme
document.get ntsByTag ntsByTag
Carefully read the question and answer accordingly. ElementsByT Name("p") Name("p[ None of
In JavaScript, for reading the contents inside the first agName("p").i [0].innerT 0]").innert the listed
paragraph tag which statement is used? nnertext() ext; ext() options
Carefully read the question and answer accordingly.
Consider Vijay is developing a web application. Which method getEleme None of
he can use to get a collection of elements of same type (for getElementBy getEleme ntsByTag the listed
example paragraph tags) in Java Script? Name() ntById() Name() options
Document
Builder
DocumentBuil Document b=factory.
der b=new Builder new None of
Carefully read the question and answer accordingly. DocumentBuil b=new Document the listed
Which statement creates DocumentBuilder instance? der(); Builder(); Builder(); options
Extensibl
Extensive Extensibl e Style None of
Carefully read the question and answer accordingly. Style sheet e Style Sheet the listed
What does XSL stands for? language Language Language options
Document
BuilderFa
Document ctory
DocumentBuil BuilderFa f=Docume
derFactory ctory f= ntBuilderF
f=new BuilderFa actory.ne None of
Carefully read the question and answer accordingly. DocumentBuil ctory.newI wInstance the listed
Which statement creates DocumentBuilderFactory instance? derFactory(); nstance(); (); options
None of
Carefully read the question and answer accordingly. the listed
Which language is used for formatting XML documents? XSL XSLT XSL-FO options
None of
Carefully read the question and answer accordingly. the listed
Which is used to transform XML document? Xpath XSLT XSL options
Carefully read the question and answer accordingly.
What are the two common exceptions in JAXP?
1.ParserConfigurationException
2.FactoryConfigurationException
3.FactoryConfigurationError 1&2 3 1&3 1
Java API
eXtensibl Java API
Java API e for XML None of
Carefully read the question and answer accordingly. eXtensive Processin Processin the listed
JAXP Stands for: processing g g options
None of
Carefully read the question and answer accordingly. javax.xml.par javax.xml. javax.pars the listed
In which package JAXP related API's are available? sers.*; *; ers.xml.*; options
<xs:compl <xs:compl
exType exType
name="C name="C
ountrInfo" ountrInfo"
><xs:choi ><xs:seq
ce> uence>
<xs:eleme <xs:eleme
<xs:complexT nt nt
ype name="co name="co
name="Count untryNam untryNam
rInfo"><xs:all e" e"
> <xs:element type="xs:s type="xs:s
name="countr tring"/> tring"/>
yName" <xs:eleme <xs:eleme
type="xs:strin nt nt
g"/> name="st name="st
<xs:element ates" ates"
name="states type="xs:i type="xs:i
" nteger"/> nteger"/>
type="xs:integ </xs:choic </xs:sequ
Carefully read the question and answer accordingly. er"/></xs:all> e></xs:co ence></x None of
Which complex type specifies that the elements should always </xs:complex mplexTyp s:complex the listed
be in the order specified? Type> e> Type> options
<xs:eleme <xs:eleme
nt nt
<xs:element name="C name="C
name="Count ountryNa ountryNa
ryName" me" me"
type="xs:strin type="xs:s type="xs:s
Carefully read the question and answer accordingly. g" tring" tring" None of
Which statement specifies a constant value for a simple constant="Ind fixed="Ind fixedvalue the listed
element? ia"/> ia"/> ="India"/> options
<xs:compl <xs:compl
exType exType
name="C name="C
ountrInfo" ountrInfo"
><xs:choi ><xs:seq
ce> uence>
<xs:eleme <xs:eleme
<xs:complexT nt nt
ype name="co name="co
name="Count untryNam untryNam
rInfo"><xs:all e" e"
> <xs:element type="xs:s type="xs:s
name="countr tring"/> tring"/>
yName" <xs:eleme <xs:eleme
type="xs:strin nt nt
g"/> name="st name="st
<xs:element ates" ates"
name="states type="xs:i type="xs:i
" nteger"/> nteger"/>
type="xs:integ </xs:choic </xs:sequ
Carefully read the question and answer accordingly. er"/></xs:all> e></xs:co ence></x None of
Which complex type signifies that only one of the child </xs:complex mplexTyp s:complex the listed
elements can appear? Type> e> Type> options
InputStre
am and
Carefully read the question and answer accordingly. OutputStr
Consider you are developing an application where you have to Reader and eam None of
store and retrieve data in character format in file. Which API Writer Stream Stream Collection the listed
you will use to store and retrieve the data in character format? APIs APIs APIs options
Both of
Any one will them will It is
be executed be None of dependen
Carefully read the question and answer accordingly. first executed them will t on the
What will happen if two thread of same priority are called to be lexographicall simultane be operating
processed simultaneously? y ously executed system.
Carefully read the question and answer accordingly.
In Thread implementation methods like wait(), notify(),
notifyAll() should be used in synchronized context .
State true or false TRUE FALSE
Allows
interopera Reduces
bility effort to
Carefully read the question and answer accordingly. Reduces among learn and Fosters
Select the advantages of using Collection API’s in java programming unrelated to use software
application development. effort APIs new APIs reuse
Check
Check whether
whether you have
Check you have marked
Carefully read the question and answer accordingly. whether you implemen Customer
Consider you are trying to persist or store object of Customer have ted class
class using ObjectOutputStream class in java. When you are implemented Customer methods
trying to persist customer object data java code is throwing Customer class with with
runtime exception without persisting object information. Please class with Externaliz synchroni None of
suggest what is the key important factor you have consider in Serializable able zed the listed
code in order to persist customer object data. interface interface keyword options
Easier
maintena
nce. If a
Global business
Faster enforcem policy
application ent of changes, Improve
development. business you need performan
Because the rules. to change ce in
database Define a only the client/serv
stores trigger correspon er
triggers, you once and ding environm
do not have then trigger ent. All
to code the reuse it program rules run
trigger for any instead of in the
actions into applicatio each server
Carefully read the question and answer accordingly. each n that applicatio before the
Which of the following is the benefits using triggers in database database uses the n result
management system? application. database. program. returns.
Carefully read the question and answer accordingly.
What is the collection exception raised for the below code?
DECLARE
TYPE NumList IS TABLE OF NUMBER;
nums NumList;
BEGIN SUBSCRIPT_ COLLEC NO_DAT
nums(1) := 1; BEYOND_CO TION_IS_ A_FOUN VALUE_E
END; UNT NULL D RROR
SELECT
dept_id, SELECT
MIN dept_id,
(salary), SELECT MIN
MAX dept_id, (salary),
(salary) MIN(salar MAX
Carefully read the question and answer accordingly. FROM y), (salary)
Examine the description of the employees table: SELECT employee MAX(sala FROM
EMP_ID NUMBER (4) NOT NULL dept_id, MIN s WHERE ry) FROM employee
LAST_NAME VARCHAR2 (30) NOT NULL (salary), MAX MIN employee s GROUP
FIRST_NAME VARCHAR2 (30) (salary) (salary) < s BY
DEPT_ID NUMBER (2) FROM 2000 HAVING dept_id
JOB_CAT VARCHAR (30) employees AND MAX MIN HAVING
SALARY NUMBER (8, 2) WHERE (salary) > (salary) < MIN(salar
Which of the following SQL statements shows the department MIN(salary) < 5000 2000 y) < 2000
ID, minimum salary, and maximum salary paid in that 2000 AND GROUP AND MAX AND MAX
department, only if the minimum salary is less than 2000 and MAX (salary) BY (salary) > (salary) >
maximum salary is more than 5000? > 5000 dept_id 5000 5000
Carefully read the question and answer accordingly.
In the Student Management system we have a table called
STUDENTS, COURSES, ENROLLMENTS with below data
TABLE DATA - STUDENTS:
STUDENTID FIRSTNAME LASTNAME
10001 Francis Peter
10002 Venkat Prasad
TABLE DATA - COURSES:
COURSEID DEPARTMENTID COURSENAME
1112 20 Science
1113 30 Economics
The below procedure is used to identify the coursenames in
the department 20.
CREATE OR REPLACE PROCEDURE
proc_coursename(p_deptid IN courses.departmentid%TYPE)
AS
v_coursename VARCHAR2(10);
CURSOR c_coursename IS
SELECT coursename
FROM courses
WHERE departmentid = p_deptid;
BEGIN
FOR v_rec_coursename IN c_coursename LOOP
DBMS_OUTPUT.PUT_LINE('The course in Department ID:'||'
'||p_deptid||' '||'is'||' '||v_rec_coursename.coursename);
END LOOP;
END proc_coursename; TRUE FALSE
Applicatio Network
Carefully read the question and answer accordingly. Execution n bandwidth
Select the key advantages of using Store procedures in plan retention modulariz conservati Improved
database management system. and reuse ation on security
VARCHAR2( FROM firstname,
10); TBL_stud lastname
v_lastname ents FROM
VARCHAR2( WHERE TBL_stud
10); studentid ents
CURSOR = WHERE
c_student_na p_student studentid
me IS id; BEGIN =
SELECT OPEN p_student
firstname, c_student id; BEGIN
lastname _name; OPEN
FROM LOOP c_student
TBL_students FETCH _name;
WHERE c_student LOOP
studentid = _name FETCH
p_studentid; INTO c_student
BEGIN OPEN v_firstna _name
c_student_na me,v_last INTO
me; LOOP name; v_firstna
FETCH EXIT me; EXIT
c_student_na WHEN WHEN
me INTO c_student c_student
v_firstname,v _name _name
_lastname; %NOTFO %NOTFO
EXIT WHEN UND; UND;
Carefully read the question and answer accordingly. c_student_na DBMS_O DBMS_O
In the Student Management system we have a table called me UTPUT.P UTPUT.P
STUDENTS with attributes STUDENID ,FIRSTNAME , %NOTFOUN UT_LINE( UT_LINE(
LASTNAME. D; v_firstna v_firstna
TABLE DATA: DBMS_OUTP me||','|| me||','||
STUDENTID FIRSTNAME LASTNAME UT.PUT_LIN v_lastnam v_lastnam
10001 Francis Peter E(v_firstname e); END e); END
10002 Venkat Prasad ','v_lastname) LOOP; LOOP;
Which PLSQL block in the options concatenates both the ; END LOOP; CLOSE CLOSE
Firstname and Lastname with ',' symbol. NOTE : STUDENTID CLOSE c_student c_student None of
should be passed as parameter. c_student_na _name; _name; the listed
SAMPLE OUTOUT : Francis,Peter me; END; END; END; options
SELECT
SELECT ABS("- SELECT
SELECT ABS(-80), 80") ABS('-80')
Carefully read the question and answer accordingly. ABS(-80) Absolute Absolute Absolute
Which of the following SQL statements will calculate and return "Absolute" FROM FROM FROM
the absolute value of -80? FROM DUAL DUAL DUAL DUAL
Use Use
Aggregat Aggregat
Use e function e function
Carefully read the question and answer accordingly. Aggregate along with along with
XYZ company database has SALES table which captures all function along WHERE ORDER
department sales information. You have been asked to create with GROUP clause in BY clause
department wise summarized total sales report from SALES BY clause in query to in query None of
table. Which of the following correct option will fetch you query to retrieve to retrieve the listed
meaning full result? retrieve result result result options
CURSOR c1 DESC; yees
is SELECT v_employ ORDER
employeeid, eeid BY salary
firstname||','|| NUMBER; DESC;
lastname v_name v_employ
"Name" , VARCHA eeid
salary FROM R2(30); NUMBER;
tbl_employee v_salary v_name
s ORDER BY NUMBER; VARCHA
salary DESC; BEGIN R2(30);
v_employeeid OPEN c1; v_salary
NUMBER; FOR i IN NUMBER;
v_name 1..4 BEGIN
VARCHAR2( LOOP OPEN c1;
30); v_salary FETCH FETCH
NUMBER; c1 INTO c1 INTO
BEGIN OPEN v_employ v_employ
c1; FOR i IN eeid, eeid,
1..3 LOOP v_name, v_name,
FETCH c1 v_salary; v_salary;
INTO INSERT INSERT
v_employeeid INTO INTO
, v_name, temp temp
v_salary; VALUES VALUES
INSERT (v_emplo (v_emplo
INTO temp yeeid, yeeid,
Carefully read the question and answer accordingly. VALUES v_name, v_name,
Which anonymous block to select first 3 highest paid salary (v_employeei v_salary); v_salary);
and to insert into a temp table without any duplicate entry. d, v_name, EXIT EXIT
TABLE DATA : TBL_EMPLOYEES v_salary); WHEN WHEN
EmployeeID Salary DepartmentID EXIT WHEN c1%NOT c1%NOT
258963 3000 20 c1%NOTFOU FOUND; FOUND;
257896 6000 30 ND; COMMIT; COMMIT;
457892 3000 40 COMMIT; END END
564232 3000 40 END LOOP; LOOP; LOOP; None of
254589 8000 50 CLOSE c1; CLOSE CLOSE the listed
784555 5000 20 END; c1; END; c1; END; options
DECLAR
Ex
VARCHA
DECLARE x R2 (5); BEGIN
VARCHAR2 BEGIN SELECT
(5); BEGIN SELECT pkg_var.d
SELECT dummy_v ummy_va
pkg_var.dum ar INTO x r INTO x
Carefully read the question and answer accordingly. my_var INTO FROM FROM
How to reference the below Packaged variables outside of x FROM DUAL; DUAL;
PLSQL? DUAL; DBMS_O DBMS_O
CREATE OR REPLACE PACKAGE pkg_var AS DBMS_OUTP UTPUT.p UTPUT.p None of
dummy_var CONSTANT VARCHAR2 (5) := 'xyz'; UT.put_line ut_line ut_line the listed
END pkg_var; (x); END; (x); END; (x); END; options
Carefully read the question and answer accordingly.
A Service locator is best implemented as a singleton TRUE FALSE
Carefully read the question and answer accordingly.
Which design pattern used in creating connections using Java Factory Abstract
Database Connectivity (JDBC) API Proxy pattern Pattern Iterator Factory
Carefully read the question and answer accordingly.
The template pattern avoids code duplication by defining
common algorithm in base class and let the subclasses to
implement the variations in the algorithm TRUE FALSE
It
increases It
It reduces the increases
network traffic complexit the
by combining y of the network
multiple calls remote performan
into one interface Minimizes ce by
network call and the introducin
and fetch and access by latency g multiple
return removing and fine
multiple coarse server grained
Carefully read the question and answer accordingly. values in one grained resource remote
Select the benefit of using Transfer Object design pattern trip methods usage requests
the
implemen
tation
code for
Singleton
pattern :
public
class
PrinterSin
gleton
{ public
PrinterSin
gleton
instance =
To null;
implemen private
t singleton PrinterSin
pattern, gleton ()
we create { } public
static PrinterSin
reference gleton
to the getInstan
singleton ce()
instance { if(instan
and return ce ==
a null)
reference { instance
Singleton Provides to that = new
pattern global instance PrinterSin
ensures that access to from a gleton (); }
only one the static return
Carefully read the question and answer accordingly. object for the Singleton instance() instance;
Select the options which are true for Singleton pattern class created Object method } }
Carefully read the question and answer accordingly.
A good designed application should have " tight coupling and
low cohesion" TRUE FALSE
AnswerD
Choice5 Grade1 Grade2 Grade3 Grade4 Grade5 escription QuestionMAnswerMedAuthor
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
A firewall
server will
add
security
tokens to
the
requests
before
passing to
destinatio
n server 0 0 0.5 0.5 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0.5 0 0.5 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
None of
the above 0 1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0.33 0.33 0.33 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
<jsp:useB
ean
id="accou
nt"
type="co
m.cts.Acc
ount"
scope="s
ession">
<jsp:getPr
operty
name="ac
count"
property="
accountN
umber" />
</jsp:use
Bean> 0 0 0 1 0 TEXT TEXT
None of
the given
option 0 0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1&5 0 0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
private,ab
stract 0 1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 0 0 1 TEXT TEXT
No Output 0 0 0 0 1 TEXT TEXT
None of
the
options. 0 0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
Synchroni
zed
interfaces 0.5 0.5 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
E 0 0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
2&4 0 0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0.33 0.33 0.33 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
64 0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
The
program
generates
a
compilatio
n error. 0 1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
None Of
the
options 1 0 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
date
functions
cannot be
converted
into char 0 1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
20 1 0 0 0 0 TEXT TEXT
None of
the listed
options 0 0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
Create
sequence
MySeq as
Start with
2
Increment
by 2 0 0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
It would
remain
disabled
and has
to be
enabled
manually
using the
ALTER
Constraint
command
. 0 0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
All of the
listed
options 0 0 0 0 1 TEXT TEXT
Incorrect
syntax to
create a
synonym 0 0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 TEXT TEXT
Cannot
drop
tables
from
Recycle
Bin 1 0 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
You can
join "n"
tables(all
having
single
column
primary
keys)in a
SQL
statement
by
specifying
a
minimum
of "n-1"
join
conditions
. 0 0 0 0 1 TEXT TEXT
Select
count(*)
from emp
where sal
in (select
avg(sal)
from
emp); 0 1 0 0 0 TEXT TEXT
select
empNam
e,
empNo
from emp
where
empno
between (
select
deptNo
from dept) 0 0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
You want
all
matched
and
unmatche
d data
from only
one table. 0 0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
2&4 1 0 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
Compiles
and runs
without
any
output 0 0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
None of
the listed
options 1 0 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
Compiles
executes
and prints
11 12 13
More 0 0 1 0 0 TEXT TEXT
0.33 0.33 0 0.33 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
None of
the listed
options 0 1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 TEXT TEXT
FOR
EACH
ROW
statement
-level
trigger on
the EMP
table. 1 0 0 0 0 TEXT TEXT
1 0 TEXT TEXT
dbms_out
put.put_li
ne(secon
d_rec.nes
ted_rec.fir
st_rec.var
1); 0 0 0 1 0 TEXT TEXT
None of
the listed
options 1 0 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
No output
is
displayed. 0 0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
Replacing
RAISE_A
PPLICATI
ON_ERR
OR(-
20000,
'no
negative
age
allowed');
to
RAISE_A
PPLICATI
ON_ERR
OR(-
20000,”no
negative
age
allowed”);
will give
the
desired
output 0 0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
Define ,
Open ,
Fetch ,
Close 0 1 0 0 0 TEXT TEXT
0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0.5 0 0.5 TEXT TEXT
Compiles
, executes
prints 3
Delhi
Delhi 0 1 0 0 0 TEXT TEXT
Compiles
, executes
and prints
12345
67 0 0 0 1 0 TEXT TEXT
Compiles
, executes
and prints
2, ,3 ,4, 5,
6, 7 0 0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
Compiles
fine and
prints the
output as
1 0 0 0 1 0 TEXT TEXT
Compiles
and runs
without
any
output 0 0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 0 1 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
All of the
listed
options 0 0 0 0 1 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
All of the
listed
options 0 0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 0 1 TEXT TEXT
1 0 TEXT TEXT
None of
the listed
options 1 0 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 0 1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 TEXT TEXT
All of the
listed
options 0 0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0 0 1 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 0.5 0.5 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
0 1 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
0 1 0 0 TEXT TEXT
1 0 0 0 TEXT TEXT
Cohesion
is the OO
principle
most
closely
associate
d with
allowing
an object
to have
many
types 0 0.33 0.33 0.33 0 TEXT TEXT
1 0 0 0 TEXT TEXT
Applicatio
nContext
is the
example
of
Singleton
Pattern 0.25 0.25 0.25 0 0.25 TEXT TEXT
0 1 TEXT TEXT
Reviewer Is Numeric
Servlets 2 69 68 12-Apr 184-250
128 135 8 13-Apr 251-320 69
174 177 4
181 183 3
JSP 70 127 58
136 173 38
178 180 3
Core Java 184 412 229
PL/SQL 416 552 137
HTML 553 570 18
JavaScript 571 579 9
xml 580 602 23
Industry Practices 603 618 16
Core Java Scenarios 619 679 61
J2EE Design Patterns 680 695 16
691