VIP Exclusive

CodeHS Computer Science VIP Certification Exam

CodeHS — CodeHS is an online K-12 computer science education platform that offers course-based certifications (e.g., Introduction to CS, AP CS Principles, AP CS A, Python, Web Design, Cybersecurity) verified through end-of-course assessments; there is no single unified standardized exam — this is an original comprehensive VIP practice set covering the full breadth of CodeHS curriculum domains at certification difficulty.

50
Questions
90m
Time Limit
70.00%
To Pass
Question 1 of 50👑 VIP

A student writes the following JavaScript function: javascript function mystery(n) { if (n <= 1) return n; return mystery(n - 1) + mystery(n - 2); } What sequence does this function generate when called with increasing values of n starting at 0?

Questions 2–50 and full explanations are VIP-exclusive.