GrandQuiz1_Solution

GrandQuiz1_Solution - CS 391 Advanced Programming in Java...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 391 Advanced Programming in Java Autumn 2006 Grand Daddy Quiz Solution 35 minutes - 55 marks October 12, 2006 [Closed Books/Closed Notes/Open Mind]
Background image of page 1

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

View Full DocumentRight Arrow Icon
All the best ! SCOREBOARD Question 1 2 3 4 5 6 7 8 Total Marks
Background image of page 2
Round I - Warming you up Question 1 [10 marks] Encircle the correct option 1. How do you call a static method? a. with a class identifier b. with a new class instance c. None of the above 2. Which two keywords are used together to create a class level constant? a. public and constant b. final and constant c. final and static 3. To allow a class member to be overridden, which of the following modifier should not be used? a. public b. protected c. default d. private e. final 4. What results would print from the following code snippet: System.out.println("CS ".valueOf(391)); a. The application won’t compile b. CS 391 c. 391 d. none of the above 5. If you use FlowLayout , how do you know how many components fit in one row? a. The width of the container determines how many components fit on a row b. You need to set the size of each component first, then add them to a row. c. You need to divide the container into rows and columns then add components as required.
Background image of page 3

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

View Full DocumentRight Arrow Icon
6. By relying on layout managers to position components, you don't have to calculate absolute positions for components a. True b. False 7. JComponent is a direct subclass of a. java.awt.Frame a. java.awt.Container b. java.lang.Object
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/09/2010 for the course CS CS300 taught by Professor Abh during the Spring '10 term at lln.

Page1 / 12

GrandQuiz1_Solution - CS 391 Advanced Programming in Java...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online