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 technology programming languages
  1. The Paint() method

  2. The Control_Build() method

  3. The Render() method

  4. The default constructor

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

When creating custom ASP.NET controls, the Render() method (from System.Web.UI.Control) must be overridden to output the control's HTML markup. This method receives an HtmlTextWriter parameter used to write the control's visual representation. Paint() is for Windows Forms, Control_Build() and default constructors are not the required override methods for rendering.

Multiple choice technology programming languages
  1. The event registration

  2. A protected class member for the control

  3. A default event handler for the click event

  4. A default class that inherits from the control’s base class

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

When a server control is added to a Web Form, Visual Studio automatically adds a default event handler for the control's default event (typically Click for buttons) to the form's code-behind class. This follows the WithEvents event handling pattern. The control itself is added as a field, but the question asks what is added beyond the control declaration - event handlers are auto-generated.

Multiple choice technology programming languages
  1. Validate

  2. ValidateControl

  3. ControlToBind

  4. ControlToValidate

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

Validator controls in ASP.NET require the ControlToValidate attribute to specify which input control they validate. This links the validator to its target control. Without this attribute, the validator cannot determine which control's value to check. Validate, ValidateControl, and ControlToBind are not valid attributes for validator controls.

Multiple choice technology programming languages
  1. System.Web.Form

  2. System.Web.GUI.Page

  3. System.Web.UI.Page

  4. System.Web.UI.Form

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

ASP.NET Web Forms inherit from System.Web.UI.Page by default, which provides the page framework, view state management, and event handling infrastructure. System.Web.Form and System.Web.UI.Form don't exist in the framework. System.Web.GUI.Page is also incorrect - the namespace is UI, not GUI.

Multiple choice technology programming languages
  1. Yes

  2. No

  3. May be

  4. None of the above

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

A single ASPX file can only use one .NET language for its server-side code blocks (within <% %> or tags). The code-behind file and the ASPX file must use the same language because they're compiled together into a single class. You cannot mix C# and VB.NET code in the same file, though different pages in the same application can use different languages.

Multiple choice technology web technology
  1. WPF

  2. Silverlight

  3. WCF

  4. ADO.NET Entity Framework

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

WCF (Windows Communication Foundation) is a framework for building service-oriented applications in .NET 3.5. It enables secure and reliable communication across different platforms, making it suitable for web services and distributed applications. WPF is for UI applications, Silverlight for rich web applications (deprecated), and ADO.NET Entity Framework for data access.

Multiple choice technology programming languages
  1. /text

  2. /doc

  3. /xml

  4. /help

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

The /doc compiler switch in C# instructs the compiler to generate an XML documentation file containing the XML comments (///) from your source code. This XML output can be used with tools like Sandcastle to create API documentation. The /text and /xml switches don't exist for this purpose.

Multiple choice technology architecture
  1. Front Controller

  2. Application Controller

  3. Context Object

  4. Business Delegate

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

The Application Controller centralizes control and retrieval logic for view and command processing, managing the flow of control and coordinating interactions between different components. Front Controller handles all requests but focuses more on request routing, Context Object encapsulates protocol-specific data, and Business Delegate reduces coupling between presentation and business tiers.

Multiple choice technology web technology
  1. ServletContext

  2. RequestScope

  3. FacesContext

  4. ApplicationScope

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

In JavaServer Faces (JSF), the FacesContext object contains all the per-request state information for a JSF request, including the view root (UIViewRoot). The view is stored within the FacesContext for processing and rendering during the request lifecycle.

Multiple choice technology web technology
  1. showcustomerlist

  2. doUpdateAction

  3. Not specific to any method this is a global rule

  4. A & B

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

The element specifies the method expression that triggers this navigation rule. In this case, #{pc_UpdateCustomer.doUpdateAction} indicates the doUpdateAction method in the pc_UpdateCustomer managed bean. When this method returns the outcome showcustomerlist, navigation to customerList.jsp occurs.

Multiple choice technology databases
  1. DEPTREE

  2. IDEPTREE

  3. INDENT_TREE

  4. I_DEPT_TREE

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

IDEPTREE is a utility that displays indirect object dependencies with indentation to show the hierarchy. DEPTREE shows direct dependencies only. INDENT_TREE and I_DEPT_TREE are not valid dependency view names. The question specifically asks for 'indirect dependencies, indenting each dependency' which matches IDEPTREE.

Multiple choice technology web technology
  1. bundlefile

  2. bundlename

  3. basename

  4. basefile

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

The fmt:setBundle tag in JSTL uses the 'basename' attribute to specify the resource bundle. This basename represents the fully qualified name of the resource bundle (minus the .properties extension). The other options (bundlefile, bundlename, basefile) are not valid attributes for this tag.

Multiple choice technology web technology
  1. Jasper

  2. Paxos

  3. Jolt

  4. Burton

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

Silverlight 1.0, Microsoft's first release of their rich web application plugin framework, carried the internal codename 'Jolt' during development. Option C is correct. 'Jasper' was a Microsoft data access codename, 'Paxos' is not associated with Microsoft Silverlight, and 'Burton' does not correspond to known Microsoft codenames for this product.