Q. Consider the following code snippet
[x,y]=[y,x];
What is the result of the above code snippet?

  • (A) Throws exception
  • (B) Swap the value of the two variables
  • (C) Flashes an error
  • (D) Creates a new reference object
πŸ’¬ Discuss
βœ… Correct Answer: (C) Flashes an error
Explanation: The above code snippet swaps the value of the two variables.
Explanation by: Mr. Dubey
The above code snippet swaps the value of the two variables.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate