Game Preview

Introduction to Java Programming - Activity#1

  •  English    14     Public
    Demonstrate understanding of the main concepts of programming and how programmers perceive it.
  •   Study   Slideshow
  • Which of the following statements is used to display an output in Java?
    System.out.println();
  •  10
  • The keyword "method" is another name for ______________.
    a function
  •  10
  • Where does a java program start executing instructions from?
    main method
  •  10
  • Which of the following is the correct header for the main() method in Java?
    public static void main (String args[])
  •  10
  • True or False: Java is case sensitive, which means identifier Hello and hello would have different meaning in Java.
    True
  •  10
  • True or False: A Java statement is one or more lines of code terminated by a semicolon.
    True
  •  10
  • True or False: Identifiers can start with a number.
    False
  •  10
  • What is the output for the following statements? System.out.println("This question"); System.out.println("is easy!");
    :)
  •  10
  • What is the output for the following statements? System.out.print("This question "); System.out.println("is easy!");
    :)
  •  10
  • What do we call the process of finding and fixing errors in programming?
    debugging
  •  10
  • True or False: A program won't run if there is a logic error.
    False
  •  10
  • True or False: Syntax errors are caused by incorrectly typed source code.
    True
  •  10
  • A non-executed line of code is called a Java _____________.
    comment
  •  10
  • Which of the following represents a single line comment in Java?
    //
  •  10