Multiple Choice
What happens if a module uses a local variable with the same name as a main module variable, which is assumed to be global?
A) In this case, the variable declared globally is used.
B) It would cause a syntax error.
C) It would cause a logic error.
D) In this case, the variable declared locally is used.
Correct Answer:

Verified
Correct Answer:
Verified
Q8: In most programming languages, global variables are
Q9: _ are available to all modules in
Q10: All variables declared in separate modules are
Q11: Functions can return more than one value.
Q12: A For loop is depicted like a
Q14: In which of the following is the
Q15: A _ error occurs when the wrong
Q16: Modularizing a program makes it more efficient
Q17: The flowchart shape for a called module
Q18: Structured programming, the method for creating all