Answer:
a. a syntax error
Explanation:
When the same variable name is repeated in the parameter set and the method body, it will result in a syntax error. This is because the variable in the parameter has a local scope within the method body. Now if we declare another variable with the same name in the method body, it will result in redefinition of the variable and violate the uniqueness principle of variable names in the method code. This will give rise to syntax error.
21...............................
Answer:
17%
Explanation:
Given parameters:
Cost price of liquor = $4000
Total sale = $24000
Unknown:
Percentage cost of sale for liquor = ?
Solution:
To find the percentage cost of sale;
%Cost of sale of liquor =
x 100
Input the variables;
%Cost of sale of liquor =
x 100 = 16.67% = 17%
Answer:
Case
Explanation:
In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.
Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.
For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.
A Select Case statement can be defined as a conditional statement that avails software developers or programmers the ability to test a variable by comparing it with a list of values.
In a Select Case statement, each variable is referred to as a Case.
Generally, when a Select Case statement executes, the value of the test expression is compared with the values that follow each of the Case keywords.
<span>Dynamic disk storage provides the flexibility to logically organize disk space across one or more disk drives.
a. True
b. False</span>