Test: Swift - Comments and Header Docs
1. Which of the following are true in Swift?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: Single line comments are preceded by //; Multi-line comments are written inside /* and */;
ExplanationLike a few other languages (C, C++, Java, C#), single line comments in Swift are prefixed with // and multi-line comments are inside /* and */
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 1 of 5
Test is Based on this Article
More Articles With Similar Tags