Question
What does the colon operator create in the expression 1:5?
Select an option. Your answer will be checked instantly.
Correct Answer: D. The integer sequence 1, 2, 3, 4, 5
Explanation:
The colon operator creates a regular sequence with a step of one.
It is commonly used for indexing and simple iteration.
Leave a Reply