COMPUTER FUNDAMENTALS

COMPUTER APPLICATIONS

DATABASE MANAGEMENT SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
We can use ____ to comment a single line?i) /? ii) // iii) # iv) /* */
A
ONLY (II)
B
(I), (iii), AND (iv)
C
(ii), (iii) AND (iv)
D
BOTH (ii) AND (iV)
Explanation: 

Detailed explanation-1: -/* */ can also be use to comment just a single line although it is used for paragraphs. // and # are used only for single line comment.

Detailed explanation-2: -Single-line comments begin with two forward-slashes (//): // This is a comment.

Detailed explanation-3: -Single-line Comments In Python, the # character is used to start a comment. The comment continues after the # until the end of the line.

Detailed explanation-4: -//-Single Line Comment. /* */-Multi-line Comment.

There is 1 question to complete.