Computer Progran Excercise 02-1and 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Can a website be written entirely in Java?

...

What are the 2 parts of a computer virus?

...

What does IDE stand for?

...

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

...

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

...

Which program is larger, a compiler or an interpreter?

A compiler is much larger than a interpreter

What is an application?

A program designed to operate in a stand-alone environment is called an application

What is an applet?

A program designed to operate inside a web page is called an applet.

When is a programming language considered to be platform independent?

A programming language is considered platform independent or portable if program source code created on one type of computer platform can execute on another computer platform without any difficulty.

All Java programs end with what suffix?

All Java programs end with .java

All bytecode files end with what suffix?

All bytecode file end with .class

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

Anyone can access any file in your computer

What does AVR stand for?

Automatic Voltage Regulation

What is bytecode?

Bytecode is a low level-level code file that cannot execute as a regular machine code file.

Does the computer understand bytecode?

Bytecode is not understood by any computer

What does CRLF stand for?

Carriage return/line feed

What does the command System.out.println do?

Display the characters placed 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

What does GUI stand for?

Graphic User Interface

What is a Java keyword?

Is a statement that starts your program

List 2 benefits with using Java on a web page?

It is secure and interactive.

What happens to the RAM if the computer loses power?

It stores any information that was saved

What does JRE stand for?

JRE stands for Java Routine Environment

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 JVM stand for?

Java Virtual Machine

What does Java use an interpreter for?

Java compiler translates the programmers source code into bytecode and then continues with an interpreter to translate and execute the bytecode file line by line

Java is an island in what country?

Java is an island in the country of Indonesia

Are comments compiled into bytecode?

No comments are not compiled into bytecode

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

Offline installs all necessary file and online installation allows additional downloading of any additional files.

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

Println () created a blank line if it has nothing in between the parenthesis

What is spyware?

Program that snoops around your computer and tries to record information

List 7 keywords.

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

What does RAM stand for?

Random Access Memory

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

System.out.print/println

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

The external file name of your program must be identical to the public class name inside your program, minus the java extension.

Explain the difference between print and println

The print keyword generates output without a carriage return and the println keyword does include a carriage return

Why is the JRE necessary?

They run Java programs that have already been created

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

They're notes/comments

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

This means that print is a Java keyword, which is not the same as Print.

Two or more keywords combine to make what?

Two or more keywords combine to make a program statement

What does URL stand for?

Uniform Resource Locator

What does USB stand for?

Universal Serial Bar

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. Translate the source code file with a Java compiler into an intermediate bytecode file that will end with .class. Execute the bytecode file with a Java Virtual Machine (JVM) programs , which is an interpreter

Can the Java compiler be accessed from the Command Prompt?

Yes the Java compiler can be accessed from the Command Prompt

Can a website contain multiple applets?

Yes, a web page can have multiple applets

Can Notepad be used to write a Java program?

Yes, notepad can be used to write a Java program

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

You can download Java for free from sun Microsystems

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

You only need 1 translator for every language and English

What type of code is created by a Java compiler?

bytecodes

Java uses a_____to translate the program source code created by the programmer into _____

compiler bytecode

What does HTML stand for?

hyper text markup language

Refer to the previous question. Java then continues and uses an ______to translate the______into executable______file by file

interpreter bytecode file

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

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

text editor compiler interpreter


Set pelajaran terkait

Passpoint PrepU - Practice NCLEX #2

View Set

ART HISTORY TEST BFA SENIOR CLASS

View Set

Care of the Patient with a Reproductive Disorder

View Set

TEXTBOOK: Ch. 8: Television, Cable, and Mobile Video

View Set