What is the error in the following pseudocode?

```
Declare Integer widgets
Declare Real cost
Set widgets = 3.5
Set cost = widgets * 5
```

a. widgets is an invalid variable name for this code.
b. You cannot mix a Real variable and an Integer variable in a program.
c. widgets has been declared as an Integer and cannot hold a floating-point value.
d. There is no error.


c. widgets has been declared as an Integer and cannot hold a floating-point value.

Computer Science & Information Technology

You might also like to view...

A(n) _____________ represents an anonymous method—a shorthand notation for implementing a functional interface.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Is the graph below connected? Is it complete?

Computer Science & Information Technology

An example of a producer/consumer relationship is ________.

a) an application that copies data from a fixed-size buffer to a CD-RW b) a word processor that sends data to a buffer to be printed c) both a and b d) none of the above

Computer Science & Information Technology

The act of reprogramming EEPROM is called ____.

A. rebooting B. restarting C. flashing D. caching

Computer Science & Information Technology