IS 6615 - Ch. 2 Questions

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

Backslash

When data cannot be changed after a class is compiled, the data is _______.

Constant

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

Error Message

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

byte

The assignment operator in java is _______.

=

The "equal to" relational operator is _______.

==

A boolean variable can hold _______.

The value if true or false

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

= 9

The value 137.68 can be held by a variable of type ______.

Float and double

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

Multiplication

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

Requires you to explicitly convert the values to a unifying type.

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

Sector

Which Java statement produces the following output? w xyz

System.out.println("w\nxyz");

You use a _________ to explicitly override an implicit type.

type cast


Kaugnay na mga set ng pag-aaral

Health Assessment- PrepU Chapter 8

View Set

LPI Linux Essentials 010 V1.6 - Chapter 12 Quiz

View Set

Chapter 5: Job-based Structures and Job Evaluation

View Set

ECE 485 Lectures 2 & 3 Pop Quiz Review (Quiz 1)

View Set

Unanticipated Problems and Reporting Requirements in Social and Behavioral Research module 14

View Set

CISSP-Topic 6, Physical Security

View Set

Archaeology & the Human Past Exam 3

View Set

FINC 318 Chp 8: Net Present Value SmartBook 2.0

View Set