An int variable can hold __________.
a. 'x'
b. 120
c. 120.0
d. "x"
e. "120"
a. 'x'
b. 120
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).
You might also like to view...
[C++14] : Which of the statements a), b) and c) is false?
a. To create a binary literal, precede a sequence of 1s and 0s with 0b or 0B. b. You can define a 32-bit mask as 0b10000000'00000000'00000000'00000000 c. The literal in part b) uses C++14’s single-quote character to separate groups of digits for readability. d. All of the above statements are true.
Prebuilt CSS layout pages contain all of the following EXCEPT ____.
A. div tags B. a list of CSS styles C. placeholder content D. XML
Case WD 3-2Gabriel's boss has asked him for some additional statistics on the paper he wrote to introduce a new product. He is exploring the options and commands for correcting spelling and grammar to learn the features.Gabriel wants to run through his document one last time, and wants to reset the spelling and grammar checker so that words he chose to ignore will be flagged again. Which option should he choose?
A. Reset Document B. Recheck Document C. Writing Style D. Settings
Which of the following is described as "when a person's identity is confirmed or verified through the use of a specific system"?
A. Identification B. Authorization C. Authentication D. Access control