CSE219Fall2013MidtermExamGroup1

CSE219Fall2013MidtermExamGroup1 - ZCSE 219 Fall 2013...

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

View Full Document Right Arrow Icon
ZCSE 219 – Fall 2013 – Midterm Exam – Group 1 Monday, 10/21/2013 Name: First Last Student ID # _________________________________ Please show your ID when requested. Please leave at least one seat between yourself and the person next to you. Use a #2 Pencil to fill in the appropriate bubble on your answer sheet. Fill in one answer per question No books, notes, or electronic equipment can be used during the exam. For all questions, select the best answer from the choices provided Any CHEATING will result in an F as well as being written-up on academic dishonesty. FIRST: Write and fill in the bubbles for your full name on the answer sheet Write and fill in the bubbles for your ID Number on the answer sheet DO NOT FILL IN YOUR DATE OF BIRTH Fill in the exam version number ATTENTION: Make sure your exam has all 50 questions . CSE 219 – Fall 2013 – Midterm Exam – Group 1 1
Image of page 1

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

View Full Document Right Arrow Icon
Question 1 D In HW 3 we defined the MahjongSolitairePanel class. For the test method defined below, which line would result in a syntax error? public static void test( MahjongSolitairePanel canvas) { Object o = canvas; // A JPanel p = canvas; // B Container c = canvas; // C JFrame f = canvas; // D canvas = canvas; // E } Question 2 E Which of the following is not one of the four states of a thread in Java’s multithreaded model? A) Blocked B) Dead C) New D) Runnable E) Running Question 3 E What is used to call a constructor in the same class during a class’ construction? Question 4 B What Java API method did we use to request exclusive access to data for a given thread? CSE 219 – Fall 2013 – Midterm Exam – Group 1 2
Image of page 2
Question 5 B The _________________ only cares about an object’s actual type. Question 6 E The actual type of an object refers to the type the object was _______________ as. A) Assigned B) Cast C) Declared D) Inherited E) Instantiated Question 7 C D The apparent type of an object refers to the type the object was _______________ as. Question 8 D What Object Oriented Programming feature lets methods defined in frameworks call custom methods defined years later in applications?
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

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