Which of the following is valid?

a. float y;
y = 54.9;

b. float y;
double z;
z = 934.21;
y = z;

c. float w;
w = 1.0f;

d. float v;
v = 1.0

c. float w;
w = 1.0f;

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Protects a computer from hackers and malware A. inbound traffic II. Tech-savvy person who tries to gain unauthorized access B. exception list III. Data sent to your computer from other computers on C. outbound traffic the Internet IV. Data sent from your computer to another computer on D. firewall the Internet V. Used on a computer to ensure that a program will not E. hacker be blocked

Computer Science & Information Technology

The formatting marks in a document NEVER print

Indicate whether the statement is true or false

Computer Science & Information Technology