Computer Programming II: Java Chapter 1

20 Questions | Total Attempts: 320

SettingsSettingsSettings
Please wait...
Computer Programming II: Java Chapter 1

Java is a programming language that is designed for use in the distributed environment of the internet, and it is one of the general-purpose languages in use today. Below is a review quiz over the material covered in chapter one of computer programming II at Metcalfe county high school. Do you think you can handle it? Give it a shot and get to find out!


Questions and Answers
  • 1. 
    Which of the following is not a true reason Java is so popular?
    • A. 

      Enables users to develop and deploy applications on the Internet

    • B. 

      It as a free program

    • C. 

      Java has paid lots of money for promotion of the language

    • D. 

      Java is used around the world for Internet programming purposes

  • 2. 
    What year was Java created?
    • A. 

      1996

    • B. 

      1994

    • C. 

      1995

    • D. 

      1999

  • 3. 
    What company helped create Java?
    • A. 

      Sun Microsystems

    • B. 

      Microsoft

    • C. 

      Norton's

    • D. 

      Dell

  • 4. 
    Java was created before Visual Basic?
    • A. 

      True

    • B. 

      False

  • 5. 
    Which of the following is not a general step in problem solving?
    • A. 

      Understand the problem

    • B. 

      Dissect the problem into manageable pieces

    • C. 

      Design a solution

    • D. 

      Consider alternatives to the solution and refine it

    • E. 

      Implement the solution

    • F. 

      Test the solution and fix any problems that exist

    • G. 

      Remove any unused material

  • 6. 
    What is the name of the program we use to develop out Java programs?
    • A. 

      Java Creator

    • B. 

      JCreator

    • C. 

      Creator Java

    • D. 

      Visual Java 6.0

  • 7. 
     Many projects fail because the developer or repair person didn't understand the problem to be solved. •
    • A. 

      True

    • B. 

      False

  • 8. 
    Java is case senstive
    • A. 

      True

    • B. 

      False

  • 9. 
    Which of the following are not one of the five main parts of a Java program?
    • A. 

      Main Method

    • B. 

      Class Header

    • C. 

      Class Body

    • D. 

      Method Body

    • E. 

      Main Body

    • F. 

      Method Header

  • 10. 
    Comments should be included to explain the purpose of the program and explain processing steps.
    • A. 

      True

    • B. 

      False

  • 11. 
    Reserved words can have their meaning changed in Java.
    • A. 

      True

    • B. 

      False

  • 12. 
    Which of the following is a reserved word in Java?
    • A. 

      If

    • B. 

      Would

    • C. 

      Because

    • D. 

      Loop

  • 13. 
    Why is white space needed within a computer program?
    • A. 

      JCreator and other Java programs require white space

    • B. 

      To help seperate words and symbols

    • C. 

      To add meaning to the program

    • D. 

      To help people understand what the programming is doing at a certain point

  • 14. 
    A banner has been posted inside of the computer lab at Rogers Technical Institute.  The banner reads “A solution in programming is not always a permanent fix to the problem.”  Which of the following is not a correct analysis of the banner and its overall meaning to computer programmers?
    • A. 

      The solution may not be the best (most efficient)

    • B. 

      The solution may have errors and need testing and fixing before we are done

    • C. 

      The solution may, at a later date, need revising because of new programming language features

    • D. 

      The solution needs to be reviewed by programming teams and deconstructed

  • 15. 
    Greg has been asked to work with other programmers at Java Tech to solve programming errors.  Greg wants to dissect a problem into manageable pieces before trying to solve the problem.  This is a suggested practice within the problem solving process because
    • A. 

      Most problems are too complex to be solved as a single, large activity

    • B. 

      Most problems are solved by multiple people and it is easy to assign each piece to a separate person

    • C. 

      It is easier to integrate small pieces of a program into one program than it is to integrate one big chunk of code into one program

    • D. 

      The first solution may not solve the problem correctly

  • 16. 
    Sally has been asked by her high school programming teacher to write the main method for a Java program on the SmartBoard. Which of the following structures defines the main method for a Java program?
    • A. 

      Public static void main( )

    • B. 

      Public static void main(String[ ] args);

    • C. 

      Public static void main(String[ ] args)

    • D. 

      Private static void main(String[ ] args)

  • 17. 
    • A. 

      The above image shows the program lifecycle

    • B. 

      The above image shows the error checking needed within a program

    • C. 

      The above image shows the flowcharting of Java

    • D. 

      The above image shows the basic program development cycle

  • 18. 
    A black and white picture can be stored using what two numbers?
    • A. 

      0,255

    • B. 

      0,1

    • C. 

      10,11

    • D. 

      0,99

  • 19. 
    Which of the following is not a primary color used in Java?
    • A. 

      Yellow

    • B. 

      Red

    • C. 

      Green

    • D. 

      Blue

  • 20. 
    Java programs can also be typed in which of the following software programs?
    • A. 

      Notepad

    • B. 

      Explorer

    • C. 

      Excel

    • D. 

      Visual Basic