1z1-808 Exam Question 116

Given the code fragment:

What is the result?
  • 1z1-808 Exam Question 117

    Given the code fragment:

    What is the result?
  • 1z1-808 Exam Question 118

    Given:
    class Sports {
    int num_players;
    String name, ground_condition;
    Sports(int np, String sname, String sground){
    num_players = np;
    name = sname;
    ground_condition = sground;
    }
    }
    class Cricket extends Sports {
    int num_umpires;
    int num_substitutes;
    Which code fragment can be inserted at line //insert code here to enable the code to compile?
  • 1z1-808 Exam Question 119

    Given the code fragment:

    And given the requirements:
    If the value of the qty variable is greater than or equal to 90, discount = 0.5 If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements? (Choose two.)
  • 1z1-808 Exam Question 120

    Given:

    Which code fragment can replace the if block?