Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CMPT 280 EXAM WITH COMPLETE SOLUTIONS 100% VERIFIED

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
21-12-2024
Written in
2024/2025

CMPT 280 EXAM WITH COMPLETE SOLUTIONS 100% VERIFIED...

Institution
CMPT 280
Course
CMPT 280

Content preview

CMPT 280 EXAM WITH COMPLETE SOLUTIONS 100% VERIFIED



ADT - Answer Specification of data and operations on that data that is free of
implementation details

Consists of:

• one or more data structures (i.e. a declaration of data);

• a set of publicly known operations on the data structure(s); and

• encapsulation (hiding) of the data structures and the implementation of the operations



Linked list - Answer lists implemented with a node chain



Regression testing - Answer Automated test program that is designed to uncover new
bugs (i.e. regressions) after code has been changed to make enhancements, fix bugs,
etc



Characteristics of a Good Regression Test - Answer Thorough testing

Easy to run

Easily expanded



True or false: regression testing includes testing where a method is called with an
argument of the wrong type - Answer False, the compiler is there to catch these types of
syntactical errors



∃ - Answer there exists



∀ - Answer for all



Big O set definition - Answer There must exist two constants, one called c, and one

, called n0 (which may be different values for different t (n)'s) , such that the statement t
(n) ≤ c f (n) is true for every value of n greater than or equal to n0



O(f(n)) = {t(n) | ∃c,n0 > 0 such that t(n) ≤ cf(n),∀n ≥ n0}



Collection - Answer a data structure that is comprised of a set of data elements in some
conceptual arrangement



If position is null and prevPosition is non-null what is the actual position - Answer after



If position is non-null and prevPosition is null what is the actual position - Answer first
item



If position is null, prevPosition is null and the number of items it >0 what is the actual
position - Answer before



If position is null, prevPosition is null and the number of items it 0 what is the actual
position - Answer before and after



What is the difference between a cursor and an iterator - Answer A cursor is property of
a collection, an iterator is a distinct object



True or false: cursors always provide public methods for iterating over all of the
elements in the collection - Answer False. Iterators always do, cursors can but does not
have to



What is the disadvantage of doubly-linked lists? - Answer they use more space



What are the advantages of doubly-linked lists? - Answer 1) insert and delete at
beginning and end in the list in constant time

2) can have cursors and iterators that can move forward and backward

Written for

Institution
CMPT 280
Course
CMPT 280

Document information

Uploaded on
December 21, 2024
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$14.49
Get access to the full document:

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


Also available in package deal

Thumbnail
Package deal
CMPT 280 PACKAGED EXAMS!!
-
7 2024
$ 35.99 More info

Get to know the seller

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.
Easton West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
571
Member since
3 year
Number of followers
221
Documents
28055
Last sold
5 days ago

3.9

120 reviews

5
56
4
21
3
25
2
7
1
11

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