100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer Science II Final Exam

Rating
-
Sold
-
Pages
25
Grade
A+
Uploaded on
13-03-2024
Written in
2023/2024

A ________ function is one that calls itself A) dynamic B) static C) recursive D) data validation E) None of these - Answer-C) recursive Recursion can be used to: A) compute factorials B) find GCD's C) traverse linked lists D) All of these E) None of these - Answer-D) All of these The ________ algorithm uses recursion to efficiently sort a list. A) shell sort B) quicksort C) binary sort D) red/black sort E) None of these - Answer-B) quicksort If a recursive function does not contain a base case, it ________. A) returns 0 and stops B) returns false and stops C) uses up all available stack memory, causing the program to crash D) reaches the recursive case and stops E) None of these - Answer-C) uses up all available stack memory, causing the program to crash The ________ of recursion is the number of times a recursive function calls itself. A) level B) breadth C) type D) depth E) None of these - Answer-D) depth The programmer must ensure that a recursive function does not become: A) a static function B) a virtual function C) an endless loop D) a dynamic function E) None of these - Answer-C) an endless loop How many times will the following function call itself, if the value 5 is passed as the argument?

Show more Read less
Institution
Computer Science II F
Course
Computer Science II F










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Computer Science II F
Course
Computer Science II F

Document information

Uploaded on
March 13, 2024
Number of pages
25
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.79
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
kimarimonicah

Get to know the seller

Seller avatar
kimarimonicah Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
2 year
Number of followers
0
Documents
992
Last sold
10 months ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions