Exam 2: Using Data
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
Define an integer and then list and describe the four integer data data types.
(Essay)
4.9/5
(82)
char aCharacter = 2;
int aNumber = '2';
In the above statements, what values will be output after a println() statement is executed? Why are the output results different for the two statements?
(Essay)
4.8/5
(82)
Describe how the use of named constants can provide advantages over the use of literal values.
(Essay)
4.8/5
(71)
What is the value of result after the following statement is executed? int result = 2 + 3 * 4;
(Multiple Choice)
4.8/5
(77)
Each primitive type in Java has a corresponding class contained in the java.lang package. These classes are called ____ classes.
(Multiple Choice)
4.9/5
(76)
A variable declaration is a statement that reserves a named memory location. It includes what four elements?
(Essay)
4.7/5
(77)
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.9/5
(81)
In Java, how is it possible to perform mathematical operations on operands with unlike types?
(Essay)
4.8/5
(90)
What is the difference between the float data type and the double data type?
(Essay)
4.9/5
(87)
You are limited to declaring a maximum of three variables in a single statement.
(True/False)
4.8/5
(79)
Once a variable has been declared and initialized, new values may not be assigned to the variable.
(True/False)
4.9/5
(71)
____________________ forces a value of one data type to be used as a value of another type.
(Short Answer)
4.9/5
(70)
Write the statement that will declare a char data type named testScore that will hold a letter grade of your choice.
(Essay)
5.0/5
(82)
The ____ is the type to which all operands in an expression are converted so that they are compatible with each other.
(Multiple Choice)
4.9/5
(77)
Why is the following relational operator expression invalid? How could you rewrite the statement so that it is valid?
boolean isGradePassing = (grade => 70);
(Essay)
4.8/5
(80)
A(n) ____ dialog box asks a question and provides a text field in which the user can enter a response.
(Multiple Choice)
4.8/5
(84)
Describe three ways in which a named constant differs from a variable.
(Essay)
4.9/5
(73)
A(n) ____________________ operator compares two items and the result has a Boolean value.
(Short Answer)
4.7/5
(72)
Showing 41 - 60 of 67
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)