Q. Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be

  • (A) An integer
  • (B) A String
  • (C) An object
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) A String
Explanation: When using square bracket notation, the expression inside the square brackets must evaluate to a sting or a value that can be converted to a string.
Explanation by: Mr. Dubey
When using square bracket notation, the expression inside the square brackets must evaluate to a sting or a value that can be converted to a string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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