JAVA_TEST

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

All Java programs end with what suffix?

.Java

All bytecode files end with what suffix?

.class

What punctuation symbols must be at the end of all Java program statements?

;

What is an application?

A Java program designed to operate in a stand-alone environment

What is a Java keyword?

A word that has a special meaning

What does the command System.out.println do?

Adds a line feed

What does AVR stand for?

Automatic Voltage Regulation

What does println() do when there is nothing between the (parentheses)?

Blank line

If you were to compare the executing of a Java file with the UN, how would "bytecode" fit in with the UN analogy?

Byte code would take the place of English

What type of code is created by a Java compiler?

Byte code.

Java uses a _______ to translate the program source code created by the programmer into _______.

Compiler and source code

What are the 2 parts of a computer virus?

Duplication and payload

What 3 things do you need to write a Java program?

Editor, compiler, and interpreter

What are the 3 steps of a Java program?

Execute the bytecode file with a Java Virtual Machine

What does GUI stand for?

Graphics User Interface

What does HTML stand for?

Hyper Text Markup Language

Java is an island in what country?

Indonesia

Refer to the previous question. 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, byte code, and machine code

What happens to the RAM if the computer loses power?

It is lost

What is the name for the interpreter that takes the bytecode and then executes the program?

JVM

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 an applet?

Java program designed to operate inside a web page

you see public class Jessica in your program, what name must the file have?

Jessica

1. What is the difference between the PRO version and the LE version of JCreator?

LE is free and good for educational purposes

Every application program has a _______________ segment

Main

When downloading the JDK from Sun Microsystems, what is the difference between downloading the Offline or the Online installation file?

Online choice downloads a very small file with instructions to download additional information during software installation. The Offline choice downloads all the necessary files required for installation

Why is it bad to leave your computer both logged in and unattended?

People can get information off of it and put it on a usb drive

What does it mean when we say that keywords in Java are "case-sensitive"?

Print is not the same as print

Explain the difference between print and println

Println includes cartriage return

Two or more keywords combine to make what?

Program statement

What does RAM stand for?

Random access memory

Look at figure 2.39. The first 5 lines of program Java0201.java all begin with //. What does that mean?

Shows that what follows is a comment

What is spyware?

Special software, called spyware, snoops around your computer and tries to record information

Both print and println follow what Java keyword(s)?

System.out.

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 _______________________. Error messages

Why is the JRE necessary?

To run programs that have already been created

What does Java use an interpreter for?

To understand byte code

What are the 3 steps of a Java program?

Translate the source code file with a Java compiler into an intermediate bytecode file that will end with .class.

What does URL stand for?

Uniform Resource Locator

What does USB stand for?

Universal Serial Bus

List 2 benefits with using Java on a web page?

With Java it is possible to make web pages dynamic and interact with the user. Regular web pages can look pretty

1. Explain why the United Nations "2-step translation" process requires fewer translators than a "1-step translation" process.

With a 2 step translation each country only needs 1 translator who can speak their native language and English. But with the 1 step translation it requires every country have someone who can speak their native language plus another foreign language so everyone would need 199 translator for the 1 step translation

What are the 3 steps of a Java program?

Write the Java source in some text editor. The source code file must end with .java

What is bytecode?

an intermediate stage in program translation

What does CRLF stand for?

carriage-return/line-feed

Which program is larger, a compiler or an interpreter?

compiler

Are comments compiled into bytecode?

no

Can a website be written entirely in Java?

no

Does the computer understand bytecode

no

How much does it cost to download Java from Sun Microsystems?

nothing

When is a programming language considered to be platform independent?

program source code created on one type of computer platform can execute on another computer platform without any difficulty.

List 7 keywords

public, class, static, void, main, String and System.out.println

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


Ensembles d'études connexes

Embryonic to Adult Brain Derivatives

View Set

Maternal-Newborn Ch. 21 Complications occurring before labor and delivery

View Set

Midterm Part 1 & 2: Unit 1 - Unit 15

View Set

Chapter 1 Foundations for medical-surgical nursing, Ch 1, Chapter 1: Introduction to Medical-Surgical Nursing, Chapter 2 Interprofessional collaboration and care coordination, Medical Surgical Chapter 2, Chapter 3: Cultural Considerations, ch 4 Ethic...

View Set

Microeconomics 2302 Test 2-Chapters 8, 10, 11, and 13

View Set