1. Home
  2. Computer Science MCQs
  3. PHP
  4. DocBlocks are indicated by opening a comment using ___.

Added 19 Jan 2024

DocBlocks are indicated by opening a comment using ___.

  1. /*
  2. //*
  3. /** Correct answer
  4. /*/

Correct answer

C. /**

13 views

MCQSEXAM

Explanation

A DocBlock opens with /** (a slash followed by two asterisks) and closes with */. The extra asterisk is what separates a documentation block from an ordinary multi-line comment that begins with /*.

Tools such as phpDocumentor and most IDEs read DocBlocks to generate documentation and type hints, using tags like @param and @return.

Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs