Skip to main content

Posts

Showing posts with the label Accenture

Classes and Objects | Accenture TFA

  Question  1 Correct Mark 1.00 out of 1.00 Flag question Question text ___ and _____ are the access specifiers that can be applied to top level Class. Select one or more: public   protected default   private Feedback Your answer is correct. The correct answers are: default, public Question  2 Correct Mark 1.00 out of 1.00 Flag question Question text class Sample{      private double num = 100;    private int square(int a){ return a*a;    } }   public class Test{    public static void main(String args[]){   Sample obj = new Sample();   System.out.println(obj.num);  System.out.println(obj.square(10));    }   } Select one: Compile time error   Run time error Executes but no output 100 Feedback Your answer is correct. The correct answer is: Compile time error Question  3 Correct Mark 1.00 out of 1.00 Flag question Question text Choose the ...

Java Iterations | Accenture TFA

Question  1 Correct Mark 1.00 out of 1.00 Flag question Question text The break statement cannot be present for _____________ construct. Select one: if   do while while for Feedback Your answer is correct. The correct answer is:  if Question  2 Correct Mark 1.00 out of 1.00 Flag question Question text Using Java we can develop ___________________. Select one: Desktop Application Web Application Both the options   None of these options Feedback Your answer is correct. The correct answer is:  Both the options Question  3 Correct Mark 1.00 out of 1.00 Flag question Question text The main method in java should ___________. Select one: return int be   public static   be private static take boolean[] as argument Feedback Your answer is correct. The correct answer is:  be   public static Question  4 Correct Mark 1.00 out of 1.00 Flag question Question text A continue statement makes the execution jump to ______________. Select one: th...