csc millionaire

Download CSC Millionaire

If you can't read please download the document

Upload: cruzanboy21

Post on 14-Jun-2015

244 views

Category:

Technology


0 download

TRANSCRIPT

  • 1. Who Wants to Be a CSC Major? Created by Terri Street Copyright,2000

2.

  • 1,000,000
  • 500,000
  • 250,000
  • 125,000
  • 64,000
  • 32,000
  • 16,000
  • 8,000
  • 4,000
  • 2,000
  • 1,000
  • 500
  • 300
  • 200
  • 100

3. Click to return to question, Cont-P to switch to the pen, cross out two incorrect answers, then Cont-A to switch back to pointer. 4. Click to return to the question and poll the class 5. Click on link to Google, or click on this ovalto return to question and ask a friend 6.

  • A. decimal
  • C. char
  • B. int
  • D. double

Which of these is not a primitive data type? 7. Back to Board

  • A. decimal

8.

  • A. multiplier
  • C. incrementor
  • B. extender
  • D. equalizer

Fill in the blank: for({initialization};{exit condition};{________}) 9. Back to Board C. incrementor 10.

  • A. break
  • C. package
  • B. case
  • D. const

Which keyword is used to create individual arguments in a switch statement? 11. Back to Board B. case 12.

  • A.parent classes can have several
  • children classes
  • C.children classes can have several
  • parent classes
  • B.parent classes can only have a
  • single child class
  • D.A and C

Which of the following is true in java? 13. Back to Board A.parent class can have several children classes 14.

  • A.public final main(Char [] Object)
  • C.private static final main(String args)
  • B.private static void main(Char [] args)
  • D.public static void main(String [] args)

What is the correct syntax for a main method? 15. Back to Board D.public static void main(String [] args) 16.

  • A.initializes a class
  • C.pops the top of a stack
  • B.pops a linked-list
  • D.pops the top of a queue

What does the pop() method do? 17. Back to Board C.pops the top of a stack 18.

  • A. shortens
  • C. creates
  • B. implements
  • D. extends

To use an interface ,you must write a class that ______ the interface. 19. Back to Board B. implements 20.

  • A.Deletion of elements
  • C.Direct access to elements
  • B.fixed size
  • D.complex insertion

What is an advantage of using an array over a linked list? 21. Back to Board C.Direct access to elements 22.

  • A.NoSuchElement
  • D.RuntimeComplexity
  • C.ArrayIndexOutOfBounds
  • B.NullPointer

Which of the following is not a common exception? 23. Back to Board D. RuntimeComplexity 24.

  • A. Hidden Class
  • C. Super Class
  • D. Outer class
  • B. Inner class

Which kind of class does not pollute the name space of the package? 25. Back to Board B. Inner Class 26.

  • A. Delegation
  • C. Recursion
  • B. Polymorphism
  • D. Anamorphism

What technique would allow a object to changeclass over time? 27. Back to Board A. Delegation 28.

  • B. GridBag Layout
  • A. Container Layout
  • C. Panel Layout
  • D. Frame Layout

Which of the following is a Layout Manager? 29. Back to Board B. GridBag Layout 30.

  • C. Overrides
  • A. Hides
  • B. Overloads
  • D. Equals

Superclass Instance Method Superclass Static Method Subclass Instance Method ???????? Generates a compile-time error Subclass Static Method Generates a compile-time error Hides 31. Back to Board C. Overrides 32.

  • D. next
  • A. null
  • C. first
  • B. data

Fill in the blank: private Node getLastNode()Node cNode=this.first;Node pNode=null;while(cNode != null){pNode=cNode;cNode=cNode. _____;}return pNode;} 33. Back to Board D. next 34.

  • A.Because the recursion happens
  • on nodes, not lists.
  • B.Because the recursion happens
  • on stacks, not lists.
  • D.Because the recursion happens
  • on queues, not stacks.
  • C.Because the recursion happens
  • on lists, not nodes.

In implementing a linked list recursively, why do some methods require helper functions? 35.

  • A.Because the recursion happens
  • on nodes, not lists.

36. Sorry, try again! 37. Thanks for playing! Good Luck!