If the tryparse method determines that the string cannot be converted to the data type, it assigns __________ to the variable.

If the tryparse method determines that the string cannot be converted to the data type, it assigns __________ to the variable.
A. -1
B. 1
C. 0
D. 2
 
Answer: C
Explanation: The tryparse method parses its string argument, which means it looks at each character in the string, to determine whether the string can be converted to the number of the specified data type. If the string can be converted the tryparse method, converts the string to the number and stores the number in the variable specified. If the tryparse method determines that the string cannot be converted to the appropriate data type, it assigns 0 to the variable.
 

Tìm kiếm

Back
Top