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
(42)

Describe and give an example of operator precedence.

(Essay)
4.8/5
(39)

____ occurs when both of the operands are integers.

(Multiple Choice)
4.8/5
(35)
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
(40)
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
(35)

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

(Multiple Choice)
4.8/5
(45)
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.7/5
(32)

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

(Essay)
4.9/5
(33)

The term parse means to break into component parts.

(True/False)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(32)

The cast operator is a ____ operator.

(Multiple Choice)
4.9/5
(39)

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
(38)

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

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.8/5
(39)
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.8/5
(37)

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

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(33)

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

(True/False)
4.8/5
(36)

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

(Essay)
4.8/5
(30)

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

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

Filters

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