Game Preview

Introduction to Java Programming - Activity#4

  •  English    10     Public
    Java basics, variables, data types, and different expressions
  •   Study   Slideshow
  • What is the final result of the following expression as evaluated by Java?
    2
  •  10
  • Which of the following is not a primitive type?
    String
  •  10
  • Which primitive type can hold the largest value?
    double
  •  10
  • What is the value of result after the following Java statements execute?
    119
  •  10
  • Which of the following is not an arithmetic operator?
    =
  •  10
  • Which of the following is the appropriate data type for the below example? _______________ mark = false;
    boolean
  •  10
  • Which of the below Java keywords is used to define a constant?
    final
  •  10
  • What is the output of the above Java program?
    MySuperJava
  •  10
  • What is the output for the above code segment?
    2.0
  •  10
  • What is the output of the following code segment? System.out.println("The result is: "+(10*20*10));
    The result is: 2000
  •  10