Spring2019_Quiz3-Solution .docx - COMP2150 Quiz3(Generics List/ArrayList(Maximum points Names(print your name here Section(001/002/350(circle your

Spring2019_Quiz3-Solution .docx - COMP2150 Quiz3(Generics...

This preview shows page 1 - 3 out of 7 pages.

COMP2150 Quiz3 ( Generics, List/ArrayList, ) (Maximum: points) Names: (print your name here) Section (001 /002 /350) (circle your section #) (all multiple choices questions are 3 marks each unless specified otherwise) (1) ____________enable programmers to specify, with a single method declaration, a set of related methods. a. Overloaded methods. b. Overriding methods. c. Generic methods. d. Generics. e. Dynamic, runtime matching Ans C (2)Generics provide __________ that allows programmers to catch invalid types early a.Compile-time type safety.b.Compile-time exception handling. c.Compile-time error checking.d.Compile-time warning.e.Run-time error checking Ans a (3)Which of the following statements is false?
Image of page 1
(4) One generic Stack class could be the basis for creating many Stack classes, e.g., Stack<Double>, Stack<Integer> and Stack<Employee>. These classes are known as __________. a. Subclasses b. Generic subclasses c. Concrete classes d. Abstract classes e. Parameterized classes f. Polymorphic classes Ans e.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 7 pages?

  • Fall '08
  • Staff

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes