CS100_SampleQuestion_PastQuizzes_2010.pdf

Result in the value of x being my workspace 1002

This preview shows page 4 - 8 out of 38 pages.

Result in the value of x being: My Workspace 1002 Computational Problem Sol (CS 100 Sec:1) 1001 Computer Vision (CS 436/5310 Sec:1) 0902 Computational Problem Sol (CS 100 Sec:1) 0802 CS 102 4/24/2011 Learning Management System : 0902 Co… …lums.edu.pk/…/3ca1bfea-3516-4816-b5… 1/3
Image of page 4

Subscribe to view the full document.

A. [54 24 6 0 6 24 54] B. [54 24 6 0 6 24 54] C. [18 12 6 0 6 18] D. There is an error in the code Answer Key: A Insert New Question select a question type Update points | Gateway | Copyright 2008-2009 IST Lahore University of Management Sciences. All rights reserved. Portions of LMS are copyrighted by sakai foundation and other parties as described in the Acknowledgments screen. Learning Management System - RELEASE - Sakai 2.5.2 - Server lms2.lums.edu.pk 4/24/2011 Learning Management System : 0902 Co… …lums.edu.pk/…/3ca1bfea-3516-4816-b5… 2/3
Image of page 5
4/24/2011 Learning Management System : 0902 Co… …lums.edu.pk/…/3ca1bfea-3516-4816-b5… 3/3
Image of page 6

Subscribe to view the full document.

Tests & Quizzes Home Syllabus Schedule Announcements Resources Assignments Gradebook Drop Box Roster Site Info Evaluation System Forums Mailtool Polls Help Users pr esent: 13100135 Aazaan Azam Khalil 13100118 Abdullah Hasan 13100072 Absar ul Hassan 13100063 Ahmed Logout Questions: Quiz Wk 4 Afternoon 5 Existing Questions - 50 total poin Add Part | Settings | Preview Assessment Add Question: select a question type Part 1 Quiz Week 4 - 5 questions Copy to Pool | Edit Question 1 Multiple Choice (single correct) - 10.0 points Remove | Edit Which of the following codes produces a different value for "a"? A. a = [0:5] ./ [0:5]; B. a = [5:-1:0] .* [5:-1:0].^(-1) ; C. a = [1 1 1 1 1]; D. a = [0:5] - [0:5] + 1; E. a = [1:6] - [0:5]; Answer Key: C Insert New Question select a question type Question 2 Multiple Choice (single correct) - 10.0 points Remove | Edit The difference between the two plots in the code below is: >> x = [0:0.01:5]; >> y = 3*x.^2 - 5; >> plot(x, y); >> plot(y); A. The shape of the graphs would look the same but the scale of the y axis would be different . B. The shape of the graphs would look the same but the scale of the x axis would be different. C. There would be no difference in the two graphs D. The shape of the two graphs would be different as well as the scale of the axes. E. The shape of the graphs would look the same but the scale of both axes would be different. Answer Key: B Insert New Question select a question type Question 3 Numeric Response - 10.0 points Remove | Edit The number of elements in the vector [5 : 0.7 : 8] is ____ My Workspace 1002 Computational Problem Sol (CS 100 Sec:1) 1001 Computer Vision (CS 436/5310 Sec:1) 0902 Computational Problem Sol (CS 100 Sec:1) 0802 CS 102 4/24/2011 Learning Management System : 0902 Co… …lums.edu.pk/…/3ca1bfea-3516-4816-b5… 1/4
Image of page 7
The number of elements in the vector [5 : 0.7 : 8] is ____ Answer Key: 5 Insert New Question select a question type Question 4 Multiple Choice (single correct) - 10.0 points Remove | Edit The MATLAB statement: >> ([4 3 2] - 4) .^ 2 would result in an answer of A. 0 1 2 B. 5 C. 0 -1 -2 D. 0 1 4 E. An error Answer Key: D Insert New Question select a question type Question 5 Multiple Choice (single correct) - 10.0 points Remove | Edit The following code produces a picture that look very unlike the picture of the tangent curve tha you might expect to see. This is because >> x = [-pi:pi/1000:pi]; >> y = tan(x); >> plot(x,y); A.
Image of page 8
You've reached the end of this preview.
  • Spring '13
  • SaraScott
  • Madrid Metro, Metropolitana di Napoli, Sakai Foundation, IST Lahore Univer, Azam Khalil, 13100118 Abdullah

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