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

Info icon This 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.
Image of page 1

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

View Full Document Right 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 volume and area of a disk in the variables vol and area ?
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern