placeholder image to represent content

Unit 1 Test Review

Quiz by JPatterson

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1
    Valid or Invalid? int x =0; x =9.523;
    invalid
    valid
    30s
  • Q2
    The formal parameters are in the method heading shown below public static double convertMilesToYards(double miles) { return 1760 * miles; }
    false
    true
    30s
  • Q3
    The actual parameter is inches: inches = convertFeetToInches(feet);
    false
    true
    30s
  • Q4
    Which of the following lines correctly defines an integer variable?
    i = 0;
    int i = 0
    int i = 0;
    integer i = 0;
    30s
  • Q5
    What is output by the code below? System.out.println( Math.pow(5,2) );
    25.0
    52
    25
    10
    30s
  • Q6
    Based on standard naming conventions in java, totalCost would be a valid _____________.
    final
    file
    variable
    method
    30s
  • Q7
    Based on standard naming conventions in java, NORTH would be a valid _____________.
    method
    file
    final
    variable
    30s
  • Q8
    Based on standard naming conventions in java, ArrayList would be a valid _____________.
    variable
    file / class
    final
    method
    30s
  • Q9
    Based on standard naming conventions in java, toString() would be a valid _____________.
    variable
    final
    file
    method
    30s
  • Q10
    int cost = 40; cost = 50; cost += 5; cost = 15 - 2; cost = cost + 3; System.out.println("The cost is " + cost);
    15
    14
    40
    16
    30s

Teachers give this quiz to your class