1.15. Programming Exercises

 
[Page 25 ( continued )]

Review Questions

Note

Answers to review questions are on the Companion Website.


Sections 1.2 “1.4

1.1 Define hardware and software.
1.2 Define machine language, assembly language, and high-level programming language.
1.3 What is an operating system?

Section 1.5

1.4 Convert the following decimal numbers into hexadecimal and binary numbers .
  100; 4340; 2000  

1.5 Convert the following binary numbers into hexadecimal numbers and decimal numbers.
  1000011001; 100000000; 100111  

1.6 Convert the following hexdecimal numbers into binary and decimal numbers.
  FEFA9; 93; 2000  

Sections 1.6 “1.8

1.7 Describe the history of Java. Can Java run on any machine? What is needed to run Java on a computer?
1.8 What are the input and output of a Java compiler?
1.9 List some Java development tools. Are tools like Eclipse, NetBeans, and JBuilder different languages from Java, or are they dialects or extensions of Java?
1.10 What is the relationship between Java and HTML?

[Page 26]

Sections 1.9 “1.11

1.11 Explain the Java keywords. List some Java keywords you learned in this chapter.
1.12 Is Java case-sensitive? What is the case for Java keywords?
1.13 What is the Java source filename extension, and what is the Java bytecode filename extension?
1.14 What is a comment? What is the syntax for a comment in Java? Is the comment ignored by the compiler?
1.15 What is the statement to display a string on the console? What is the statement to display the message "Hello world" in a message dialog box?
1.16 Identify and fix the errors in the following code:
 1   public class   Welcome { 2   public void   Main(String[] args) { 3     System.out.println('   Welcome to Java!   ); 4   } 5 } 

1.17 What is the command to compile a Java program? What is the command to run a Java application?
1.18 If the exception NoClassFoundError is raised when you run a program, what is the cause of the error?
1.19 If the exception " NoSuchMethodError : main" is raised when you run a program, what is the cause of the error?
 


Introduction to Java Programming-Comprehensive Version
Introduction to Java Programming-Comprehensive Version (6th Edition)
ISBN: B000ONFLUM
EAN: N/A
Year: 2004
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net