csci e10a practice final exam 2017.pdf - Page 1 Computer Science E-10a Introduction to Computer Science Using Java I Practice Final Exam This open-book

csci e10a practice final exam 2017.pdf - Page 1 Computer...

This preview shows page 1 - 4 out of 15 pages.

Computer Science E-10a: Introduction to Computer Science Using Java, IPage 1Practice Final ExamThis “open-book” examination will last approximately 2 hours. You may use any notes, texts, or other references at your disposal; however, we advise you not to waste too much time leafing through your materials. This exam contains 110 points; in order to properly budget your time, plan on spending approximately 1 minute per point. If you succeed in allocating your time like this, you may have ten minutes left over to check your work. Note, however, some of you might find this exam challenging, so don’t worry if you run out of time to check your work or if you can‘t completely finish solving all the problems. Do not bother to "dummy-proof" your code (e.g., you need not check for valid input values) unless specifically asked to do so. Show all of your work right here on the exam. And, as always,best of luck!__________________________________________________________ Your Name __________________________________________________________ Your Teaching Fellow’s Name [1][2][3][4][5][6][7][8][9][10][11][12][13][14]Fall, 2017Practice Final ExamDr. H. H. Leitner
Background image
Computer Science E-10a: Introduction to Computer Science Using Java, IPage 2Part A — 12 Multiple-Choice Questions (5 points for each; 60 points total)For each question in this part, clearly mark the correctanswer in the appropriate space below._______1.A Javaprogram that uses methods defined in the Arraysclass (e.g., Arrays.toString()) MUST contain which one of the following keywords?A.breakB.privateC.thisD.importE.continue______2.Which one of the following best describes the circumstances under which the expression (!a && b) == !(a || b)evaluates to true? Assume both aand bare variables of type boolean.Fall, 2017Practice Final ExamDr. H. H. Leitner
Background image
Computer Science E-10a: Introduction to Computer Science Using Java, IPage 3______3.Which one of the following method headers (i.e., the first line in the definition of a method) is illegal?___ ___ 4.Consider the following array of integers:A.4 1 2 6 7 3 5 10B.1 2 4 6 3 5 7 10C.1 2 4 3 7 5 6 10D.1 2 4 6 3 5 7 10E.1 2 4 3 5 6 7 10Fall, 2017Practice Final ExamDr. H. H. Leitner
Background image
Image of page 4

You've reached the end of your free preview.

Want to read all 15 pages?

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes