S08T2A_Koofer

# S08T2A_Koofer - EngE1114 Test 2 Spring 2008 Page 1 of 9...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
EngE1114 Test 2 Spring 2008 Page 2 of 9 Multiple Choice Questions (4 points each) 1. Consider an auto loan company where monthly interest (int) is charged based on the customer’s credit rating (CR). The loan company charges 3% if the credit rating is greater than 700, 6% if the credit rating is 600 to 700, and 10% if the credit rating is less than 600. Which of the following partial codes can be used to correctly determine the interest rate (in decimal form)? CODE 1: CODE 2: CODE 3: CODE 4: if CR > 700 int = 0.03; elseif CR >= 600 int = 0.06; else int = 0.1; end if CR >=600 if CR >700 int = 0.03; else int = 0.06; end else int = 0.1; end if CR > 700 int = 0.03; end if CR >= 600 int = 0.06; else int = 0.1; end if CR > 700 int = 0.03; elseif CR < 600 int = 0.1; else int = 0.06; end 1. 1 2. 2 3. 3 4. 4 5. 1, 2, 3 6. 1, 4 7. 1, 2, 4 8. 1, 2, 3, 4 2. Which line of code, used in a MATLAB script file, would call the function below and store the volume and area of a disk in the variables vol and area ?
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern