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
-
ActionError
-
ActionMessage
-
ErrorMessage
-
ActionErrors
B
Correct answer
Explanation
In Struts 1.3, ActionMessage is the class used to represent individual messages including error messages. ActionErrors is the container/collection that holds multiple ActionMessage objects. ActionError was deprecated in favor of ActionMessage to unify the handling of all types of messages. Option C ErrorMessage is not a Struts class. Option D ActionErrors is the collection, not individual message representation.
-
a) Only A and B
-
b) Only B and C
-
c) only A and C
-
d) Only A and D
D
Correct answer
Explanation
A transaction code (TCODE) in SAP acts as a shortcut to call a specific SAP screen directly (D) and can also be used to call a specific SAP Menu path (C) or screen (A). Option d correctly identifies the primary navigational shortcuts.
-
<common-forwards>
-
<forwards-global>
-
<common-forward>
-
<global-forwards>
D
Correct answer
Explanation
In Struts configuration, the tag is used to define forward declarations that are common to all actions in the application. These forwards can be referenced from any action using their logical name. Options A, B, and C are not valid Struts configuration tags.
-
Auto-Generating
-
Migrating
-
Scaffolding
-
Running a rake
C
Correct answer
Explanation
Scaffolding in Ruby on Rails is a code-generation technique that automatically produces the model, views, controller, and database migration files for a resource.
-
GUI Developed in VB using ECI calls
-
Presentation logic devleloped on any platform using MQ Series
-
Web applications through an Interner protocal like HTTP
-
All of the above.
D
Correct answer
Explanation
CICS supports multiple interface options: GUI front-ends can use External Call Interface (ECI), presentation logic can connect via MQ Series messaging, and web applications can communicate through HTTP using CICS Transaction Gateway. All these approaches are valid CICS integration methods.
-
Only Package
-
Only application plan
-
Both A & B
-
None of the above
C
Correct answer
Explanation
The DB2 BIND process can produce either a package (from a DBRM) or an application plan (directly from DBRMs or by grouping packages), making both options valid.
-
DriveListBox Control
-
Timer Control
-
Common dialog control
-
VScrollBar Control
C
Correct answer
Explanation
The Common Dialog control in Visual Basic 6.0 does not have any intrinsic events of its own. It is designed to display standard Windows dialogs (File Open, Save, Color, Font, Print) and you interact with it through methods like ShowOpen, ShowSave, etc., rather than event-driven programming.
B
Correct answer
Explanation
The DOM is largely standardized by W3C specifications, so IE and Firefox implement similar core DOM structures. While there are implementation differences and browser-specific extensions, the fundamental DOM architecture is not 'totally different' between the two.
-
Business
-
Modern
-
Contemporary
-
Standard
D
Correct answer
Explanation
Cognos 8 Report Studio includes several predefined styles/templates including Business, Modern, and Contemporary. 'Standard' is not one of the built-in style names in Cognos 8. The predefined styles are typically named for their visual aesthetic and target use case. This is a straightforward factual question about Cognos 8's template library.
-
CDOCItem
-
CDC
-
CBrush
-
CAnimateCtrl
B
Correct answer
Explanation
CDC (Device Context) class in MFC provides member functions for device-context operations including drawing tools selection, GDI object management, and color/palette operations. It's the fundamental class for all drawing operations in Windows. CBrush handles only brush objects, CAnimateCtrl is for animation controls, and CDOCItem is for document items.
A
Correct answer
Explanation
The MFC library wraps the Windows HMENU handle and provides menu management functionality through the CMenu class. Thus, the statement is true.
-
afxdlg.h header file.
-
afxdlgs.h header file
-
afxprp.h header file
-
afxproppg.h header file
B
Correct answer
Explanation
CPropertyPage is the class for property sheet pages in MFC and is declared in afxdlgs.h, which contains common dialog classes including property sheets/pages.
-
MapHandler
-
CommandMaps
-
HandleCommands
-
Message maps
D
Correct answer
Explanation
MFC's message map mechanism connects windows messages and command IDs to member functions using macros like BEGIN_MESSAGE_MAP and ON_COMMAND, avoiding the need for a giant switch statement.
A
Correct answer
Explanation
Standard modal dialog boxes in Windows are designed with a fixed layout that typically only includes a Close button in the title bar. They cannot be minimized, maximized, or restored like standard windows. This is by design to ensure the user completes the dialog's intended action before proceeding.
-
b only
-
a and b
-
b and c
-
all the above
D
Correct answer
Explanation
In MFC, a CDocument is managed by a CDocTemplate, the CWinApp object manages the application's frame windows, and CFrameWnd creates the client area windows, making all statements correct.