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

EGR 102 final exam questions with complete solutions

Document preview thumbnail
Preview 2 out of 6 pages

EGR 102 final exam questions with complete solutions

Content preview

EGR 102 final exam questions with
complete solutions6

What is an array and how is it used? - ANSWERS-An array is an ordered series or arrangement of

numbers or characters. Arrays can be used to

store information that you can get to and work

with using a computer



What does the following array look like?

sample=[32, 43, 51; 23, 13, 64; 10, 11, 12] - ANSWERS-3 rows, 3 column array



Why are bugs in program sometimes hard to detect? - ANSWERS-Bugs are sometimes hard to
find because they do not

necessarily result in an error message; they may not

even show up for all inputs (they can be inside an if

statement for example that you don't get to); and

they are not always easy to find by just looking at the

code.



What are some strategies for finding out the root cause of program/system problems? -
ANSWERS-Strategies from your ZyBook : Generate a testable

hypothesis, Use debug output statements, use a

binary search strategy or a logic tree to break the

problem into parts to eliminate a lot of potential

paths.

, If I put a thermistor or photoresistor into a voltage divider, what are the key design parameters
and what do I want in a good design? - ANSWERS-Key design parameters: the resistor in the
other

spot should be approximately the same number

of ohms as the sensor in mid

range, so there is plenty of room for the voltage to go both up and down as resistance changes.
The location

(position R1 or R2) will determine if the output

increases or decreases with the item being

sensed.



In that system what happens as the resistance of the sensor changes? - ANSWERS-Given a
voltage divider, the output Vout will go

up and down with changes in R2's resistance, and

opposite the changes in R1's resistance.



Given the following first line of a function can you identify the parts: function [gcd] =
euclid( a,b ) - ANSWERS-gcd is output parameter, a & b are input parameters,

and the name is euclid



How would I call this function from inside a program, given the same a and b, if I wanted to
have a variable FACTOR that holds the answer from the function. - ANSWERS-From the
command line>> euclid(100,20)



What are some functions that exist in MATLAB that we have used this semester and how do you
know they are functions? - ANSWERS-FACTOR=euclid(100,20);

Document information

Uploaded on
March 5, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.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.
Bensuda
3.7
(166)
Sold
917
Followers
445
Items
23096
Last sold
2 days 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