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

1. The names x, y, and z are satisfactory variable names for the lengths of the legs and hypotenuse of a triangle.

2. In C++ you can assign an expression of type int to a variable of type double with no problem.

1. False
Explanation: Names should communicate to the human reader the meaning of the value. These identifiers do not communicate the meaning of their values..
2. True
Explanation: 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...

A ______ can be used to store global information about a linked list.

a) head record b) tail reference c) precede reference d) dummy head node

Computer Science & Information Technology

Why is delay skew critical?

What will be an ideal response?

Computer Science & Information Technology