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
B
Correct answer
Explanation
A Panel's default layout manager is FlowLayout, not BoxLayout. BoxLayout must be explicitly set. This question tests knowledge of default layout managers for different container types.
-
To repair broken frames
-
To create custom components
-
An interface between the abstract window layer and windowing implementation
-
To facilitate multicolor printing
C
Correct answer
Explanation
The Toolkit in AWT provides an interface between the abstract window layer and the native windowing system implementation. It enables platform-specific GUI operations while maintaining a consistent Java API.
-
Specify WMLas markup in portlet.xml
-
Select "Enable Wireless Markup Language setting" option
-
Enable Transcoding
-
Enable WML markup
C
Correct answer
Explanation
WebSphere Portal (WPS) requires enabling transcoding services to launch the WML (Wireless Markup Language) device emulator. Transcoding converts web content to formats suitable for different wireless devices, including WML for early mobile browsers.
-
In the Welcome file list in the application's web.xml
-
In the viewMode.page preferences attribute in the individual portlet.xml
-
As viewMode properties in the actions section in the individual struts-config.xml
-
As view attributes in the supports section of individual portlet.xml
B
Correct answer
Explanation
For Struts portlets in WPS, the initial view for VIEW mode is configured using the viewMode.page preference in portlet.xml. This portlet-specific approach allows each portlet to define its own default view, which is more flexible than application-wide welcome file lists.
-
In the Pallete
-
Int he Quick Edit view
-
In the Page Data view
-
In the Project Explorer
A
Correct answer
Explanation
In Rational Application Developer's Page Editor, all draggable components including Enhanced Faces Components (JSF components) are located in the Palette view. The Palette is the standard design-time UI for adding visual components to pages in RAD.
-
Libraries and instances
-
Applications and workflow
-
Templates and Applications
-
Templates and Business Components
C
Correct answer
Explanation
Composite applications in WPS are fundamentally built on Templates and Applications. Templates define reusable application structures, relationships, and wiring between components, while Applications are instances created from those templates.
-
Lifecycle
-
Membership
-
Templatable
-
DisplayInfo
A
Correct answer
Explanation
The Lifecycle interface in composite application frameworks (like IBM WebSphere Portal) contains methods for managing component lifecycle, including creation with supported parameters. This interface defines the contract for initializing, configuring, and managing business components throughout their lifecycle. The Membership, Templatable, and DisplayInfo interfaces serve different purposes related to access control, templating, and UI display respectively.
-
Client UI Identifier
-
Process Template Name
-
Task Instance Object Identifier(TKID)
-
Staff activity Identifier
A
Correct answer
Explanation
The Client UI Identifier is used at runtime to lookup the task page definition for portal business processes (option A). This identifier maps to the appropriate UI page or portlet that should display the task. The process template name (B) defines the process structure, not the UI. The task instance ID (C) identifies a specific task instance but doesn't specify the UI layout. Staff activity ID (D) relates to activity assignment, not UI resolution.
-
Advanced Window Toolkit
-
Abstract window Toolkit
-
Adjust Window Toolkit
-
None of these
B
Correct answer
Explanation
AWT stands for Abstract Window Toolkit, which is Java's original platform-dependent GUI toolkit. Option B is correct. Option A 'Advanced' is incorrect, Option C 'Adjust' is incorrect, and Option D is wrong because B is the correct answer.
-
xalan-J
-
Saxon
-
Jdk1.5
-
None of the above
A,B
Correct answer
Explanation
Xalan-J and Saxon are both XSLT transformation processors that can be integrated with JSP to generate multiple views from XML source data. They apply XSLT stylesheets to produce different output formats (HTML, WML, PDF, XML) from the same content, enabling view separation. Jdk1.5 is a Java development kit, not a view-generation tool.
-
Component can exist outside workspace
-
Dependencies can be defined between Components
-
Component and Class are same entities
-
Component can have Interfaces
B,D
Correct answer
Explanation
In UML and software architecture, components are modular units that interact through well-defined interfaces, meaning components can have interfaces. Additionally, dependencies can be defined between components to show relationships. Components and classes are distinct concepts, and components typically reside within a workspace.
A
Correct answer
Explanation
JavaScript opens new windows with window.open(). Option A shows the correct syntax. Option B uses a non-existent window.new(), option C treats window as a function (it's an object), and option D invents openwindow().
-
window.status = "put your message here"
-
status("put your message here")
-
statusbar = "put your message here"
-
window.status("put your message here")
A
Correct answer
Explanation
The browser status bar text is set via window.status property. Option A is correct. Option B invents a status() function, option C references a non-existent statusbar variable, and option D treats status as a method instead of a property.
-
Themes
-
Site Navigation
-
Gird View
-
Master Pages
D
Correct answer
Explanation
Master Pages in ASP.NET 2.0 provide visual inheritance by allowing developers to create a consistent layout template that child pages can inherit. This enables centralized control over page structure, navigation, and common elements across an entire site.
-
GridView
-
DataGrid
-
DataSet
-
DataBinder
A
Correct answer
Explanation
GridView is the new data-bound server control introduced in ASP.NET 2.0, replacing the older DataGrid control from ASP.NET 1.x. GridView provides enhanced features like built-in paging, sorting, and editing capabilities with less code required.