An int variable can hold __________.

a. 'x'
b. 120
c. 120.0
d. "x"
e. "120"


ab Choice (A) is also correct, because a character can be implicitly cast into an int variable. The Unicode value of character is assignment to the int variable. In this case, the code is 120 (see Appendix B).

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. C++ is a low-level language. 2. Main memory holds its data if the computer is turned off 3. An algorithm is always written in C++ 4. There are 8 bytes in one bit. 5. The printer is an example of an input device.

Computer Science & Information Technology

Encryption is more than simple password protection--it will digitally obscure information to make it unreadable without a proper key to decode it

Indicate whether the statement is true or false

Computer Science & Information Technology

A stack is a data structure in which all insertions and deletions are restricted to one end, called the bottom.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ____________________ is the association between entities.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology