You are on page 1of 2

INFO1150 Guided Reading Assignment Chapter 1-2 Read Chapter 1, pages 10 to 14.

For each question, type in your answer to the following questions in the spaces provided after each question. 1) What do operator symbols do in a Java program? an operator is a symbol that operates on one or more arguments to produce a result 2) A complete sentence or line of code in Java is called what in programming jargon? ? 3) What punctuation mark is used to mark the end of a Java program statement? ; 4) What combination of elements can be found in a Java statement?

5) Why do coders often put blank lines into their Java programs?

6) Programmer defined names are used for variables. What is meant by the term variable in computer programming? variables are assigned to a particular memory address. 7) Look at Figure 4 on page 12. Note how the variable name length is associated with the memory location with the address of 23. This is what happens when you create a variable name in a Java program. The variable name that you create is tied to or bound to, or assigned to a particular memory address. THIS IS AN IMPORTANT CONCEPT FOR YOU TO UNDERSTAND! How many data values can be stored in a variable at a time? 8) A Java source file is what you type into a text editor such as NotePad++. What is the file extension that is assigned to a Java source file? .java 9) What does the Java compiler program do to your source file? Reads entire source program and translates it all to a binary machine code file (a .exe file), BUT THE COMPILER DOES NOT RUN THE MACHINE CODE 10) One function of a compiler program is to find syntax errors. What is a syntax error? is a mistake in a line of code

2012 FC

11) Most compilers translate source code directly into a machine language executable. How is the Java compiler different from most compilers?

12) Java byte code is actually run by something called the Java Virtual Machine, or JVM. This JVM is another type of program called an interpreter. How does an interpreter program actually run the code, and how does it differ from the way a compiler works?

13) Java programs are described as being highly portable. What does this mean? they are capitable with any machine and a coder only needs one platform 14) If you want to run a C++ program on three different brands of CPUs, what does the programmer have to do in order to make sure the program works on the three different platforms?

15)

If you compare compilers to interpreters, which one is easier to develop?

16) Look at Figures 5 and 6 on page 13. These describe the Java program development process step by step. THIS IS AN IMPORTANT CONCEPT FOR YOU TO UNDERSTAND.

17) What are the differences between the Java SE, Java EE, and Java ME developer platforms? Which is each one used for?

18) To compile a Java source code file to a byte code file using the JDK in a command line window, what command do you use, and what has to follow this command?

19) Once you have compiled your source code file, what type of file will the JDK develop and save in your working file directory folder?

20) What command do you use to actually run the .class file that the Java compiler produced?

2012 FC

You might also like