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

Added 16 Nov 2026

Which of these is a valid variable name in C?

  1. 2ndValue
  2. total_marks Correct answer
  3. total marks
  4. total@marks

Correct answer

B. total_marks

12 views

MCQSEXAM

Explanation

A variable name cannot start with a digit, cannot contain spaces or special symbols like @. "total_marks" uses an underscore and starts with a letter, so it is valid. "2ndValue" starts with a digit, which is not allowed.

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