sampleexam1_ENGR215_F08

sampleexam1_ENGR215_F08 - Engineering College of San Mateo...

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

View Full Document Right Arrow Icon
Engineering ENGR 215 College of San Mateo L. Demsetz Sample Questions for Exam 1 Exam 1 will be Tuesday, October 7 during lecture and lab for the on-campus section and 6:10 – 8:40 p.m. for the on-line section. There will be a pencil and paper portion of the exam and a computer portion. The exam is open book and open handout with one sheet of your own notes allowed. The sample questions provided here are last semester’s exam (given during a 3 hour lab session; this term’s 2 ½ hour exam will be shorter). We will use them as the basis of our review on Tuesday, September 30. Pencil and paper portion: 1. For the matrix A = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 What will be displayed when the following MATLAB statements are executed? Assume the statements are executed in the order shown. (10 points) a. >> B = A(3,:) b. >> C = A(2:4,2:3) c. >> D = [C ; 24 42] d. >> E = B * B 2. Given the following MATLAB statements — k = 1; i = 1.5; x = 0; for a = k : 2*i: 8 x = x + k / a; end a. What will be the value of x after this code is run? Leave your answer as the sum of several terms (no need to take out the calculator!). (5 points)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/07/2008.

Page1 / 3

sampleexam1_ENGR215_F08 - Engineering College of San Mateo...

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

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