Neco 2023 Computer Studies Question 25

Practice objective / multiple choice question 25 from the 2023 Neco Computer Studies examination.

Neco 2023 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 25 NECO • 2023 • COMPUTER_STUDIES • objective

The following Python function is defined: ```python def f(n): if n <= 1: return 1 else: return f(n-1) + 2*f(n-2) ``` What value is printed by the statement `print(f(5))`?

Answer Options

Correct Answer A. 21
B. 23
C. 27
D. 19
Correct Answer
A
Correct Option:
21

About This Question

This is Neco 2023 Computer Studies Question 25. It is one of the objective questions from the 2023 Neco Computer Studies examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support