Download Chapter 1 questions

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Name ______________________
Java Chapter 1 Test Review
1.
Explain the difference between hardware and software.
2.
Explain the difference between main memory and secondary memory.
Which one is being used while you are writing a program?
3.
Explain the difference between machine language, high level language,
and fourth generation language.
4.
From the program on p.27, which line represents the main method
definition?
5.
What is wrong with the comments on p.30?
6.
Give three examples of legal Java identifiers and three illegal identifiers.
7.
What is the purpose of white space?
8.
How does Java treat white space?
9.
Write the word “computer” in three ways that would sound the same if
read by a human, but would be understood differently by Java.
10. Explain the difference between a compile-time error, a runtime error, and
a logical error. When is each type found?
11. Which of the errors listed in #10 could be called a syntax error? Which
could be called a programmer error?
12. What is wrong with this variable name: theReviewForTheChapter1Test ?
13. When are semicolons to be used?
14. What are two ways to denote a comment? Which can be used for a
comment that spans multiple lines?
15. What can you do to a line of code if you want the computer to “ignore” it
when running your program?
16. List the reserved words used in the program on p.27.
1