What is wrong with the following program segment?

```Main
Declare Apples As Integer
Set Apples = 4
Call Snack(Apples)
Write “You have “ + Apples + “ apples”
Write “and “ + Oranges + “ oranges”
End Program
Subprogram Snack(Fruit)
Declare Oranges As Integer
Set Oranges = Fruit + 2
End Subprogram```
a. you cannot call a subprogram that has only one parameter
b. you cannot declare variables within a subprogram
c. you cannot access a variable that has been declared locally within a subprogram outside that subprogram
d. nothing is wrong with the code segment


C

Computer Science & Information Technology

You might also like to view...

The three categories of control structures are

What will be an ideal response?

Computer Science & Information Technology

Which of the following are declared correctly?

a. ``` for (var i=0;i<100;++i ) [ statement; ] ``` b. ``` for (var i=0;i<100;++I ) [ statement; } ``` c. ``` for (var i=0;i<100;++i ) { statement; } ``` d. ``` for (var i=0;i<100;++i; ) { statement; } ```

Computer Science & Information Technology

The ____________________ appears just above the horizontal ruler and includes the document name, the current magnification level of the document, and a Close button you can click to close the document.

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

Computer Science & Information Technology

When using the transform controls of the Move tool, what button do you

need to press and hold to constrain the image's proportions? What will be an ideal response?

Computer Science & Information Technology