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 .net
  1. Form

  2. Button

  3. TextBox

  4. Label

  5. Timer

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

The Activated event is specific to the Timer control in Visual Basic. While Form controls have activation events, the Timer's Activated event is unique to that control type and triggers when the timer is enabled or activated.

Multiple choice .net
  1. AcceptsReturn

  2. BorderStyle

  3. Font

  4. Name

  5. Text

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

Explanation: The correct answer is option D) Name.

When working with a TextBox in a Windows Forms application, it is important to set the Name property before any other property. This is because the Name property is used as the identifier for the control, and changing it later can cause errors in your application.

Once you have set the Name property, you can then move on to setting other properties such as Font, BorderStyle, AcceptsReturn, and Text.

So, it is recommended to set the Name property of the TextBox control first, before any other property.

Multiple choice .net
  1. None

  2. One

  3. MultiSimple

  4. MultiExtended

  5. All of the above.

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

To determine the invalid value for the ListBox SectionMode Property, we need to understand what each option represents.

The SectionMode Property of a ListBox control determines how items are selected in the list. Here's an explanation of each option:

A. None: This option means that no items can be selected in the list. It is a valid value for the SectionMode Property.

B. One: This option means that only one item can be selected at a time in the list. It is a valid value for the SectionMode Property.

C. MultiSimple: This option means that multiple items can be selected in the list, but the selection is limited to a single contiguous range. It is a valid value for the SectionMode Property.

D. MultiExtended: This option means that multiple items can be selected in the list, and the selection can be non-contiguous. It is a valid value for the SectionMode Property.

E. All of the above: This option implies that all of the options mentioned (None, One, MultiSimple, and MultiExtended) are invalid values for the SectionMode Property. However, we have determined that all the options mentioned (A, B, C, and D) are valid values for the SectionMode Property.

Therefore, the correct answer is:

E. All of the above.

Multiple choice .net
  1. is a collection of items.

  2. is the same as the Items property of a ListBox.

  3. contains methods and properties.

  4. Both a and b.

  5. All of the above.

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

The Items property of a ComboBox is a collection object (like ListBox.Items), and collections in VB.NET have their own methods (Add, Remove, Contains) and properties (Count, Item). All statements A, B, and C are correct.

Multiple choice .net
  1. DropDown

  2. DropDownSimple

  3. DropDownList

  4. Both a and b.

  5. All of the above.

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

The DropDownStyle property of a ComboBox control determines the style of the control. It can be set to one of three values: DropDown, DropDownList, or Simple.

  • DropDown: This is the default style. It displays a text box and a drop-down list. Users can type in the text box and the drop-down list will display the options that match what they have typed.

  • DropDownList: This style displays a drop-down list only. Users cannot type in the text box.

  • Simple: This style displays a text box only. Users can type in the text box, but there is no drop-down list.

Therefore, the correct answer is A, DropDown, because this style allows the user to type in the text box and provides a drop-down list of options.

Multiple choice .net
  1. button.

  2. RadioButton.

  3. ScrollBar.

  4. Both a and b.

  5. All of the above.

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

To answer this question, the user needs to know what a checkbox is and how it appears in a graphical user interface.

A checkbox is a user interface element that allows the user to select one or more options. The checkbox typically appears as a square box that can be checked or unchecked. When the box is checked, it indicates that the option is selected. When it is unchecked, the option is not selected.

Now, let's go through each option and explain whether it is right or wrong:

A. button: This option is correct. A checkbox can also appear as a button, which allows the user to select an option by clicking on it.

B. RadioButton: This option is incorrect. A RadioButton is a different type of user interface element that allows the user to select only one option from a group of options.

C. ScrollBar: This option is incorrect. A ScrollBar is a user interface element that allows the user to scroll through a long list or document.

D. Both a and b: This option is incorrect because RadioButton is not a valid answer for this question.

E. All of the above: This option is incorrect because Checkbox does not appear as ScrollBar.

Therefore, the correct answer is:

The Answer is: A

Multiple choice .net
  1. assigning existing controls to the array.

  2. creating controls and assigning them to the array.

  3. borrowing controls that will automatically assign them to the array.

  4. Both a and b.

  5. All of the above.

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

A control array (or a collection/list of controls) can be populated by taking existing controls already defined on a form and adding them to the array, or by programmatically instantiating new controls and assigning them to the array indices.

Multiple choice .net
  1. FormMenu

  2. MenuForm

  3. MenuControl

  4. MainMenu

  5. Menu

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

To solve this question, the user needs to know about form controls that enable them to add menus to a form. In this case, the user must identify the correct name of the control used to add menus to a form.

Now, let's go through each option and explain why it is right or wrong:

A. FormMenu: This option is incorrect. There is no control named FormMenu that is used to add menus to a form.

B. MenuForm: This option is incorrect. There is no control named MenuForm that is used to add menus to a form.

C. MenuControl: This option is incorrect. Although it sounds like it could be the correct answer, there is no control called MenuControl that is used to add menus to a form.

D. MainMenu: This option is correct. MainMenu is the name of the control that is used to add menus to a form. A MainMenu control can be added to a form, and then individual MenuItem objects can be added to the MainMenu control.

E. Menu: This option is incorrect. Although it sounds like it could be the correct answer, there is no control simply named Menu that is used to add menus to a form.

The Answer is: D

Multiple choice .net
  1. A dialog box is generated programmatically.

  2. A dialog control is placed in the component tray.

  3. A dialog control is placed on the form.

  4. Both a and b.

  5. All of the above.

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

A dialog box is a secondary window that allows users to perform a command, asks users a question, or provides users with information or progress feedback. Dialog boxes can be implemented in a program in two ways:

  • Programmatically: This is the most common way to implement dialog boxes. In this approach, the dialog box is created and displayed using code. This allows for more flexibility in the design and behavior of the dialog box.
  • Using a dialog control: Some programming languages provide built-in dialog controls that can be used to create dialog boxes. This approach is simpler than creating a dialog box programmatically, but it offers less flexibility.

The correct answer to the question is D. Both a and b. Dialog boxes can be implemented in a program using either of the two methods described above.

Option A: This option is correct because it is possible to create a dialog box programmatically. This is the most common way to implement dialog boxes.

Option B: This option is also correct because some programming languages provide built-in dialog controls that can be used to create dialog boxes. This approach is simpler than creating a dialog box programmatically, but it offers less flexibility.

Option C: This option is incorrect because a dialog control is not always placed on the form. In fact, it is not necessary to place a dialog control on the form at all. The dialog box can be displayed as a separate window.

Option E: This option is incorrect because not all dialog boxes are implemented using both methods. Some dialog boxes are only implemented programmatically, while others are only implemented using dialog controls.

The correct answer is therefore D. Both a and b. Dialog boxes can be implemented in a program using either of the two methods described above.

Multiple choice .net
  1. ActivateDialog

  2. DisplayDialog

  3. ExhibitDialog

  4. ShowDialog

  5. StartDialog

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

To activate the color dialog box in a software application, the method commonly used is:

The Answer is: D. ShowDialog

Now, let's go through each option and explain why it is right or wrong:

A. ActivateDialog: This option is incorrect because there is no standard method called ActivateDialog to activate the color dialog box. The correct method is ShowDialog.

B. DisplayDialog: This option is incorrect because there is no standard method called DisplayDialog to activate the color dialog box. The correct method is ShowDialog.

C. ExhibitDialog: This option is incorrect because there is no standard method called ExhibitDialog to activate the color dialog box. The correct method is ShowDialog.

D. ShowDialog: This option is correct. The ShowDialog method is commonly used to activate the color dialog box in software applications. It displays the dialog box and waits for the user to make a selection before returning control to the calling code.

E. StartDialog: This option is incorrect because there is no standard method called StartDialog to activate the color dialog box. The correct method is ShowDialog.

In summary, the correct method to activate the color dialog box is ShowDialog.

Multiple choice .net
  1. Font.

  2. FontBox.

  3. FontDialog.

  4. FontDisplay.

  5. FontDialogBox.

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

To solve this question, the user needs to be familiar with the concept of creating dialog boxes and specifically, the font dialog box.

Now, let's go through each option and explain why it is right or wrong:

A. Font: This option is incorrect because the name "Font" does not indicate that it is specifically used for creating a font dialog box. It may refer to a class related to font manipulation, but not to the creation of a font dialog box.

B. FontBox: This option is incorrect because, similar to option A, the name "FontBox" does not specifically indicate that it is used to create a font dialog box. It may refer to a class related to font manipulation, but not to the creation of a font dialog box.

C. FontDialog: This option is correct. The name "FontDialog" specifically indicates that this class is used to create a font dialog box. It is a common naming convention in programming to use descriptive names for classes, and in this case, "FontDialog" accurately describes the purpose of the class.

D. FontDisplay: This option is incorrect because the name "FontDisplay" does not specifically indicate that it is used to create a font dialog box. It may refer to a class related to font display, but not to the creation of a font dialog box.

E. FontDialogBox: This option is incorrect because the name "FontDialogBox" is not a standard naming convention for the class used to create a font dialog box. The commonly used name is "FontDialog".

Therefore, the correct answer is:

C. FontDialog.

Multiple choice .net
  1. PrintDialog

  2. PrintPreview

  3. PageSetupDialog

  4. Both a and b.

  5. All of the above.

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

The PrintPage event in Windows Forms is triggered during printing operations. PrintDialog opens the print dialog to initiate printing, while PrintPreview displays a preview before actual printing. PageSetupDialog only configures page settings and does not trigger printing.

Multiple choice .net
  1. is located in the toolbox by default.

  2. is located in the toolbar.

  3. can be added to the toolbar.

  4. Both a and b.

  5. All of the above.

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

The Windows Media Player control is a COM component. It is not in the standard Visual Studio toolbox by default but can be added manually by the developer to the toolbox (often referred to as the toolbar in older contexts) to be used in a project.

Multiple choice .net
  1. Anchor

  2. FileName

  3. Location

  4. ShowControl

  5. Visible

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

The Visible property is a standard property in Windows Forms controls, including the Windows Media Player ActiveX wrapper. Setting Visible to false hides the control from the user's view, whereas ShowControl usually refers to the visibility of the playback buttons specifically.