(TCO 2) Java, C#, and C++ all allow for the use of comments. Which of the follow
ID: 3679954 • Letter: #
Question
(TCO 2) Java, C#, and C++ all allow for the use of comments. Which of the following represent(s) valid comments in these three languages? (Points : 2) /* Comment *///* Comment */
// Comment //
//Comment
All of the above
None of the above (TCO 2) Java, C#, and C++ all allow for the use of comments. Which of the following represent(s) valid comments in these three languages? (Points : 2) /* Comment */
//* Comment */
// Comment //
//Comment
All of the above
None of the above
Explanation / Answer
comments in Java :- /* text */ and /** documentation */ and //text so only options 1 and 4 will be okay with java
commenets in c# :- // for single line comments and /* for multi line comments */ and so option 1 and 4
comments in C++ :- /* This is a comment */ and /** multiple lines */ and //text
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.