Exam 2: Using Data

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

How would you ask the user to confirm an action using a dialog box?

(Essay)
4.9/5
(37)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)