{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test: Swift - Comments and Header Docs

2. Which of the following are true for writing structured comments in Swift (those that can be used to generate documentation)?



Results
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: Precede them with ///; Embed them in /** and */;
Explanation
In order to generate Quick Help within Xcode and Playgrounds and generate documentation with other programs, single line structured comments are preceded by /// and multi-line comments are inside /** and */
Take the Test
Take the complete test on this topic. You will be able to review answers to questions and get a test score.

Take the Test


Question 2 of 5


Test is Based on this Article
icon-swift-article.jpg
This article discusses code commenting for various purposes, including generating documentation.
icon-swift-test.jpg
Test on comments, structured comments, and markup in Swift

More Articles With Similar Tags
icon-swift-test.jpg
Test on comments, structured comments, and markup in Swift
icon-swift-article.jpg
Tags: bool, types, swift
This article discusses the boolean types in Swift and contrasts with how these types are used in C and Objective-C.
icon-swift-test.jpg
Tags: bool, types, swift
Test on Boolean Types in Swift.
icon-swift-article.jpg
This article talks about unwrapping the optionals in Swift implicitly and the circumstances where you would use this functionality.
icon-swift-article.jpg
This article discusses the safer ways of unwrapping an optional in Swift that includes Optional Binding.
                                                                                                                                                                                                             
About  Contact  Privacy Policy  Site Map