Computer Programming Chapter 2
What does AVR stand for?
Automatic Voltage Regulation
Why is it bad to leave your computer both logged in and unattended?
Because anyone can delete, erase, or create files.
Explain why the United Nations "2-step translation" process requires fewer translators than a "1-step translation" process.
Because there would only be one translator, and English.
What type of code is created by a Java compiler?
Bytecode
List 2 benefits with using Java on a web page?
Can make it dynamic and interactive for the user, for web page security as it keeps the code safe.
What does CRLF stand for?
Carriage return line feed
Java uses a _______ to translate the program source code created by the programmer into _______.
Compiler and Bytecode
Which program is larger, a compiler or an interpreter?
Compilers
What does the command System.out.println do?
Displays the characters between the double quotes that follow.
If you were to compare the executing of a Java file with the UN, how would "bytecode" fit in with the UN analogy?
English
How much does it cost to download Java from Sun Microsystems?
Free
What does GUI stand for?
Graphic User Interface
What does HTML stand for?
Hyper Text Markup Language
Java is an island in what country?
Indonesia
Some software packages combine all 3 of these things into an IDE. What does IDE stand for?
Integrated Development Environment.
Refer to the previous question. Java then continues and uses an _______ to translate the _______ into executable _______ line by line.
Interpreter, Bytecode, File
When is a programming language considered to be platform independent?
It can run on different devices.
What does Java use an interpreter for?
It is used to translate and execute a compiled program.
What happens to the RAM if the computer loses power?
It will lose all of its unsaved data
What does println() do when there is nothing between the (parentheses)?
It will skip a line
What does JDK stand for?
Java Development Kit
What does JRE stand for?
Java Runtime Environment
What does JVM stand for?
Java Virtual Machine
What is the name for the interpreter that takes the Bytecode and then executes the program?
Java Virtual Machine
If you see public class Jessica in your program, what name must the file have?
Jessica.java
Physical damage to a computer happens, but it is not the biggest problem.The number one source of grief for many people, especially students, is _______________________.
Loss of data
Every application program has a _______________ segment.
Main
Why is the JRE necessary?
Needed to run java programs already created.
Can a website be written entirely in Java?
No
Are comments compiled into bytecode?
No they are'nt compiled
Does the computer understand bytecode?
Not necessarily
Explain the difference between print and println.
Print does not produce a carriage return but println does.
List 7 keywords
Public, class, static, void, main, String and system.out.println.
What does RAM stand for?
Random Access Memory
What punctuation symbols must be at the end of all Java program statements?
Semi Colons
What is spyware?
Snoops around computers and tries to access information.
What does it mean when we say that keywords in Java are "case-sensitive"?
Some words with Capitalized letters don't have the same meaning as lower case letters.
Both print and println follow what Java keyword(s)?
System.out
What is the difference between the PRO version and the LE version of JCreator?
The LE version is made as more accessible and simpler for public use, whereas the PRO version is made for professional programmers.
What are the 2 parts of a computer virus?
The duplication and the payload
What are the 3 steps of a Java program?
Write the Java source in some text editor, it must end with .java.Translate the source code file with a Java compiler into a Bytecode file that will end with a .class
Can Notepad be used to write a Java program?
Yes
Can a website contain multiple applets?
Yes
Can the Java compiler be accessed from the Command Prompt?
Yes
What does URL stand for?
Universal Resource Locater
What does USB stand for?
Universal Serial Bus
All Bytecode files end with what suffix?
.class
All Java programs end with what suffix?
.java
What is an application?
A java program designed to operate in a standalone environment
What is an applet?
A java program designed to operate inside a web page.
What is bytecode?
A low level code that cannot execute as a regular machine code.
Two or more keywords combine to make what?
A program statement.
What 3 things do you need to write a Java program?
A text editor, a compiler, and an interpreter
What is a Java keyword?
A word that has a special meaning and performs a special purpose.
When downloading the JDK from Sun Microsystems, what is the difference between downloading the Offline or the Online installation file?
The online version requires a smaller download and doesn't give you much of a choice, the offline version lets you decide.
The first 5 lines of program Java0201.java all begin with //.What does that mean?
They are comments or notes.