Question: What is the error in the following pseudocode? Declare Integer widgets Declare Real cost Set widgets = 3 . 5 Set cost = widgets *
What is the error in the following pseudocode?
Declare Integer widgets
Declare Real cost
Set widgets
Set cost widgets
Group of answer choices
widgets is an invalid variable name for this code.
widgets has been declared as an Integer and cannot hold a floatingpoint value.
You cannot mix a Real variable and an Integer variable in a program.
There is no error.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
