Standard Input and Output - C Multiple Choice Questions & Answers
This is the c programming questions and answers section on " Standard Input and Output " with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.
Which among the following is odd one out?
- A. printf
- B. fprintf
- C. putchar
- D. scanf
Answer: Option D
For a typical program, the input is taken using.
- A. scanf
- B. Files
- C. Command-line
- D. None of the mentioned.
Answer: Option D
What does the following command line signify?
- A. It runs prog1 first, prog2 second
- B. It runs prog2 first, prog1 second
- C. It runs both the programs, pipes output of prog1 to input of prog2
- D. It runs both the programs, pipes output of prog2 to input of prog1
Answer: Option C
What is the default return-type of getchar()?
- A. char
- B. int
- C. char *
- D. Reading character doesn’t require a return-type
Answer: Option B
The value of EOF is_____.
Answer: Option A
Free Questions and Answers, Online Test, Mock Test - Study Online
Allindiaexams.in is a one stop destination for students, job seekers and exam aspirants. Here, you will find almost every resource for online study and online exam preparation including aptitude questions and answers with solution, reasoning questions, GK questions and answers, Placement papers, Verbal ability questions and answers, engineering questions (ECE, CSE, EEE, IT, Civil, Mechanical, Aeronautical etc.), Various interview questions and answers, Free Online Test, Mock Test, Online Quiz.
With the right online education resources, students can not only study online, but can even appear for Online Practice Tests to test their skills online. Free Online Quiz and test series are available for all the topics including Aptitude, Reasoning, GK and others.
There are two different sections for Free Online Practice Tests and Online Test. In the Online study section, free online quiz and sample tests are available for Aptitude, Reasoning, GK and all other study courses. Students can study and can appear for free tests online. In the Exam preparation section, free study material is available for all the leading competitive exams, entrance exams and recruitment exams in India. Different exam categories under exam preparation section include IT company online test, startup company written exams, automobile company online test questions and answers, Government jobs, Medical, Engineering and Management exams, Defence Exams, etc.