Sail E0 Webinar
Question
What would be the output of the following code ?x - vector("list", length = 5)x
Options:
A .  NULL
B .  1
C .  0
D .  None of the mentioned
Answer: Option A


We can also create an empty list of a pre-specified length with the vector() function.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers