What is a common block comment notation used in many programming languages?

Study for the SQL Basics Test. Improve your knowledge with multiple choice questions and detailed explanations. Prepare effectively to master SQL concepts!

Multiple Choice

What is a common block comment notation used in many programming languages?

Explanation:
Block comments let you comment out multiple lines at once, which is handy for notes or temporarily disabling code. The notation that starts with /* and ends with */ is widely used in languages like C, C++, Java, JavaScript, and CSS. Because it clearly marks the start and end of a comment block, it supports multi-line content without interfering with code. The other options describe line comments (// for a single line, -- in SQL and some other languages) or aren’t valid delimiters on their own, so the multi-line block form /* comment */ is the standard choice for many languages.

Block comments let you comment out multiple lines at once, which is handy for notes or temporarily disabling code. The notation that starts with /* and ends with / is widely used in languages like C, C++, Java, JavaScript, and CSS. Because it clearly marks the start and end of a comment block, it supports multi-line content without interfering with code. The other options describe line comments (// for a single line, -- in SQL and some other languages) or aren’t valid delimiters on their own, so the multi-line block form / comment */ is the standard choice for many languages.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy