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

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

(Multiple Choice)
4.8/5
(84)

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

(Essay)
4.8/5
(75)

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

(Multiple Choice)
4.9/5
(100)

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

(Short Answer)
4.7/5
(69)

The percent sign is the ____ operator.

(Multiple Choice)
4.9/5
(76)

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

(True/False)
4.8/5
(80)

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

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

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

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

(True/False)
4.9/5
(63)

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

(True/False)
4.8/5
(87)

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

(Multiple Choice)
4.9/5
(83)

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

(Multiple Choice)
4.9/5
(85)

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

(Multiple Choice)
4.7/5
(74)

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

(Multiple Choice)
4.8/5
(71)

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

(Essay)
4.7/5
(68)

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

(Essay)
5.0/5
(79)

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

(Short Answer)
4.9/5
(85)

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
(89)
Showing 21 - 40 of 74
close modal

Filters

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