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. Advanced

  2. All

  3. Adapter

  4. Connection

  5. Provider

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

The correct answer is C: Adapter.

The DataLink Property window has 4 tabs: Provider, Connection, Advanced, and All. The Adapter tab is not a tab on the DataLink Property window.

  • The Provider tab is used to select the OLE DB provider that is appropriate for the application.
  • The Connection tab is used to specify the location of the data and how the connection has to be established.
  • The Advanced tab is used to view and set other initialization properties for the data.
  • The All tab is used to view and edit all OLE DB initialization properties available for the OLE DB provider.

The Adapter tab is not a tab on the DataLink Property window because it is not related to the datalink properties. The adapter is a hardware device that is used to connect to a network or other device. It is not a software property that can be configured in the DataLink Property window.

Here is a table that summarizes the tabs on the DataLink Property window:

Tab Description
Provider Selects the OLE DB provider
Connection Specifies the location of the data and how the connection has to be established
Advanced Views and sets other initialization properties for the data
All Views and edits all OLE DB initialization properties available for the OLE DB provider
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 javascript
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The window.open() method opens a new browser window. It takes the URL as the first argument and the window name as the second. Option B correctly shows this syntax: window.open('url', 'windowname'). Options A, C, and D use incorrect methods or syntax that don't exist in JavaScript.