GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Java

Zara Klak 111 Fragen

Quiz starten

Fragen in diesem Quiz (111)

  1. 1A GUI program has three parts:
    1. AWindows, Buttons, Mice
    2. BFrame, Code, Events
    3. CFrame, Panes and Containers
    4. DGUI Components, Graphics, Code
    5. EGUI Components, Event Listeners, Application Code
  2. 2When the paint() method of a frame object called?
    1. ANo right answer
    2. BThe main() method calls it once when the program starts
    3. CThe Java system calls it every time it decides to display the frame
    4. DThe Java system calls it once when the program starts
    5. EThe user calls it to display a frame
  3. 3What is the one component that nearly all GUI programs will have?
    1. AFrame
    2. BKeystroke
    3. CMonitor
    4. DButton
    5. EMouse
  4. 4Name of the class used to represent a GUI application window, which is optionally resizable and can have a a title bar, an icon, and menus.
    1. ALabel
    2. BDialog
    3. CFrame
    4. DWindow
    5. EPanel
  5. 5Which of these methods are used to register a mouse motion listener
    1. ANone of the mentioned
    2. BaddMouse()
    3. CaddMouseListener()
    4. DaddMouseMotionListner()
    5. EeventMouseMotionListener()
  6. 6Fill in the blanks so that the following draws a Frame containing "Hello"Bild zu Frage 6
    1. Aimport, drawString, paint
    2. Bextends, paint, drawString
    3. Cextends, draw, paint
    4. Dinclude, drawString, paint
    5. Eimplement, paint, drawString
  7. 7What is a container object in GUI programming?
    1. AA container is another name for an array or vector
    2. BA container is any class that is made up of other classes
    3. CA container is a primitive variable that contains the actual data
    4. DA container is an object like a Frame that has other GUI components placed inside of it
  8. 8What is it called when a program is written to respond to the button clicks, menu selections, and other actions of the user in whatever order the user does them?
    1. AEvent-driven programming
    2. BAction-driven programming
    3. CUser-driven programming
    4. DMouse-driven programming
  9. 9Which of the following sets the frame to 300 pixels wide by 200 high?
    1. Afrm.setSize( 300, 200 );
    2. Bfrm.setSize( 200, 300 );
    3. Cfrm.paint( 300, 200 );
    4. Dfrm.setVisible( 300, 200 );
  10. 10Which of these classes can be added to a Frame component
    1. AMenu
    2. BButton
    3. CPopupMenu
    4. DWindow
    5. EList

Informationen

Beschreibung
Quiz am Java, erstellt von Zara Klak am 30/05/2019.
Sprache
English
Aufrufe
81
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck