Programming in C MCQ - I/O Operations

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

This involves recursion - main ( ) calling itself. So, it keeps on printing tim.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

Since madam is the required output. the function first( ) should print ' a ' call the function second ( ) that prints the 'd' and print ' a ' again. Hence c is the correct answer.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

This will not compile successfully. The scope of the variable ' j ' is the single printf statement that follows it.
So. the last statement that involves ' j ' will complain about the undeclared identifier ' j '
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

The compiler will tokenize a + + + b as a, + +, b. So, a + + b is equivalent to a + + + b, which evaluates to 7
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free