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

Summer CMSC 131 Exam 2 Study Guide (100% Correctly Answers)

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
21-09-2023
Written in
2023/2024

What is the difference between formal verification and testing? correct answers - prove test is correct, bad: time consuming and hard - write test code to check production code, anyone can do it, bad: never quite sure its correct, cant test everything Unit Testing vs Integrated Testing correct answers - frontline, unit like a method, test each little unit - if units work together, possibly whole project JUnit correct answers - part of Java - framework that lets you write tests for code - can be written concurrently and is kept forever with project Assertions correct answers - assertTrue: if true passes, if not, fails - assertFalse (boolean expression) - assertEquals(x,y) JUnit Recommendations correct answers - lots of tests - keep test code simple - try to find "edge" and "corner" cases JUnit Observations correct answers - tests run in arbitrary order - two ways to fail: fail assertion, throws an exception - all tests will run even if some fail - if assertion fails, test is aborted Memory Diagram: Stack correct answers - is an abstract data type - when adding, does it to the top "push" - for removing, take the one off of the top "pop" Keyword "this" correct answers - sense in places where there is a current object (instance methods, constructors) NOT static method - is a reference to a current object Ways to Use "this" correct answers - inside constructor could do ( = name;) - inside instance method ((this)) - passes curr obj as variable - can call a constructor from another (must be first line) (this(nameIn)); What do we mean by user in terms of projects? correct answers - means another programmer making use of our code in their project - ex: we are users of Scanner, String class

Show more Read less
Institution
CMSC 131
Course
CMSC 131









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

Written for

Institution
CMSC 131
Course
CMSC 131

Document information

Uploaded on
September 21, 2023
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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.
SirAnton NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
View profile
Follow You need to be logged in order to follow users or courses
Sold
757
Member since
3 year
Number of followers
439
Documents
37473
Last sold
1 day ago
Reign Supreme Scholarly || Enlightened.

Get your revised study materials available here and elevate your educational outcomes. I have numerous verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. I am dedicated to offering you the best and unique learning content. You are encouraged to inquire further assistance from this end whenever need be. Kindly remember to leave your review, understanding your satisfaction is essential . We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
3.7

114 reviews

5
49
4
20
3
22
2
8
1
15

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