National_Instruments
200-500 · Question #44
200-500 Question #44: Real Exam Question with Answer & Explanation
The correct answer is B. 99 monkeys sit on 2 trees and eat 9.00 bananas. See the full explanation below for the reasoning.
Question
What is the output of the following code? printf('%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s', "bananas", "monkeys", 9, 99);
Options
- A%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s
- B99 monkeys sit on 2 trees and eat 9.00 bananas
- CMonkeys Bananas sit on 2 trees and eat 9 99
- D9 monkeys sit on 2 trees and eat 99 bananas
Community Discussion
No community discussion yet for this question.