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

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

View Full Document Right Arrow Icon
EngE1114 Test 2 Spring 2008 Page 1 of 9 Virginia Polytechnic Institute & State University Engineering Education EngE 1114 TEST 2 Part 1 Spring 2008 (60 Minutes) FORM A NAME_____________________________________________________________________ (Print: Last Name, First Name) WORKSHOP: CRN _________________________________LEADER_________________ I have neither given nor received unauthorized assistance on this test. __________________________________________ (Signature) ______________________________________________________________________________ DO NOT OPEN THIS TEST BOOKLET UNTIL INSTRUCTED TO DO SO. Complete the following items and darken appropriate circles on your op-scan: NAME Last, First COURSE ENGE1114 ID NUMBER Your VT number that starts 90… COURSE REF WSL Name FORM Test form SEAT NO The last 3 digits of your CRN. Incompletely or incorrectly filling out this information on the OPSCAN will result in a 5 point deduction to your test grade. Write your name in the space provided on page 9. Page 9 must be submitted with the test. This test is closed book and closed notes. Test 2 Part 1 is 100% multiple-choice . There are 20 problems each worth 4 points. Select the BEST response. Circle your response on the test form and record your answers on the op-scan sheet. The op-scan form will not be returned to you. Additional time at the end of the test will NOT be allowed to fill in your op-scan form. This test, in its entirety, counts towards your programming average for ENGE 1114. A 60% average on all programming assignments is required to pass this course.
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/05/2010 for the course ENGE 1114 taught by Professor Twknott during the Spring '06 term at Virginia Tech.

Page1 / 9

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

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online