Tag: web technology

Questions Related to web technology

Multiple choice technology web technology
  1. Replace line 13 with private Map<String, int> accountTotals = new HashMap<String, int>();

  2. Replace line 13 with private Map<String, Integer> accountTotals = new HashMap<String, Integer>();

  3. Replace line 13 with private Map<String<Integer>> accountTotals = new HashMap<String<Integer>>();

  4. Replace lines 17–20 with int total = accountTotals.get(accountName); if (total == null) total = 0; return total;

  5. Replace lines 17–20 with Integer total = accountTotals.get(accountName); if (total == null) total = 0; return total;

  6. Replace line 24 with accountTotals.put(accountName, amount);

Reveal answer Fill a bubble to check yourself
B,E,F Correct answer
Multiple choice technology web technology
  1. ArrayList<Integer> input = null; ArrayList<Integer> output = null;

  2. ArrayList<Integer> input = null; List<Integer> output = null;

  3. ArrayList<Integer> input = null; List<Number> output = null;

  4. List<Number> input = null; ArrayList<Integer> output = null;

  5. List<Number> input = null; List<Number> output = null;

  6. List<Integer> input = null; List<Integer> output = null;

Reveal answer Fill a bubble to check yourself
B,E,F Correct answer
Multiple choice technology web technology
  1. Fragment I compiles

  2. Fragment II compiles

  3. Fragment III compiles

  4. Fragment I executes without exception

  5. Fragment II executes without exception

  6. Fragment III executes without exception

Reveal answer Fill a bubble to check yourself
A,B,C,D,F Correct answer