Java Ch 2

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

backslash

An escape sequence always begins with a(n) ____.

balance = 9000;

Assuming you have declared balance to be a variable of type int, which of the following is a valid assignment statement in Java?

constant

When data cannot be changed while a program is running, the data is ____.

implicitly converts the values to a unifying type

When you perform arithmetic with values of diverse types, Java ____.

char aChar = '*';

Which assignment is correct in Java?

byte

Which of the following data types can store a value in the least amount of memory?

an assigned value

Which of the following elements is not required in a variable declaration?

double

Which of the following is a floating-point data type that Java supports?

sector

Which of the following is not a primitive data type in Java?

Try Again

Which of the following is not an option that can be displayed with a confirm dialog box?

type cast

You use a ____ to explicitly override an implicit type.

the value true or false

A boolean variable can hold ____.

subtraction

According to the rules of operator precedence, when division occurs in the same arithmetic statement as ____, the division operation always takes place first.

float

If you attempt to add a float, an int, and a byte, the result will be a(n) ____.

c. ==

The "equal to" relational operator is ____.

tokens

The Scanner class contains methods that retrieve values, referred to as ____, from an input device.

=

The assignment operator in Java is ____.

is also called the modulus operator

The remainder operator ____.

significant digits

The term ____ refers to the mathematical accuracy of a value.

System.in

To create interactive programs that accept input from a user, you can use ____.


Ensembles d'études connexes

NU144- Chapter 69: Management of Patients With Neurologic Infections, Autoimmune Disorders, and Neuropathies

View Set

Principles of Cell Membrane Function (Lectures 1 & 2)

View Set

AZ-900: Microsoft Azure Fundamentals

View Set

NClex / Basic Physical Care 2nd set

View Set

NUR 1020 Chapter 41: Self-Concept

View Set

INFINITI ADDRESSING CLIENT CONCERNS ABOUT PROPILOT ASSIST

View Set

Developmental Psych Exam 5 - Final

View Set

Chapter 11, 12, 13 - Project Management

View Set

relevant costs for decision making

View Set