• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Exam (elaborations)

Asu Cse 240 Midterm Tested Questions And Complete Solutions

Document preview thumbnail
Preview 2 out of 15 pages

Asu Cse 240 Midterm Tested Questions And Complete Solutions

Content preview

ASU CSE 240 MIDTERM
TESTED QUESTIONS AND COMPLETE SOLUTIONS

Question 1.
If you want to change the insertion sort function with a size-(n-
1) problem, as discussed in the lecture, to a merge sort function, where do you need to make changes?

ANSWER
CorrectC.
In the definition of size-m problem
CorrectD.
In the code code that constructs the solution of size-n problem from the size-m problem.



Question 2.
A throw statement is associated with a specific exception handler through the

ANSWER
the data type implied by the throw value.



Question 3.
The complexity of searching an arbitrary binary search tree is the order of

ANSWER
O(n)



Question 4.
If a function calls another function, the local variables in these two functions use the memory from

ANSWER
different stack frames.






, Question 5.
The Scheme form (char? #\5) will return

ANSWER
true (#t)



Question 6.
One of the major differences between the imperative and functional programming languages is that
the functional programming languages do NOT

ANSWER
have side-effect.



Question 7.
Assume that Publication is the root class of an inheritance tree. You want to form a linked list of
different publications in the inheritance tree, including Book, Report, Newspaper, etc. What is the best
way to create a linked list using PublListNode and Publication classes?

ANSWER
The PublListNode class contains the Publication class.



Question 8.
If you want to create a linked list of Container nodes, which can contain Publication node, Book node,
Thesis node, and Report node, what type of pointer should be declared in the Container to point to all
these nodes?

ANSWER
A pointer to Publication node

Document information

Uploaded on
October 16, 2026
Number of pages
15
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TopGradeInsider
4.1
(14)
Sold
194
Followers
1
Items
63129
Last sold
22 hours ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions