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 technology programming languages
  1. To repair broken frames

  2. To create custom components

  3. An interface between the abstract window layer and windowing implementation

  4. To facilitate multicolor printing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Specify WMLas markup in portlet.xml

  2. Select "Enable Wireless Markup Language setting" option

  3. Enable Transcoding

  4. Enable WML markup

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. In the Welcome file list in the application's web.xml

  2. In the viewMode.page preferences attribute in the individual portlet.xml

  3. As viewMode properties in the actions section in the individual struts-config.xml

  4. As view attributes in the supports section of individual portlet.xml

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. In the Pallete

  2. Int he Quick Edit view

  3. In the Page Data view

  4. In the Project Explorer

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Libraries and instances

  2. Applications and workflow

  3. Templates and Applications

  4. Templates and Business Components

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Lifecycle

  2. Membership

  3. Templatable

  4. DisplayInfo

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Client UI Identifier

  2. Process Template Name

  3. Task Instance Object Identifier(TKID)

  4. Staff activity Identifier

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Advanced Window Toolkit

  2. Abstract window Toolkit

  3. Adjust Window Toolkit

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Cannot be inserted as calls to the original action

  2. Can be called multiple times within a test and can be called from other tests

  3. Can be copied and inserted as independent actions

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. All dependent components of this component

  2. All components in workspace

  3. All components on which this component is dependent

  4. Only selective components as per choice

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. xalan-J

  2. Saxon

  3. Jdk1.5

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Component can exist outside workspace

  2. Dependencies can be defined between Components

  3. Component and Class are same entities

  4. Component can have Interfaces

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
Reveal answer Fill a bubble to check yourself
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().

Multiple choice technology web technology
  1. window.status = "put your message here"

  2. status("put your message here")

  3. statusbar = "put your message here"

  4. window.status("put your message here")

Reveal answer Fill a bubble to check yourself
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.