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)

CSC226 Que & Answ | First Test

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

CSC226 Que & Answ | First Test 1. 18. A data type whose properties (domain and operations) are specified independently of any particular implementation is a(n) .: Answer: Abstract Data Type or ADT 2. 19. The Java mechanism can be used by Java program- mer's to create their own ADTs.: Answer: class 3. Assumptions that must be true upon entry into a method for it to work correctly are .: Answer: preconditions 4. 21. The Java construct is used to formally specify the logical level of our ADTs.: Answer: interface 22. What does the

Show more Read less
Institution
Course

Content preview

CSC226 Que & Answ | First Test

1. 1. True or False? An abstraction of a system is a model of the system
that includes all the details about the system.: Answer: False
2. 2. True or False? UML diagrams are a form of abstraction, since they
hide details and allow us to concentrate just on the major design
components.: - Answer: True
3.3. True or False? UML diagrams are not a form of abstraction, since they
hide details and only allow us to concentrate on the major design
components.: - Answer: False
4. 4. True or False? When you code a method that has preconditions the
first thing you should have the code do is check that the preconditions
are true.: Answer: False
5. 5. True or False? An abstract method must not have any executable
code.-
: Answer: True
6. 6. True or False? An abstract method must not have any comments.:
Answer: False
7. 7. True or False? In order to be used, an interface must implement a
class.-
: Answer: False
8. 8. True or False? A class can extend an interface.: Answer: False
9. 9. True or False? A class that implements an interface can include
methods that are not required by the interface.: Answer: True
10.10. True or False? A class that implements an interface can leave
out methods that are required by the interface.: Answer: False
11.11. True or False? An interface definition can include constant
declara- tions.: Answer: True
12. 12. True or False? An interface definition can include concrete methods.-
: Answer: False
13.13. True or False? A Java interface must have at least one defined
con- structor.: Answer: False
14.14. True or False? You can instantiate objects of an interface.: Answer:
False
15. 15. We deal with ADTs on three levels. On which level do we just need
to know how to use the ADT?
A. application (or user, client)
B. machine (or assembly)
C. logical (or abstract)
D. primitive (or language dependent)
E. implementation (or concrete): Answer: A
1/7

, CSC226 Que & Answ | First Test

16. 16. We deal with ADTs on three levels. On which level do we deal
with the "how" questions, as in how we represent the attributes and
fulfill the responsibilities of the ADT?




2/7

Written for

Course

Document information

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

Subjects

$9.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

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.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

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

Working on your references?

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

Working on your references?

Frequently asked questions