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

1. A C++ declaration introduces only an identifier's spelling and specifies its type.
2. A C++ declaration is a definition that also allocates storage for an identifier's value
(or function's body etc.).
3. The range of values for an int variable is from about 0 to +2 billion.
4. The names x, y, and z are satisfactory variable names for the lengths of the legs
and hypotenuse of a triangle.
5. In C++ you can assign an expression of type int to a variable of type double with
no problem.


1. True.
A declaration introduces the spelling and type, whereas a definition is a declaration that also allocates memory.
2. True.
A declaration introduces the spelling and type, whereas a definition is a
declaration that also allocates memory.
3. False:
The correct range is about –2 Billion to +2 Billion.
4. False.
Names should communicate to the human reader the meaning of the value.
These identifiers do not communicate the meaning of their values..
5. True.
Assignment from an integer type to a floating point type can lose
information and should be avoided. Some compilers will warn, others may give an error
message, but you should avoid this.

Computer Science & Information Technology

You might also like to view...

The ________ tier is the application’s user interface.

a) middle b) client c) bottom d) information

Computer Science & Information Technology

This chapter refers to an article on magnetic storage in the December 2000 edition of IEEE Spectrum with the title “Magnetic Storage: The medium that wouldn’t die”. The title implies that magnetic storage should have become obsolete. Explain why many may have believed this, and why magnetic storage has continued to thrive.

What will be an ideal response?

Computer Science & Information Technology

You should always try to create databases that use 1NF normalization rules. _________________________

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

Computer Science & Information Technology

Each child element may contain children of its own and so forth down the hierarchy, creating a set of _____ elements that are all descended from a common parent.?

A. ?descendant B. ?child C. parent D. ?sibling

Computer Science & Information Technology