🎴 Flashcard Mode

Computer Fundamentals and Programming Basics

Card1 / 18
Mastered0
Review0
QuestionClick to flip

length_of([vector "I" , "LOVE" , "INDIA"])

AnswerClick to flip back
A
3
💡 Explanation:

The vector ["I", "LOVE", "INDIA"] contains exactly 3 elements. The length_of function returns the number of elements in the vector, not the total character count of all strings. Therefore, the correct answer is 3, not 11 (which would be the sum of character lengths).

Change Mode