How many and what kind of variables (primitive or object) are created in the code below?

> double cost = 19.20; // cost is a primitive variable
> double percentOff = 0.4; // percentOff is a primitive variable
> double salePrice = cost * (1.0 - percentOff); // salePrice is a primitive variable


This creates 3 primitive variables.

Computer Science & Information Technology

You might also like to view...

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

1. Declaring a non-Optional parameter to the right of an Optional parameter is allowed. 2. Every argument specified in a method header must be provided in a method call. 3. If the next statement to execute is not a method call, then the Step Into debugger command has the same effect as the Step Over command. 4. If you wish to execute several statements without repeatedly clicking the Step Over debugger command, you can right click the statement where you’d like to continue step-by-step execution, then select Run to Cursor from the menu that appears. The debugger will execute the statements up to, and including, that statement. 5. When an app is running in the debugger, the Start Debugging command becomes the Continue command. If you click Continue while in break mode, the debugger will execute statements until it reaches the next breakpoint. If there aren’t any, the program will simply execute until it completes or until the event handler that you’re debugging finishes executing.

Computer Science & Information Technology

Which of the following generic type notations uses a wildcard?

A) Point B) Point C) Point D) Point

Computer Science & Information Technology

The method raises a number to an exponent.

a) Math.Exp b) Math.Exponent c) Math.Power d) Math.Pow

Computer Science & Information Technology

In an information system, the rules or guidelines for people to follow are called ________.

A. data processing B. procedures C. database management D. compiling

Computer Science & Information Technology