Computer Knowledge

GUI and Web Frameworks

1,915 Questions

Graphical user interface and web frameworks involve layout management, directives, and application design across platforms like Android and Angular. These concepts are tested in computer science and IT officer competitive exams. Review these questions to understand UI components and coding standards.

Android layout attributesAngular structural directivesVB.Net web methodsJava Swing componentsSiebel application framework

GUI and Web Frameworks Questions

Multiple choice
  1. 10

  2. 9

  3. 8

  4. 7

  5. 6

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct choice, there are 8 Layout Managers in java. These are :-1. BorderLayout2. BoxLayout3. CardLayout4. FlowLayout5. GridBagLayout6. GridLayout7. GroupLayout8. SpringLayoutSo this is correct choice.

Multiple choice
  1. 5

  2. 4

  3. 3

  4. 2

  5. 1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct answer we can pass maximum 2 arguments to the BorderLayout Constructor. These arguments are :-BorderLayout(int horizontalgap, int verticalgap)This will create a BorderLayout with specified horizontal and vertical gap between the components.So this is the correct answer.

Multiple choice
  1. Int rows

  2. Int columns

  3. Int HorizontalGap

  4. Int VerticalGap

  5. Int Alignmnent

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct answer. We can pass maximum 4 arguments to the GridLayout constructor. These arguments are :-GridLayout(int rows, int columns, int HorizontalGap, int VerticalGap)This will create a gridlayout with specified number of row and columns and with a specific horizontal and vertical gap between the componenets.So the third argument is HorizontalGap.So this answer is correct.

Multiple choice
  1. Int horizontalGap

  2. Int VerticalGap

  3. Int Alignment

  4. Int Rows

  5. Int Columns

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer, we can pass 3 arguments to the FlowLayout constructor. These 3 arguments are :-FlowLayout(int alignment, int horizontalgap, int verticalgap)Alignment:- it can be FlowLayout.LEFT, FlowLayout.RIGHT or FlowLayout.CENTERHorizontalgap : - it specifies the horizontal gap between the components.Verticalgap : - It specifies the vertical gap between the components.So the third argument is VerticalGao, so this answer is correct.

Multiple choice
  1. Window

  2. Applet

  3. Panel

  4. Dimension

  5. Dialog

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This answer is correct, because Dimensions is the one of the Helper Classes present in Java AWT. This class encapsulates the width and the height of the component in a single object.So this is correct choice.

Multiple choice
  1. Int rows

  2. Int columns

  3. Int horizontalGap

  4. Int VerticalGap

  5. Int Alignment

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer. We can pass maximum 4 arguments to the GridLayout constructor. These arguments are :-GridLayout(int rows, int columns, int HorizontalGap, int VerticalGap)This will create a gridlayout with specified number of row and columns and with a specific horizontal and vertical gap between the componenets.So the second argument is Columns.So this answer is correct.

Multiple choice
  1. Int alignment

  2. Int horizontalGap

  3. Int VerticalGap

  4. Int Rows

  5. None of these

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is the correct answer we can pass maximum 2 arguments to the BorderLayout Constructor. These arguments are :-BorderLayout(int horizontalgap, int verticalgap)This will create a BorderLayout with specified horizontal and vertical gap between the components.There is no third argument.So this is the correct answer.