• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/70

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

70 Cards in this Set

  • Front
  • Back
The term JRE stands for
Java Runtime Environment
Source code that has been converted to a platform-independent format is also called
bytecode
Which is NOT a common program for developing Java applications?
Javabrew
File extension used for Java source code
.java
File extension used for compiled Java code
.class
A program that executes Java files
interpreter
The term JDK stands for
Java Development Kit
A program that translates Java source code into a platform-independent format
compiler
The term JVM stands for
Java Virtual Machine
The term IDE stands for
Integrated Development Environment
The term SE (as it applies to Java) stands for
Standard Edition
Groups of related classes are organized into
packages
You can use a Scanner object to
get the next token in an input line
Which keyword is used to mean that a method won't return any values?
void
Which of the following stores a value that can change as the program executes?
variable
When using the AWT, one is using the
abstract windows toolkit
A block of code that perform a particular task is called a(n):
method
Which of the following is used to indicate a block comment?
/* */
API stands for which of the following
Application program interface
Which of the following is a symbol for a single line comment in Java?
//
Converting data from one type to another is referred to as
casting
A data type that can hold only true or false values is referred to as
boolean
What is the value of score after the following statement is run: int score = (int) 93.75;
93
Which of the following will NOT subtract 1 from x?
x = -1
Which of the following is NOT equivalent to x = x + 1?
x==1
Which is NOT one of the eight primitive Java data types?
triple
Which of the following is the correct name for a constant?
SALES_TAX
The order of precedence, from first to last, for arithmetic operations is
increment, multiply, add
The keyword to declare a constant is
final
A byte can hold how many bits?
8
Coding one IF statement inside of another IF statement is known as
nesting
Which operator returns true if both operands are equal?
==
Block scope means that a variable
can't be used outside of the set of braces that it's declared in
Which is NOT a basic control structure?
Modification
The Java implementation of the case structure uses which keyword?
switch
Which logical operator returns true if either expression is true
|
A boolean operator that only evaluates the second condition when necessary is a(n)
short-circuit
Which logical operator returns true only if BOTH expressions are true?
&
The keyword used to code a class method is
static
The method Double.parseDouble( ) is an example of which of the following?
Class method
An object that contains information about an error that has occurred is a(n)
exception
Which statement is required to match a try block?
catch
Making sure that any data entered falls within upper and lower limits is known as
range checking
Division by zero would be an example of which type of exception class?
Arithmetic
The most general class to handle an exception is
exception
Which statement is always optional in exception handling?
finally
Exception handing using the try statement is done by
by coding a try block around the statement that may cause the exception
Which method of the Scanner class can be used to determine if the next string entered is a double value?
hasNextDouble( )
Checking user input to make sure that it is valid is known as
data validation
After an exception has occurred, the remaining statement in the try block are
skipped
What is value of m[1][1] in the following array?

int m [ ][ ] = { {9, 8, 7, 6}, {5, 4, 3, 2} };
4
What is the value of len after the following statements have run?

int a [ ] = {1, 2};
int b [ ] = {4, 5, 6, 7};
int len = b.length - a.length;
2
The length of the array that follows is

int[ ] grades = new int[4];
4
What is the value of nums[1] after the following statement has run?

int nums [ ] = {6, 7, 8, 9};
7
What is the value of prices[1] after the following statements are run?

double[ ] prices = new int[2];
prices[0] = 9.98;
prices[1] = 10.99;
prices = new int[2];
0
The array that follows is an array of which type?

double[ ] scores = new double[3];
double
What is printed by the following?

int[ ] a = new int[3];
a[2] = 7;
for (int i=0; i<a.length; i++)
System.out.print(a[i]);
007
How many rows are in the following array?

String[ ][ ] names = new String[200][10];
200
What is the value of a[1] after the following statements have run?

int[ ] a = {1, 2, 3};
int[ ] b = {4, 5, 6};
a = b;
b[1] = 3;
3
What is the length of m[2] in the following?

int m [ ][ ] = { {9, 8, 7}, {6, 5, 4}, {3, 2, 1} };
3
What is printed by the following enhanced for loop?

String[ ] coffees = {"Jamaican", "Kenya, "Tribute"};
for (String s : coffees)
System.out.println(s);
Jamaican Kenya Tribute
What coffee is represented by coffees.length - 1?
String[ ] coffees = {"Jamaican", "Kenya, "Tribute"};
Tribute
The number of dimensions in the array that follows is:
int[ ] n = { 1, 2, 3 };
1
What is the value of coffees[1] in the following array?
String[ ] coffees = {"Antigua", "French Roast", "Kenya, "Pike Place"};
French Roast
What is the value of the variable x after the following statements have run?

int[ ] a = {1, 2, 3};
int x = 0;
for (int n : a)
x+=n;
6
What is the value of nums.length for the following array?
int[ ][ ] nums = { {1, 2}, {3, 4, 5}, {6, 7, 8, 9}, {10} };
4
What is printed by the following for loop?

int[ ][ ] m = { {4, 3}, { 2, 1} };
for (int i=0; i<m.length; i++)
System.out.print (m[i][i]);
41
What kind of array is the following?
int[ ][ ] nums = { {1, 2}, {3, 4, 5}, {6, 7, 8, 9}, {10} };
jagged
The number of dimensions in the array that follows is:
int[ ][ ] m = { {9, 8, 7}, {6, 5, 4}, {3, 2, 1} };
2
What is the value nums[1].length for the following array?
int[ ][ ] nums = { {1, 2}, {3, 4, 5}, {6, 7, 8, 9}, {10} };
3