Paper Tayyari

Lecture 10: Graphical User Interfaces

MCQs, short and long questions from lecture 10.Lecture 10 ki MCQs, short aur long sawal.

7 MCQs · 1 short · 2 long questions · 7 MCQs from past papers7 MCQs · 1 short · 2 long sawal · 7 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/7
– correctsahi
1.
★ Midterm Spring 2006

In Java, which of these classes implement the LayoutManager interface?

  1. ARowLayout
  2. BColumnLayout
  3. CGridBagLayout
  4. DFlowLayoutManager

GridBagLayout is a real layout manager; the others do not exist in the JDK.

2.
★ Midterm Spring 2006

BorderLayout is the default layout manager for a JFrame's content pane

  1. ATrue
  2. BFalse

A JFrame's content pane uses BorderLayout by default.

3.
★ Midterm past paper

Window frame and dialog use ________ as their default layout.

  1. ABorder layout
  2. BFlow layout
  3. CGridBag layout
  4. DGrid layout

Window, Frame and Dialog use BorderLayout by default.

4.
★ Midterm past paper

JPanel and Applet use ________ as their default layout.

  1. AFlow layout
  2. BBorder layout
  3. CGrid layout
  4. DGridBag layout

JPanel and Applet use FlowLayout by default.

5.
★ Midterm past paper

BorderLayout is the default layout manager for a JFrame content pane

  1. ATRUE
  2. BFALSE

A JFrame's content pane uses BorderLayout by default.

6.
★ Midterm past paper

Which of the following is a general purpose container?

  1. AJFrame
  2. BDialog
  3. CJPanel
  4. DJApplet

JPanel is a general-purpose container; the others are top-level containers.

7.
★ Midterm past paper

Border layout divides the area into _______ regions

  1. A3
  2. B4
  3. C5
  4. D6

BorderLayout has five regions: north, south, east, west and center.