Exam 2: Using Data
Exam 1: Creating Java Programs68 Questions
Exam 2: Using Data74 Questions
Exam 3: Using Methods, Classes, and Objects68 Questions
Exam 4: More Object Concepts67 Questions
Exam 5: Making Decisions70 Questions
Exam 6: Looping72 Questions
Exam 7: Characters, Strings, and the Stringbuilder73 Questions
Exam 8: Arrays74 Questions
Exam 9: Advanced Array Concepts74 Questions
Exam 10: Introduction to Inheritance70 Questions
Exam 11: Advanced Inheritance Concepts70 Questions
Exam 12: Exception Handling65 Questions
Exam 13: File Input and Output74 Questions
Exam 14: Introduction to Swing Components74 Questions
Exam 15: Advanced Gui Topics69 Questions
Exam 16: Graphics74 Questions
Exam 17: Applets, Images, and Sound72 Questions
Select questions type
The expression boolean isTenLarger = (10 < 5) will produce a value of true.
(True/False)
4.7/5
(48)
The characters ____ move the cursor to the next line when used within a println() statement.
(Multiple Choice)
4.7/5
(38)
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
(41)
When a numeric variable is concatenated to a String, the entire expression becomes a(n) ____.
(Multiple Choice)
4.8/5
(33)
import javax.swing.JOptionPane;
public class salesJune
{
public static void main(String[] args)
{
int storeSales = 250;
______________________________
}
}
In the above code, complete the statement that will display a message dialog box that will appear centered on the screen and will display the following text:
Congratulations! June sales were $250!
(Short Answer)
4.9/5
(38)
In Java, you use variables of type ____ to store integers, or whole numbers.
(Multiple Choice)
4.9/5
(33)
You use ____ operators to perform calculations with values in your programs.
(Multiple Choice)
4.7/5
(37)
Describe why it is important to assign an appropriate data type to variables in an application.
(Essay)
4.8/5
(23)
A variable declaration is a statement that reserves a named memory location. It includes what four elements?
(Essay)
4.8/5
(38)
The legal integer values are -2³¹ through 2³¹-1. These are the highest and lowest values that you can store in four bytes of memory, which is the size of an int variable.
(True/False)
4.7/5
(40)
Multiplication, division, and remainder always take place after addition or subtraction in an expression.
(True/False)
4.9/5
(39)
You may declare an unlimited number of variables in a statement as long as the variables are ____.
(Multiple Choice)
4.8/5
(43)
You can store any character, including nonprinting characters such as a backspace or a tab, in a(n) ____ variable.
(Multiple Choice)
4.7/5
(40)
Showing 61 - 74 of 74
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)