City Guilds Model Questions Vol1 2023 Information Technology Question 14
Practice objective / multiple choice question 14 from the 2023 City Guilds Model Questions Vol1 Information Technology examination.
Consider the recursive function defined for non‑negative integers: \[ f(n)=\begin{cases} 1, & n\le 1\\[2mm] f(n-1)+2\,f(n-2), & n>1 \end{cases} \] (a) Compute the value of \(f(5)\). (b) State the asymptotic time‑complexity of a naïve implementation that follows this definition, using big‑O notation.
Answer Options
About This Question
This is City Guilds Model Questions Vol1 2023 Information Technology Question 14. It is one of the objective questions from the 2023 City Guilds Model Questions Vol1 Information Technology examination.
Difficulty level: Hard .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.