Exam 2: Using Data
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
What is an escape sequence and why would a Java programmer use it to store a character?
(Essay)
4.9/5
(42)
final int COSTPERITEM = 10;
double sales2012 = amtSold * COSTPERITEM;
In the above statements, identify the named constant and describe how a programmer can recognize named constants.
(Essay)
4.8/5
(40)
What is the value of result after the following statement is executed? int result = 2 + 3 * 4;
(Multiple Choice)
4.8/5
(36)
public class YourGrade
{
public static void main(String[] args)
{
int projectPoints = 89;
System.out.print("Your grade for this class is ");
System.out.print(projectPoints);
System.out.println("%");
}
}
Given the above code, what will be the output at the command prompt?
(Essay)
4.8/5
(39)
Which of the following is NOT a component of a variable declaration statement?
(Multiple Choice)
4.8/5
(40)
Match each term with the correct statement below.
Premises:
Converts nonconforming types to the unifying type
Responses:
promotion
escape sequence
garbage value.
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(41)
Match each term with the correct statement below.
Premises:
Begins with a backslash followed by a character
Responses:
keyboard buffer
boolean
blank final
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(35)
Write the statement to declare an uninitialized integer value for salesAmt . Then write the statement to declare a constant named SALESAMT with a value of 20.99.
(Essay)
4.8/5
(36)
Write the statement that will declare and assign two integer variables, salesAmt and costAmt , in a single statement. Assign values of your choice to the variables.
(Short Answer)
4.9/5
(38)
A(n) ____ dialog box typically displays the options Yes, No, and Cancel.
(Multiple Choice)
4.8/5
(36)
The characters ____ move the cursor to the next line when used within a println() statement.
(Multiple Choice)
4.9/5
(38)
You are limited to declaring a maximum of three variables in a single statement.
(True/False)
4.9/5
(31)
The Scanner class contains methods that retrieve values called ____.
(Multiple Choice)
4.7/5
(28)
A(n) ____ dialog box asks a question and provides a text field in which the user can enter a response.
(Multiple Choice)
4.9/5
(39)
Even if a statement occupies multiple lines, the statement is not complete until the semicolon is reached.
(True/False)
4.8/5
(39)
Primitive types serve as the building blocks for more complex data types, called ____ types.
(Multiple Choice)
4.8/5
(39)
Showing 41 - 60 of 81
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)