1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. Which of these is a valid comment in C?

Added 16 Nov 2026

Which of these is a valid comment in C?

  1. // comment
  2. /* comment */ Correct answer
  3. # comment
  4. -- comment

Correct answer

B. /* comment */

10 views

MCQSEXAM

Explanation

/* this is a comment */ is a multi-line comment, and // is a single-line comment. Both are ignored by the compiler. Comments are used for documentation and clarity.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 10 MCQs

Practise all Computer Science FBISE Class 10 MCQs

Similar MCQs