Study Guides and Actual Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA


Advertise

Submit Braindumps

Forum

Tell A Friend

    Contact Us

 Home

 Search

Latest Brain Dumps

 BrainDump List

 Certifications Dumps

 Microsoft

 CompTIA

 Oracle

  Cisco
  CIW
  Novell
  Linux
  Sun
  Certs Notes
  How-Tos & Practices 
  Free Online Demos
  Free Online Quizzes
  Free Study Guides
  Free Online Sims
  Material Submission
  Test Vouchers
  Users Submissions
  Site Links
  Submit Site

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Online Training Demos and Learning Tutorials for Windows XP, 2000, 2003.

 

 

 

 





Braindumps for "310-051" Exam

Sun Certified Enterprise Architect for J2EE Technology

 Question 100.
Given:
1. class Super {
2. public int getLength() { return 4; }
3. }
4.
5. public class Sub extends Super {
6. public long getLength() { return 5; }
7.
8. public static void main(String[] args) {
9. Super sooper = new Super();
10. Sub sub = new Sub();
11. System.out.println(
12. sooper.getLength()+","+ sub.getLength());
13. }
14. }

What is the output?

A. 4, 4
B. 4, 5
C. 5, 4
D. 5, 5
E. The code will not compile.

Answer: E

Question 101.
Given:
1. public class Foo {
2. public static void main(String[] args) {
3. int i = 1;
4. int j = i++;
5. if ((I > ++j) && (i++ ==j)) {
6. i +=j;
7. }
8. }
9. }

What is the final value of i?

A. 1
B. 2
C. 3
D. 4
E. 5

Answer: B

Question 102.
Which three are valid declarations of a float? (Choose three)

A. float foo = -1;
B. float foo = 1.0;
C. float foo = 42e1;
D. float foo = 2.02f;
E. float foo = 3.03d;
F. float foo = 0x0123;

Answer: A, D, F

Question 103.
Given:
1. public class Test {
2. public static void main( String[] args ) {
3. String foo = args[1];
4. String bar = args[2];
5. String baz = args[3];
6. System.out.println( "baz = " + baz );
7. }
8. }
And the output:
baz = 2

Which command line invocation will produce the output?

A. java Test 2222
B. java Test 1 2 3 4
C. java Test 4 2 4 2
D. java Test 4321

Answer: C

Question 104.
Which two method declarations are valid for an interface? (Choose two)

A. public double methoda();
B. static void methoda(double d1);
C. public final double methoda();
D. abstract public void methoda();
E. protected void methoda(double d1);

Answer: A, D

Question 105.
Given:
1. public class Foo {
2. public static void(String[] args) {
3. try { System.exit(0); }
4. finally { System.out.println( "Finally" ); }
5. }
6. }

What is the result?

A. The program runs and prints nothing.
B. The program runs and prints "Finally".
C. The code compiles, but can exception is thrown at runetime.
D. The code will not compile because the catch block is missing.

Answer: A

Question 106.
Given:
1. public class IfTest {
2. public static void main(String[] args) {
3. int x = 3;
4. int y = 1;
5. if (x = y)
6. System.out.println("Not equal");
7. else
8. System.out.println("Equal");
9. }
10. }

What is the result?

A. The output is "Equal".
B. The output is "Not equal".
C. An error at line 5 causes compilation to fail.
D. The program executes but does not print a message.

Answer: C

Question 107.
Given:
1. public class Test {
2. private static int j = 0;
3.
4. public static boolean methodB(int k) {
5. j += k;
6. return true;
7. }
8.
9. public static void methodA(int i) {
10. boolean b;
11. b = i < 10 | methodB(4);
12. b = i < 10 || methodB(8);
13. }
14.
15. public static void main(String args[]) {
16. methodA(0);
17. System.out.println(j);
18. }
19. }

What is the result?

A. The program prints "0".
B. The program prints "4".
C. The program prints "8".
D. The program prints "12".
E. The code does not compile.

Answer: B

Question 108.
Given:
8. int index = 1
9. boolean[] test = new boolean[3];
10. boolean foo = test[index];

What is the result?

A. foo has the value of 0.
B. foo has the value of null.
C. foo has the value of true.
D. foo has the value of false.
E. An exception is thrown.
F. The code will not compile.

Answer: D

Question 109.
Given:
1. public class X {
2. public Object m() {
3. Object o = new Float(3.14F);
4. Object [] oa = new Object[1];
5. oa[0] = o;
6. o = null;
7. return oa[0];
8. }
9. }

When is the Float object, created in line 3, eligible for garbage collection?

A. Just after line 5.
B. Just after line 6.
C. Just after line 7 (that is, as the method returns)
D. Never in this method.

Answer: D

Question 110.
Given:
1. int i = 1,j=0;
2.
3. switch(i) {
4. case 2:
5. j+=6;
6.
7. case 4:
8. j+=1;
9.
10. default:
11. j+=2;
12.
13. case 0:
14. j+=4;
15. }
16.

What is the value of j at line 16?

A. 0
B. 2
C. 3
D. 4
E. 6

Answer: E

Question 111.
You are designing a container class that will allow flexible storage of objects and access to those objects, specifically for sorting and traversing large data sets.

Which two statements must be true to allow the storage mechanisms to be placed without impacting the interface of the class? (Choose two)

A. All accessor methods must be static.
B. The storage mechanism must be private to the container class.
C. The storage mechanism can be modified by a class in the same package.
D. The objects stored in the container class can only be accessed using accessor methods.

Answer: B, D

Question 112.
1. public class Test {
2. public static void main(String args[]) {
3. int i = 0xFFFFFFF1;
4. int j = ~i;
5.
6. }
7. }

What is the decimal value of j at line 5?

A. 0
B. 1
C. 14
E. An error at line 3 causes compilation to fail.
F. An error at line 4 causes compilation to fail.

Answer: C

Question 113.
Given:
1. public class Foo {
2. public static void main(String[] args) {
3. String s;
4. System
5. }
6. }

What is the result?

A. The code compiles and "s=" is printed.
B. The code compiles and "s=null" is printed.
C. The code does not compile because String s is not initialized.
D. The code does not compile because String s cannot be referenced.
E. The code compiles, but a NullPointerException is thrown when toString is called.

Answer: C

Question 114.
Given:
1. public class WhileFoo {
2. public static void main(String[] args) {
3. int x = 1,y = 6;
4. while (y--) {x++;)
5. System.out.println("x="+x+"y="xy);
6. }
7. }

What is the result?

A. The output is x = 6 y = 0.
B. The output is x = 7 y = 0.
C. The output is x = 6 y = -1.
D. The output is x = 7 y = -1.
E. Compilation fail.

Answer: E

Question 115.
The current architecture has servlets making calls to EJB. The system has grown to over 200 servlets causing development and configuration problems. Because the system is still evolving, the APIs to the EJB have changed quite often. This has caused the servlet writers to adapt the new APIs every time a change is made.

Which two statements about this problem are true? (Choose two)

A. Introducing a configuration control system will fix the problem.
B. This is an example of brittle code dependencies and tight coupling.
C. This problem can be corrected by converting all entity EJB to stateless session EJB.
D. Introducing a client-side abstraction which sits between the servlet and FJB will break the tight
    coupling.
E. Having the servlets communicate with EJB using JMS will prevent changing servlet code every 
    time an EJB API changes.
F. Introducing a session bean, in front of all EJB, which mimics the EJB APIs will prevent 
    changing servlet code every time an EJB API changes.

Answer: B, D


Google
 
Web www.certsbraindumps.com


Braindumps: Dumps for 1Z0-047 Exam Brain Dump

Study Guides and Actual Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA


Advertise

Submit Braindumps

Forum

Tell A Friend

    Contact Us





Braindumps for "1Z0-047" Exam

Oracle Database SQL Expert

 Question 1.
Which three possible values can be set for the TIME_ZONE session parameter by using the
ALTER SESSION command? (Choose three.)

A. 'os'
B. local
C. -8:00'
D. dbtimezone Li
E. 'Australia'
	
Answer: B, C, D

Explanation:

Question 2.
EMPDET is an external table containing the columns EMPNO and ENAME. 

Which command would work in relation to the EMPDET table?

A. UPDATE empdet
    SET ename ='Amit'
    WHERE empno = 1234;
B. DELETE FROM empdet 
    WHERE ename LIKE 'J%';
C. CREATE VIEWempvu
    AS
    SELECT* FROMempdept;
D. CREATEINDEX empdet_dx
    ON empdet(empno);

Answer: C

Explanation:

Question 3.
Which three tasks can be performed using regular expression support in Oracle Database 10g? (Choose three.)

A. it can be used to concatenate two strings.
B. it can be used to find out the total length of the string.
C. it can be used for string manipulation and searching operations.
D. it can be used to format the output for a column or expression having string data.
E. it can be used to find and replace operations for a column or expression having string data.

Answer: C, D, E

Explanation:

Question 4.
Which three statements are true regarding single-row functions? (Choose three.)

A. They can accept only one argument.
B. They can be nested up to only two levels.
C. They can return multiple values of more than one data type.
D. They can be used in SELECT, WHERE, and ORDER BY clauses.
E. They can modify the data type of the argument that is referenced.
F. They can accept a column name, expression, variable name, or a user-supplied constant as 
    arguments.

Answer: D, E, F

Explanation:

Question 5.
View the Exhibit and examine the structure of the ORDERS and ORDERJTEMS tables. Evaluate the following SQL statement:
SELECT oi.order_id, product_jd, order_date
FROM order_items oi JOIN orders o
USING(order_id);

Which statement is true regarding the execution of this SQL statement?
	 

A. The statement would not execute because table aliases are not allowed in the JOIN clause.
B. The statement would not execute because the table alias prefix is not used in the USING 
    clause.
C. The statement would not execute because all the columns in the SELECT clause are not 
    prefixed with table aliases.
D. The statement would not execute because the column part of the USING clause cannot have a 
    qualifier in the SELECT list.

Answer: D

Explanation:

Question 6.
Which two statements are true regarding the execution of the correlated subqueries? (Choose two.)

A. The nested query executes after the outer query returns the row.
B. The nested query executes first and then the outer query executes.
C. The outer query executes only once for the result returned by the inner query.
D. Each row returned by the outer query is evaluated for the results returned by the inner query.

Answer: A, D

Explanation:

Question 7.
Evaluate the CREATE TABLE statement:
CREATE TABLE products
(product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY, product_name VARCHAR2(15));

Which statement is true regarding the PROD_ID_PK constraint?

A. Itwould becreated only if a unique index is manually created first.
B. Itwould becreated andwould use an automatically created unique index.
C. It would be createdandwould use an automaticallycreatednonunique index.
D. Itwouldbecreated and remainsinadisabledstatebecauseno indexis specified in the command.

Answer: B

Explanation:

Question 8.
View the Exhibit and examine the data in the
PRODUCT INFORMATION table.
 

Which two tasks would require subqueries? (Choose two.)

A. displaying the minimum list price for each product status
B. displaying all supplier IDs whose average list price is more than 500
C. displaying the number of products whose list prices are more than the average list price
D. displaying all the products whose minimum list prices are more than the average list price of 
    products having the product status orderable
E. displaying the total number of products supplied by supplier 102071 and having product status
   OBSOLETE

Answer: C, D

Explanation:

Question 9.
Which statement best describes the GROUPING function?

A. It is used to set the order for the groups to be used for calculating the grand totals and 
    subtotals.
B. It is used to form various groups to calculate total and subtotals created using ROLLUP and  
    CUBE operators.
C. It is used to identify if the NULL value in an expression is a stored NULL value or created by  
    ROLLUP or CUBE.
D. It is used to specify the concatenated group expressions to be used for calculating the grand  
    totals and subtotals.

Answer: C

Question 10.
Evaluate the following statement:
INSERT ALL
WHEN order_total < 10000 THEN
INTO small_orders
WHEN order_total > 10000 AND order_total < 20000 THEN
INTO medium_orders
WHEN order_total > 2000000 THEN
INTO large_orders
SELECT order_id, order_total, customer_id
FROM orders;

Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?

A. They areevaluatedby allthe three WHENclauses regardlessofthe resultsof the evaluation of 
    any other WHEN clause.
B. They are evaluated by thefirst WHENclause. If the condition is true, then the row would be   
    evaluated by the subsequent WHEN clauses.
C. They are evaluated by the first WHEN clause. If the condition isfalse,thenthe row 
    wouldbeevaluated by the subsequentWHENclauses.
D. TheINSERT statement would give an error becausetheELSE clause is notpresent forsupport in 
    case none of theWHENclauses are true.

Answer: A

Explanation:



Google
 
Web www.certsbraindumps.com


Study Guides and Real Exam Questions For Oracle OCP, MCSE, MCSA, CCNA, CompTIA





              Privacy Policy                   Disclaimer                    Feedback                    Term & Conditions

www.helpline4IT.com

ITCertKeys.com

Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.