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
-
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.
-
Cannot be inserted as calls to the original action
-
Can be called multiple times within a test and can be called from other tests
-
Can be copied and inserted as independent actions
-
All the above
B
Correct answer
Explanation
Reusable actions can be invoked multiple times within a test and from other tests, promoting modularity. They cannot be merely copied as independent actions nor are they uncallable; thus the other statements are false.
-
All dependent components of this component
-
All components in workspace
-
All components on which this component is dependent
-
Only selective components as per choice
A
Correct answer
Explanation
When 'Fetch New Shared Model' is executed, it performs a fetch operation on all components that depend on the current component. This means any component that relies on this component will be updated with the latest version, ensuring dependency chains remain synchronized.
B
Correct answer
Explanation
Component implementations are NOT visible to other components. This is a fundamental principle of CBD - only the interface is exposed, while the internal implementation remains hidden. This encapsulation allows components to be developed and modified independently as long as they adhere to the interface contract.
-
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.