A
B
C
D
E
第1题:
Which of the following is a characteristic of a sequence?()
第2题:
Which two statements about MPLS Label Distribution Protocol (LDP) are true? ()
第3题:
Which HttpSession method stores an object in a session?()
第4题:
public class TestFive { private int x; public void foo() { int current = x; x = current + 1; } public void go() { for(int i=0;i<5;i++) { new Thread() { public void run() { foo(); System.out.print(x + “, “); } }.start(); }}} Which two changes, taken together, would guarantee the output: 1, 2, 3, 4, 5, ?()
第5题:
The value returned needs to be cast to an int.
The getAttribute methos takes two arguments.
Primitive CANNOT be stored in the HttpSession.
The HttpSession attribute name must NOT exceed eight characters.
第6题:
INSTR returns the numeric position of a named character.
NVL2 returns the first non-null expression in the expression list.
TRUNCATE rounds the column, expression, or value to n decimal places.
DECODE translates an expression after comparing it to each search value.
TRIM trims the heading or trailing characters (or both) from a character string.
NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal.
NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.
第7题:
put(String name. Object value)
set(String name. Object value)
setAttribute(String name. Object value)
putAttribute(String name. Object value)
addAttribute(String name. Object value)
第8题:
HttpSession session = request.getSession();
HttpSession session = request.getSession(id);
HttpSession session = request.getSession(true);
HttpSession session = request.getSession(false);
HttpSession session = request.getSession(jsessionid);
第9题:
<c:remove var=cart />
<c:remove var=${cart} />
<c:remove var=cart scope=session />
<c:remove scope=session>cart</c:remove>
<c:remove var=${cart} scope=session />
<c:remove scope=session>${cart}</c:remove>
第10题:
${cart = null}
<c:remove var=cart />
<c:remove var=${cart} />
<c:remove var=cart scope=session />
<c:remove scope=session>cart</c:remove>
第11题:
float Tsquare = session.getFloatAttribute(Tsquare);
float Tsquare = (Float) session.getAttribute(Tsquare);
float Tsquare = (float) session.getNumericAttribute(Tsquare);
float Tsquare = ((Float) session.getAttribute.(Tsquare)).floatValue();
float Tsquare = ((Float) session.getFloatAttribute.(Tsquare)).floatValue;
第12题:
Forwarding Class
Scheduler
Rewrite Rules
Priority
第13题:
Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()
第14题:
Given that a scoped attribute cart exist only in a user’s session, which two, taken independently, ensure the scoped attribute cart no longer exists?()
第15题:
Given that session is a valid HttpSession object: Int max = session.getAttribute(“MyReallyLongName”); Which is true?()
第16题:
Use the – replicate-do-db, — replicate-do-table, or – replicate-wild-do-table option with the value equal to OLD_INVENTORY
Change the binlog_format option to ROW and restart mysqld before you create the OLD_INVENTORY table
Stop SQL_THREAD on the slave until you have finished using the OLD_INVENTORY temporary table
Set binlog_format=MIXED with the – replicate-ignore-temp-table option
Use the – replicate-ignore-table option with the value equal to OLD_INENTORY.OLD_INVENTORY and restart mysqld before creating the temporary table
第17题:
${requestScope[’priority’] = ’medium’}
<c:set var=priority value=medium />
<c:set var=priority scope=request>medium</c:set>
<c:set var=priority value=medium scope=request />
第18题:
Move the line 12 print statement into the foo() method.
Change line 7 to public synchronized void go() {.
Change the variable declaration on line 3 to private volatile int x;.
Wrap the code inside the foo() method with a synchronized( this ) block.
Wrap the for loop code inside the go() method with a synchronized block synchronized(this) { // for loop code here }.
第19题:
session = response.getSession();
session = request.getSession();
session = request.getSession(true);
session = request.getSession(false);
session = request.getSession(jsessionid);
第20题:
${cart = null }
<c:remove var=”cart” />
<c:remove var=”${cart}” />
<c:remove var=”cart” scope=”session” />
<c:remove scope=”session”>cart</c:remove>
<c:remove var=”${cart}” scope=”session” />
<c:remove scope=”session”>${cart}</c:remove>
第21题:
They accept only a single argument
They can be nested only to two levels
Arguments can only be column values or constants
They always return a single result row for every row of a queried table
They can return a data type value different from the one that is referenced
第22题:
LDP hello packets are sent to TCP 646.
LDP session packets are sent to TCP 646.
LDP session packets are sent to TCP 711.
LDP hello packets are sent to TCP 711.
LDP hello packets are sent to UDP 711.
LDP hello packets are sent to UDP 646.
第23题:
A sequence will never generate duplicate values
The MAXVALUE of a sequence can be equal to the MINVALUE
It is not possible to create a sequence that generates a constant since the INCREMENT value must be greater than zero
When a sequence cycles back to either the MAXVALUE or MINVALUE, it will always be equal to the specified value of either of these two boundaries