Computer Knowledge

GUI and Web Frameworks

1,711 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. Mouse Move

  2. Text Change

  3. Button Click

  4. Both a and b.

  5. All of the above.

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

Mouse move events are purely client-side in web applications. In ASP.NET, actions like Text Change (if AutoPostBack is true) and Button Click can trigger server-side events. Mouse movements generate too many events to be practical for server-side processing.

Multiple choice .net
  1. has a thin front end (client).

  2. needs to be available to the public.

  3. must be platform-independent.

  4. Both a and b.

  5. All of the above.

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

To determine the correct answer, let's go through each option and explain why it is right or wrong:

A. has a thin front end (client): This option suggests that using a web application is best when the application has a thin front end or client. A thin front end typically refers to a minimal user interface that focuses on displaying information rather than performing complex operations. In such cases, a web application can be a suitable choice as it can provide a lightweight and easily accessible interface through a web browser. However, this option alone does not cover all the possible scenarios.

B. needs to be available to the public: This option suggests that using a web application is best when the application needs to be available to the public. Web applications can be accessed over the internet, allowing them to be easily accessible to a wide range of users. This option is valid in scenarios where the application needs to be publicly accessible.

C. must be platform-independent: This option suggests that using a web application is best when the application must be platform-independent. Web applications are typically built using web technologies such as HTML, CSS, and JavaScript, which are supported by most modern web browsers across different platforms. This allows users to access the application regardless of their operating system or device, making it platform-independent.

D. Both a and b: This option combines options A and B, suggesting that using a web application is best when the application has a thin front end (client) and needs to be available to the public. Both of these options are valid reasons to choose a web application, but they do not cover the requirement of being platform-independent.

E. All of the above: This option combines options A, B, and C, suggesting that using a web application is best when the application has a thin front end (client), needs to be available to the public, and must be platform-independent. This option covers all the valid reasons stated in the previous options and provides a comprehensive answer.

Based on the explanations above, the correct answer is:

E. All of the above.

Multiple choice .net
  1. Button

  2. Label

  3. Textbox

  4. Both a and b.

  5. All of the above.

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

To solve this question, the user needs to have a basic understanding of VB.NET controls and objects.

In VB.NET, a control is an object that can be added to a form to create an interactive user interface.

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

A. Button: This option is correct. A button in VB.NET is an example of an object. It is a control that can be added to a form and has properties, methods, and events that can be accessed and manipulated in code.

B. Label: This option is correct. A label in VB.NET is an example of an object. It is a control that can be added to a form and has properties, methods, and events that can be accessed and manipulated in code.

C. Textbox: This option is correct. A textbox in VB.NET is an example of an object. It is a control that can be added to a form and has properties, methods, and events that can be accessed and manipulated in code.

D. Both a and b: This option is incorrect. While both a button and a label are examples of objects, a textbox is also an example of an object.

E. All of the above: This option is correct. All three controls - button, label, and textbox - are examples of objects in VB.NET.

The Answer is: E

Multiple choice .net asp
  1. Write a separate include file for those unique pages.

  2. Forget the include file. It is easier to just put the unique menu in using HTML code.

  3. Have the include file test for the type of page and then print out the correct menu.

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

Option C is the best approach because it maintains the single source of truth benefit of includes while handling variations intelligently. The include file can detect the current page type or context and dynamically output the appropriate navigation menu. Writing separate include files (Option A) creates maintenance overhead, while abandoning includes (Option B) defeats the purpose of code reuse and makes future changes more difficult.

Multiple choice .net asp
  1. Page_Load()

  2. Page_Init()

  3. Page_click()

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

The Page_Init() event is the first event triggered in the ASP.NET page lifecycle, occurring before Page_Load(). The page lifecycle order is: Page_Init, Page_Load, then control events (like clicks). Page_Init is used for initialization tasks that need to happen before the page loads, such as dynamically creating controls or setting initial values.

Multiple choice .net asp
  1. Winforms

  2. HTMLForms

  3. Webforms

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

Postback is a mechanism in ASP.NET Webforms where the page posts data back to itself for processing. Webforms use postback to handle user interactions while maintaining page state. Winforms are desktop applications and don't use HTTP postback, and HTMLForms is not an ASP.NET-specific term.

Multiple choice .net asp
  1. System.web.UI.Page

  2. System.Windows.Page

  3. System.Web.page

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

In the .NET Framework, the base class for all ASP.NET web pages is System.Web.UI.Page. This class provides the necessary properties and methods (like Request, Response, and Session) to handle web requests. Note that C# is case-sensitive, making 'Web.UI' the correct casing.

Multiple choice .net asp
  1. User controls are displayed correctly in the Visual Studio .NET Designer

  2. Custom controls are displayed correctly in VS.Net Designer

  3. User and Custom controls are displayed correctly in the Visual Studio .NET Designer.

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

Custom controls render correctly in the Visual Studio .NET Designer, while user controls do not always display properly during design-time. This is because user controls (.ascx files) have dependencies and runtime context that the designer cannot fully replicate, whereas custom controls are compiled assemblies designed to work at design-time. This is a known limitation of user controls.

Multiple choice .net asp
  1. System.Web.UI.Webcontrol

  2. System.Web.UI.Customcontrol

  3. System.Web.UI.Customcontrols.Webcontrol

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

Custom controls in ASP.NET typically derive from System.Web.UI.WebControls.WebControl (for UI-heavy controls) or System.Web.UI.Control (for logic-heavy controls). The option provided (2625) appears to be a specific or slightly mislabeled hierarchy, but WebControl is the standard base.

Multiple choice .net asp
  1. IsPostBack is a method of System.UI.Web.Page class

  2. IsPostBack is a method of System.Web.UI.Page class

  3. IsPostBack is a readonly property of System.Web.UI.Page class

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

IsPostBack is a property of the System.Web.UI.Page class that returns a boolean value indicating whether the page is being loaded in response to a client postback or if it is being loaded for the first time. It is a property, not a method.

Multiple choice .net asp
  1. Event-driven

  2. Static

  3. Linear

  4. Topdown

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

ASP.NET uses an event-driven processing model where page lifecycle and control events are raised in a specific sequence. Developers write code to handle these events (like Page_Load, Button_Click, Init, etc.) rather than following linear or top-down execution.

Multiple choice .net asp
  1. Yes

  2. No

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

To answer this question, we need to understand the purpose of the EnableViewState property in ASP.NET.

The EnableViewState property determines whether the state of a control on a web page is saved and restored across postbacks. By default, EnableViewState is set to true, which means that the state of controls, including user input on a form, is saved and restored automatically.

So, the correct answer is:

A. Yes

EnableViewState allows the page to save the user's input on a form.

Multiple choice .net asp
  1. Datalist

  2. DropdownList

  3. Repeater

  4. Datagrid

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

The Repeater control has no default visible interface or built-in rendering layout. Unlike DataList, DropDownList, and DataGrid which have predefined layouts (table-based or dropdown), the Repeater requires you to explicitly define all templates (ItemTemplate, HeaderTemplate, FooterTemplate, etc.) and renders exactly what you specify.

Multiple choice .net vb
  1. Showdialog( )

  2. Activate ( )

  3. Loaddialog()

  4. Show( )

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

ShowDialog() displays a form as a modal dialog, blocking interaction with the parent form until the dialog is closed. The Show() method (D) displays a form as modeless. Activate() (B) just brings focus to an already shown form, and Loaddialog() (C) is not a standard method.