Exam 2: Using Data

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

You can declare as many variables in a statement as you want, as long as the variables are different data types.

(True/False)
4.8/5
(92)

Describe and give an example of operator precedence.

(Essay)
4.8/5
(79)

____ occurs when both of the operands are integers.

(Multiple Choice)
4.8/5
(70)
Match each term with the correct statement below.
Premises:
A simple data type
Responses:
escape sequence
cast operator.
primitive type
Correct Answer:
Verified
Premises:
Responses:
A simple data type
escape sequence
(Matching)
4.9/5
(76)
Match each term with the correct statement below.
Premises:
Uninitialized constant
Responses:
keyboard buffer
lvalue
boolean
Correct Answer:
Verified
Premises:
Responses:
Uninitialized constant
keyboard buffer
(Matching)
4.9/5
(78)

A(n) ____ variable can hold only one of two values: true or false .

(Multiple Choice)
4.8/5
(77)
Match each term with the correct statement below.
Premises:
The operator that is represented by an equal sign (=)
Responses:
promotion
parse
primitive type
Correct Answer:
Verified
Premises:
Responses:
The operator that is represented by an equal sign (=)
promotion
(Matching)
4.8/5
(74)

100 = salesAmount; In terms of assignment operators, why is the above statement illegal?

(Essay)
4.9/5
(77)

The term parse means to break into component parts.

(True/False)
4.7/5
(86)

A ____ is a named memory location that you can use to store a value.

(Multiple Choice)
4.8/5
(78)

The cast operator is a ____ operator.

(Multiple Choice)
4.9/5
(83)

A dialog box that displays the options Yes, No, and Cancel can be created using the ____ method in the JOptionPane class.

(Multiple Choice)
4.8/5
(87)

____ refers to the order in which values are used with operators.

(Multiple Choice)
4.8/5
(87)

A(n)____ operator compares two items and the result has a Boolean value.

(Multiple Choice)
4.8/5
(89)
Match each term with the correct statement below.
Premises:
A programming term for an unknown value
Responses:
assignment.
primitive type
float.
Correct Answer:
Verified
Premises:
Responses:
A programming term for an unknown value
assignment.
(Matching)
4.9/5
(88)

Which statement declares a constant named SALESAMT with a value of 20.99?

(Multiple Choice)
4.8/5
(72)

You use ____ operators to perform calculations with values in your programs.

(Multiple Choice)
4.9/5
(70)

The int data type is the most commonly used integer type.

(True/False)
4.8/5
(75)

In Java, how is it possible to perform mathematical operations on operands with unlike types?

(Essay)
4.8/5
(68)

Explain how you can override a unifying type imposed by Java. Show an example.

(Essay)
4.8/5
(79)
Showing 21 - 40 of 81
close modal

Filters

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