Exam 2: Using Data

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

In Java, when a numeric variable is concatenated to a String using the ____, the entire expression becomes a String.

(Multiple Choice)
4.8/5
(37)

A ____ data type can hold 14 or 15 significant digits of accuracy.

(Multiple Choice)
4.8/5
(40)

Describe how the Scanner class works with the System.in object in order to provide flexibility.

(Essay)
4.8/5
(28)

The ____ is the type to which all operands in an expression are converted so that they are compatible with each other.

(Multiple Choice)
4.8/5
(48)

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

(Short Answer)
4.7/5
(37)

The percent sign is the ____ operator.

(Multiple Choice)
4.8/5
(40)

Constants hold a single value for the duration of the program execution.

(True/False)
4.8/5
(41)

MATCHING Match each term with the correct statement below. -Rules for the order in which parts of a mathematical expression are evaluated

(Multiple Choice)
4.9/5
(37)

Write the statement that will declare a char data type named testScore that will hold a letter grade of your choice.

(Short Answer)
4.9/5
(41)

Each primitive type in Java has a corresponding class contained in the java.lang package. These classes are called ____ classes.

(Multiple Choice)
4.8/5
(50)

You are limited to declaring a maximum of three variables in a single statement.

(True/False)
4.9/5
(30)

Once a variable has been declared and initialized, new values may not be assigned to the variable.

(True/False)
4.8/5
(39)

MATCHING Match each term with the correct statement below. -Created by placing the desired result type in parentheses

(Multiple Choice)
4.9/5
(40)

Which of the following is NOT a component of a variable declaration statement?

(Multiple Choice)
5.0/5
(38)

A data item is ____ when it cannot be changed while a program is running.

(Multiple Choice)
4.7/5
(41)

MATCHING Match each term with the correct statement below. -A programming term for an unknown value

(Multiple Choice)
4.8/5
(38)

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

(Essay)
4.7/5
(33)

What is an escape sequence and why would a Java programmer use it to store a character?

(Essay)
5.0/5
(34)

____________________ forces a value of one data type to be used as a value of another type.

(Short Answer)
4.9/5
(43)

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.

(Essay)
4.7/5
(47)
Showing 21 - 40 of 74
close modal

Filters

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