click below
click below
Normal Size Small Size show me how
CS Test Review
Java basics
Question | Answer |
---|---|
A programming language is considered __________ if program source code created on one type of platform can execute on another platform without any difficulty. | platform independent |
Which translator is used by Java | both a compiler and an interpreter |
Java bytecode is the | intermediate code, that is low-level, but not yet ready to execute. |
Java source code is converted to bytecode with | a compiler |
_________ is a low-level code that cannot execute as a regular machine code file. | Bytecode |
_________ is understood, and executed, by a Java interpreter | Bytecode |
What do you need to write a Java program | A text editor to write the Java code, compiler to translate Java source code into byte code, and an interpreter to execute the byte code. |
Which company developed the Java programming language? | Sun Microsystems |
IDE means | integrated development environment |
JCreator is a(n) | IDE |
If the program class name test is Test05 then the program file name must be | Test05.java |
A program with one or more compile errors | cannot compile, and as a consequence cannot execute |
The syntax (sentence structure) of the source code Java program must be __________ percent correct before the source code can be translated into a bytecode file | 100 |
What is true about the program below? public class Template { public static void main (String args[]) { // The comments need to be replaced with // program statements that process and // display information. } } | The program will compile, and it will execute, but there wil not be any output display. |
Semantics refers to | the meaning of a program statement |
Syntax refers to | the spelling of a command |
Errors that occur during program compilation are called | syntax errors |
Error that occurred during execution of a program are called | run-time errors |
When a program runs and executes correctly, but the computation is wrong, this is due to | logical errors |
Java comments are | optional in a program |
Every program must start with | public class <some class name> |