多选题Given: Which two code fragments, inserted independently at line 13, will compile?()Asuper(name, baseSalary);Bthis.commission = commission;Csuper();this.commission = commission;Dthis.commission = commission;super();E super(name, baseSalary);this.commi

题目
多选题
Given: Which two code fragments, inserted independently at line 13, will compile?()
A

super(name, baseSalary);

B

this.commission = commission;

C

super();this.commission = commission;

D

this.commission = commission;super();

E

 super(name, baseSalary);this.commission = commission;

F

this.commission = commission;super(name, baseSalary);

G

super(name, baseSalary, commission);


相似考题
更多“多选题Given: Which two code fragments, inserted independently at line 13, will compile?()Asuper(name, baseSalary);Bthis.commission = commission;Csuper();this.commission = commission;Dthis.commission = commission;super();Esuper(name, baseSalary);this.commis”相关问题
  • 第1题:

    Given:Which four code fragments, inserted independently at line 7, will compile?()

    A.public void m1() { }

    B.protected void m1() { }

    C.private void m1() { }

    D.void m2() { }

    E.public void m2() { }

    F.protected void m2() { }

    G.private void m2() { }


    参考答案:A, B, E, F

  • 第2题:

    The EMPLOYEE tables has these columns:LAST_NAME VARCHAR2(35)SALARY NUMBER(8,2)COMMISSION_PCT NUMBER(5,2)You want to display the name and annual salary multiplied by the commission_pct for all employees. For records that have a NULL commission_pct, a zero must be displayed against the calculated column.Which SQL statement displays the desired results? ()

    A. SELECT last_name, (salary * 12) * commission_pct FROM EMPLOYEES;

    B. SELECT last_name, (salary * 12) * IFNULL(commission_pct, 0) FROM EMPLOYEES;

    C. SELECT last_name, (salary * 12) * NVL2(commission_pct, 0) FROM EMPLOYEES;

    D. SELECT last_name, (salary * 12) * NVL(commission_pct, 0) FROM EMPLOYEES;


    参考答案:D

  • 第3题:

    Click the Exhibit button and examine the data from the EMP table.The COMMISSION column shows the monthly commission earned by the employee.Which two tasks would require subqueries or joins in order to be performed in a single step? ()

    A.listing the employees who earn the same amount of commission as employee 3

    B.finding the total commission earned by the employees in department 10

    C.finding the number of employees who earn a commission that is higher than the average commission of the company

    D.listing the departments whose average commission is more than 600

    E.listing the employees who do not earn commission and who are working for department 20 in descending order of the employee ID

    F.listing the employees whose annual commission is more than 6000


    参考答案:A, C

  • 第4题:

    10. public class Bar {  11.static void foo(int...x) {  12. // insert code here  13. }  14. }  Which two code fragments, inserted independently at line 12, will allow the class to compile?()

    • A、 foreach(x) System.out.println(z);
    • B、 for(int z : x) System.out.println(z);
    • C、 while( x.hasNext()) System.out.println( x.next());
    • D、 for( int i=0; i< x.length; i++ ) System.out.println(x[i]);

    正确答案:B,D

  • 第5题:

    Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()

    • A、String s = c.readLine();
    • B、char[ ] c = c.readLine();
    • C、String s = c.readConsole();
    • D、char[ ] c = c.readConsole();
    • E、String s = c.readLine("%s", "name ");
    • F、char[ ] c = c.readLine("%s", "name ");

    正确答案:A,E

  • 第6题:

    The EMPLOYEE tables has these columns: LAST_NAME VARCHAR2(35) SALARY NUMBER(8,2) COMMISSION_PCT NUMBER(5,2) You want to display the name and annual salary multiplied by the commission_pct for all employees. For records that have a NULL commission_pct, a zero must be displayed against the calculated column. Which SQL statement displays the desired results?()

    • A、SELECT last_name, (salary * 12) * commission_pct FROM EMPLOYEES;
    • B、SELECT last_name, (salary * 12) * IFNULL(commission_pct, 0) FROM EMPLOYEES;
    • C、SELECT last_name, (salary * 12) * NVL2(commission_pct, 0) FROM EMPLOYEES;
    • D、SELECT last_name, (salary * 12) * NVL(commission_pct, 0) FROM EMPLOYEES;

    正确答案:D

  • 第7题:

    The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2 (25) SALARY NUMBER (6,2) COMMISSION_PCT NUMBER (6) You need to write a query that will produce these results: 1. Display the salary multiplied by the commission_pct. 2. Exclude employees with a zero commission_pct. 3. Display a zero for employees with a null commission value. Evaluate the SQL statement: SELECT LAST_NAME, SALARY*COMMISSION_PCT FROM EMPLOYEES WHERE COMMISSION_PCT IS NOT NULL; What does the statement provide? ()

    • A、All of the desired results
    • B、Two of the desired results
    • C、One of the desired results
    • D、An error statement

    正确答案:C

  • 第8题:

    多选题
    Examine the data from the EMP table: EMP_ID DEPT_ID COMMISSION 1 10 500 2 20 1000 3 10 4 10 600 5 30 800 6 30 200 7 10 8 20 300 The COMMISSION column shows the monthly commission earned by the employee. Which three tasks would require subqueries or joins in order to perform in a single step? ()
    A

    Deleting the records of employees who do not earn commission.

    B

    Increasing the commission of employee 3 by the average commission earned in department 20.

    C

    Finding the number of employees who do NOT earn commission and are working for department 20.

    D

    Inserting into the table a new employee 10 who works for department 20 and earns a commission that is equal to the commission earned by employee 3.

    E

    Creating a table called COMMISSION that has the same structure and data as the columns EMP_ID and COMMISSIONS of the EMP table.

    F

    Decreasing the commission by 150 for the employees who are working in department 30 and earning a commission of more then 800.


    正确答案: D,A
    解析: 暂无解析

  • 第9题:

    多选题
    10.publicclassBar{ 11.staticvoidfoo(int...x){ 12.//insertcodehere 13.} 14.} Which two code fragments,inserted independently at line1 2,will allow the class to compile()
    A

    foreach(x)System.out.println(z);

    B

    for(intz:x)System.out.println(z);

    C

    while(x.hasNext())System.out.println(x.next());

    D

    for(inti=0;i


    正确答案: D,A
    解析: 暂无解析

  • 第10题:

    多选题
    10. public class Bar {  11.static void foo(int...x) {  12. // insert code here  13. }  14. }  Which two code fragments, inserted independently at line 12, will allow the class to compile?()
    A

    foreach(x) System.out.println(z);

    B

    for(int z : x) System.out.println(z);

    C

    while( x.hasNext()) System.out.println( x.next());

    D

    for( int i=0; i< x.length; i++ ) System.out.println(x[i]);


    正确答案: B,C
    解析: 暂无解析

  • 第11题:

    多选题
    Given: Which four code fragments, inserted independently at line 7, will compile?()
    A

    public void m1() { }

    B

    protected void m1() { }

    C

    private void m1() { }

    D

    void m2() { }

    E

    public void m2() { }

    F

    protected void m2() { }


    正确答案: F,A
    解析: 暂无解析

  • 第12题:

    单选题
    The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2 (25) SALARY NUMBER (6,2) COMMISSION_PCT NUMBER (6) You need to write a query that will produce these results: 1. Display the salary multiplied by the commission_pct. 2. Exclude employees with a zero commission_pct. 3. Display a zero for employees with a null commission value. Evaluate the SQL statement: SELECT LAST_NAME, SALARY*COMMISSION_PCT FROM EMPLOYEES WHERE COMMISSION_PCT IS NOT NULL; What does the statement provide? ()
    A

    All of the desired results

    B

    Two of the desired results

    C

    One of the desired results

    D

    An error statement


    正确答案: B
    解析: 暂无解析

  • 第13题:

    The EMPLOYEES table contains these columns:LAST_NAME VARCHAR2 (25)SALARY NUMBER (6,2)COMMISSION_PCT NUMBER (6)You need to write a query that will produce these results:1. Display the salary multiplied by the commission_pct.2. Exclude employees with a zero commission_pct.3. Display a zero for employees with a null commission value. Evaluate the SQL statement:SELECT LAST_NAME, SALARY*COMMISSION_PCT FROM EMPLOYEESWHERE COMMISSION_PCT IS NOT NULL;What does the statement provide? ()

    A. All of the desired results

    B. Two of the desired results

    C. One of the desired results

    D. An error statement


    参考答案:C

  • 第14题:

    Examine the data from the EMP table:The COMMISSION column shows the monthly commission earned by the employee.Which three tasks would require subqueries or joins in order to perform in a single step?()

    A. Deleting the records of employees who do not earn commission.

    B. Increasing the commission of employee 3 by the average commission earned in department 20.

    C. Finding the number of employees who do NOT earn commission and are working for department 20.

    D. Inserting into the table a new employee 10 who works for department 20 and earns a commission that is equal to the commission earned by employee 3.

    E. Creating a table called COMMISSION that has the same structure and data as the columns EMP_ID and COMMISSIONS of the EMP table.

    F. Decreasing the commission by 150 for the employees who are working in department 30 and earning a commission of more then 800.


    参考答案:B, D, F

  • 第15题:

    1. public class Employee {  2. String name;  3. double baseSalary;  4. Employee(String name, double baseSalary) {  5. this.name = name;  6. this.baseSalary = baseSalary;  7. }  8. }  And:  1. public class Salesperson extends Employee { 2. double commission;  3. public Salesperson(String name, double baseSalary,  4. double commission) {  5. // insert code here  6. } 7. }  Which code, inserted at line 7, completes the Salesperson constructor?() 

    • A、 this.commission = commission;
    • B、 superb(); commission = commission;
    • C、 this.commission = commission; superb();
    • D、 super(name, baseSalary); this.commission = commission;
    • E、 super(); this.commission = commission;
    • F、 this.commission = commission; super(name, baseSalary);

    正确答案:D

  • 第16题:

    1. class Super {  2. private int a;  3. protected Super(int a) { this.a = a; }  4. }  .....  11. class Sub extends Super {  12. public Sub(int a) { super(a); }  13. public Sub() { this.a= 5; }  14. }  Which two, independently, will allow Sub to compile?()

    • A、 Change line 2 to: public int a;
    • B、 Change line 2 to: protected int a;
    • C、 Change line 13 to: public Sub() { this(5); }
    • D、 Change line 13 to: public Sub() { super(5); }
    • E、 Change line 13 to: public Sub() { super(a); }

    正确答案:C,D

  • 第17题:

    Given: 35.String #name = "Jane Doe"; 36.int $age = 24; 37.Double _height = 123.5; 38.double ~temp = 37.5; Which two statements are true?()

    • A、Line 35 will not compile.
    • B、Line 36 will not compile.
    • C、Line 37 will not compile.
    • D、Line 38 will not compile.

    正确答案:A,D

  • 第18题:

    Management has asked you to calculate the value 12*salary* commission_pct for all the employees in the EMP table. The EMP table contains these columns: LAST NAME VARCNAR2(35) NOT NULL SALARY NUMBER(9,2) NOT NULL COMMISION_PCT NUMBER(4,2) Which statement ensures that a value is displayed in the calculated columns for all employees?()

    • A、SELECT last_name, 12*salary* commission_pct FROM emp;
    • B、SELECT last_name, 12*salary* (commission_pct,0) FROM emp;
    • C、SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;
    • D、SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;

    正确答案:C

  • 第19题:

    客户需要计算EMP表中所有职工12*salary* commission_pct的值.EMP表结构如下:LAST NAME VARCNAR2(35)NOT NULL SALARY NUMBER(9,2)NOT NULL COMMISION_PCTNUMBER(4,2)哪个语句可以查询计算EMP表中所有职工行?()

    • A、SELECT last_name,12*salary* commission_pct FROM emp
    • B、SELECT last_name,12*salary*(commission_pct,0)FROM emp
    • C、SELECT last_name,12*salary*(nvl(commission_pct,0))FROM emp如果oracle第一个参数为空那么显示第二个参数的值,如果第一个参数的值不为空,则显示第一个参数本来的值
    • D、SELECT last_name,12*salary*(decode(commission_pct,0))FROM emp

    正确答案:C

  • 第20题:

    多选题
    1. class Super {  2. private int a;  3. protected Super(int a) { this.a = a; }  4. }  .....  11. class Sub extends Super {  12. public Sub(int a) { super(a); }  13. public Sub() { this.a= 5; }  14. }  Which two, independently, will allow Sub to compile?()
    A

    Change line 2 to: public int a;

    B

    Change line 2 to: protected int a;

    C

    Change line 13 to: public Sub() { this(5); }

    D

    Change line 13 to: public Sub() { super(5); }

    E

    Change line 13 to: public Sub() { super(a); }


    正确答案: C,B
    解析: 暂无解析

  • 第21题:

    单选题
    The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2 (25) SALARY NUMBER (6,2) COMMISSION_PCT NUMBER (6) You need to write a query that will produce these results: 1. Display the salary multiplied by the commission_pct. 2. Exclude employees with a zero commission_pct. 3. Display a zero for employees with a null commission value. Evaluate the SQL statement: SELECT LAST_NAME, SALARY*COMMISSION_PCT FROM EMPLOYEES WHERE COMMISSION_PCT IS NOT NULL; What does the statement provide?()
    A

    All of the desired results

    B

    Two of the desired results

    C

    One of the desired results

    D

    An error statement


    正确答案: D
    解析: 暂无解析

  • 第22题:

    多选题
    Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()
    A

    String s = c.readLine();

    B

    char[ ] c = c.readLine();

    C

    String s = c.readConsole();

    D

    char[ ] c = c.readConsole();

    E

    String s = c.readLine(%s, name );

    F

    char[ ] c = c.readLine(%s, name );


    正确答案: B,D
    解析: 暂无解析

  • 第23题:

    多选题
    Given that c is a reference to a valid java.io.Console object,which two code fragments read a line of textfrom the console?()
    A

    String s = c.readLine();

    B

    char[] c = c.readLine();

    C

    String s = c.readConsole();

    D

    char[] c = c.readConsole();

    E

    String s = c.readLine(%s, name );


    正确答案: B,D
    解析: 暂无解析