PracticeTest_2_soln

PracticeTest_2_soln - CS1371 Computing for Engineers...

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

View Full Document Right Arrow Icon
CS1371 - Computing for Engineers Practice Test 2 Solutions Georgia Institute of Technology : College of Computing CS 1371 Computing for Engineers Practice Test 2 – Solutions Part 1 – Multiple Choice 1. Given the following: x = [0 1 2 3 4 5 6 7 8] y = [0 2 4 6 8] plot(x, y, 'ro') What would the plot look like? A. A plot of red circular points with the given x and y values B. A solid red line connecting the given x and y values C. A curved fit for the given x and y values D. Error E. None of the above 2. Given the following: r = 10; th = linspace(0, 2*pi, 100) a = r.*cos(th); b = r.*sin(th); Which one of the below would plot a circle? A. plot(r, th) B. plot(a, th) C. plot(a, a) D. plot(r, b) E. plot(a, b) 3. The following MATLAB code is executed: A = struct('FirstName','George','Democrat',false); B = fieldnames(A); A.(B{2}) = true; What does the structure A look like after all of the code above has been executed? Democrat: 0 Democrat: 1 Democrat: 0 George: 0 Democrat: 0 George: 1 Page 1 of 7
Image of page 1

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

View Full Document Right Arrow Icon
CS1371 - Computing for Engineers Practice Test 2 Solutions 4. Which command below will create a grid of 12 graphs in a figure? 5. Which choice below is NOT true about the following line of code? f1 = fopen( ' recipe.txt ' , ' r ' )
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '08
  • Stallworth
  • Trigraph, Madrid Metro, Metropolitana di Napoli, Beijing Subway, Montreal Metro, Engineers Practice Test

{[ 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