1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. Which statement is used to take input from the user in C?

Added 16 Nov 2026

Which statement is used to take input from the user in C?

  1. printf
  2. scanf Correct answer
  3. cout
  4. input

Correct answer

B. scanf

12 views

MCQSEXAM

Explanation

scanf() reads formatted input from the keyboard. printf() displays output. Both are declared in stdio.h. Using scanf without the correct format specifier is a common mistake.

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