Java Terms UPDATED ACTUAL Exam Questions and CORRECT
Answers
What does rand.nextInt(10); return? Where rand is an object of the Random Class. - random
integer between 0 and < 10
import statement for using the Random class? - import java.util.Random;
Methods have these two elements? - header and body
decision statements like (if - else) and loops can be called? - control structures
JavaDoc produces what type of documentation? - HTML
The method header definition contains arguments or parameters? - parameters
In the method call statement that uses variables, they are called? - arguments
Process of breaking down a problem into smaller pieces? - functional decomposition
When using System.out.printf or System.out.format should you use \n or %n for a new line
character? - %n
import statement goes before or after Javadoc comment? - before
References and Acknowledgements from CS 139 go before or after the import statement? -
before
, Environment variable for java binaries like javac? - Path
Environment variable for java classes? - CLASSPATH
What software do I need to have the javac compiler installed? - Java Development Kit
In order to run javac from the command line, what environment variable must be set? - Path
The Path environment variable should have an entry for what? - JDK bin directory
A Sun Microsystems initiative to guide developers in writing, certifying, and marketing
applications written entirely in the Java(TM) programming language. - 100% Pure Java
Largely supplanted by the Project Swing component set. - AWT
AWT - Abstract Window Toolkit
parameters and arguments can also be called what and what? - formal parameters and actual
parameters
The specification of how a programmer writing an application accesses the behavior and state of
classes and objects. - API
A reusable software component. - bean
An operator that has two arguments. - binary operator
Answers
What does rand.nextInt(10); return? Where rand is an object of the Random Class. - random
integer between 0 and < 10
import statement for using the Random class? - import java.util.Random;
Methods have these two elements? - header and body
decision statements like (if - else) and loops can be called? - control structures
JavaDoc produces what type of documentation? - HTML
The method header definition contains arguments or parameters? - parameters
In the method call statement that uses variables, they are called? - arguments
Process of breaking down a problem into smaller pieces? - functional decomposition
When using System.out.printf or System.out.format should you use \n or %n for a new line
character? - %n
import statement goes before or after Javadoc comment? - before
References and Acknowledgements from CS 139 go before or after the import statement? -
before
, Environment variable for java binaries like javac? - Path
Environment variable for java classes? - CLASSPATH
What software do I need to have the javac compiler installed? - Java Development Kit
In order to run javac from the command line, what environment variable must be set? - Path
The Path environment variable should have an entry for what? - JDK bin directory
A Sun Microsystems initiative to guide developers in writing, certifying, and marketing
applications written entirely in the Java(TM) programming language. - 100% Pure Java
Largely supplanted by the Project Swing component set. - AWT
AWT - Abstract Window Toolkit
parameters and arguments can also be called what and what? - formal parameters and actual
parameters
The specification of how a programmer writing an application accesses the behavior and state of
classes and objects. - API
A reusable software component. - bean
An operator that has two arguments. - binary operator