• 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 11 pages
Exam (elaborations)

EECS 280 Midterm | UPDATED Questions with 100% Verified Answers

Document preview thumbnail
Preview 2 out of 11 pages

EECS 280 Midterm | UPDATED Questions with 100% Verified Answers

Content preview

EECS 280 Midterm | UPDATED Questions with 100% Verified Answers

Question:
Types of testing

Answer:
Unit testing, system testing, Regression testing


Question:
Unit Testing

Answer:
- Test smaller, less complex, easier to understand units
- One piece at a time (e.g., a function)


Question:
System testing

Answer:
- Test entire project (code base)
- Do this after unit testing


Question:
- Regression testing

Answer:
- Automatically run all unit and system tests after a code
change


Question:
Steps to test:

Answer:
1. Understand the specification
2. Write tests
3. Check the results


Question:
Arrays

, Answer:
An array is a fixed-sized, indexed, homogeneous aggregate
type (a collection of items, all of the same type.)


Question:
declare arrat

Answer:
int bar[4]; // Array, int bar[4] = {1, 2, 3, 4}; // Static Initializer


Question:
accessing array elements

Answer:
- You can access the contents of an array using an "index".
The index of the first array element is zero, the next is one,
and so on.
- Each individual element is used just like a regular int, so all
of the following are legal: 1 // array = {1, 2, 3, 4} 2 array[1] =
6; 3 // array = {1, 6, 3, 4} 4 ++array[1]; 5 // array = {1, 7, 3,
4} 6 array[0] = array[1]; 7 // array = {7, 7, 3, 4}


Question:
declare a pointer to int

Answer:
int *foo


Question:
bar is a pointer to int

Answer:
1 int foo; 2 int *bar; 3 bar = &foo; 4 foo= 1;
- The symbol "&" means "address-of". So, this statement says
that "bar is a pointer to an integer, initialized to the address of
foo

Document information

Uploaded on
September 30, 2026
Number of pages
11
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$13.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.
ExamsCollection
3.9
(45)
Sold
249
Followers
9
Items
40200
Last sold
10 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