Solved

If the Variable Type of the Element in a Foreach

Question 6

Multiple Choice

If the variable type of the element in a foreach statement cannot be converted to the same variable type as the collection's objects, _____.


A) the body of the statement is ignored
B) a syntax error occurs
C) a runtime error occurs
D) a logic error occurs
E) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions