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
How could you alter the following statement to display "Welcome" on one line and "back" on another line? Show two possible solutions.
System.out.println("Welcome back");
(Essay)
4.8/5
(36)
Even if a statement occupies multiple lines, the statement is not complete until the semicolon is reached.
(True/False)
4.7/5
(35)
The expression boolean isTenLarger = (10 will produce a value of true .
(True/False)
4.8/5
(36)
The characters ____ move the cursor to the next line when used within a println() statement.
(Multiple Choice)
4.8/5
(36)
Describe why it is important to assign an appropriate data type to variables in an application.
(Essay)
4.9/5
(34)
A ____ is a named memory location that you can use to store a value.
(Multiple Choice)
4.9/5
(38)
You use ____ operators to perform calculations with values in your programs.
(Multiple Choice)
4.7/5
(39)
When a numeric variable is concatenated to a String , the entire expression becomes a(n) ____ .
(Multiple Choice)
4.7/5
(35)
A ____ data type can hold 14 or 15 significant digits of accuracy.
(Multiple Choice)
4.9/5
(42)
Which escape sequence will move the cursor to the beginning of the current line?
(Multiple Choice)
4.8/5
(41)
The term ____ refers to the mathematical accuracy of a value.
(Multiple Choice)
4.9/5
(33)
In Java, you use variables of type ____ to store integers, or whole numbers.
(Multiple Choice)
4.8/5
(40)
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!
(Essay)
4.8/5
(39)
You may declare an unlimited number of variables in a statement as long as the variables are ____.
(Multiple Choice)
4.8/5
(38)
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.8/5
(35)
Multiplication, division, and remainder always take place after addition or subtraction in an expression.
(True/False)
4.8/5
(43)
The byte and short data types occupy less memory and can hold only smaller values.
(True/False)
4.9/5
(38)
In Java, when a numeric variable is concatenated to a String using the ____, the entire expression becomes a String .
(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 67
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)