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
-
web.xml
-
*.tld
-
faces-config.xml
-
applicationcontext.xml
C
Correct answer
Explanation
To register a custom JSF tag component class, you must make an entry in faces-config.xml. This is the JSF configuration file where components, validators, converters, and other JSF artifacts are declared. The web.xml file is for general web app configuration, while .tld files are for JSP tag libraries.
-
The MVC pattern introduces extra classes due to the separation of the model,view and the controller components
-
The view component accesses the enterprise data through the model component
-
The model-view separation principle states that the application logic should not be put in the UI object method
-
The Model-View separation principle helps minimize the impact of requirement change in the interface on the controller layer
D
Correct answer
Explanation
This question tests understanding of MVC relationships. Options A, B, and C all describe genuine MVC concepts: A acknowledges the pattern introduces more classes due to separation, B correctly states views access data through models, and C accurately states application logic should not reside in UI methods. Option D claims Model-View separation minimizes interface changes' impact on the controller layer, which is misleading. Model-View separation primarily isolates business logic from presentation. The controller layer sits between them and handles input, but the principle specifically addresses decoupling Model from View, not interface-to-controller relationships.
-
Flow Layout
-
GridLayout
-
Card Layout
-
BorderLayout
-
GridBagLayout
D
Correct answer
Explanation
In Java's AWT and Swing, the default layout manager for Frame and JFrame is BorderLayout. Other options like FlowLayout (default for Panel/Applet), GridLayout, and CardLayout must be explicitly set using the setLayout method.
-
A True and B False
-
A False and B True
-
A False and B False
-
A True and B True
A
Correct answer
Explanation
TStaticText descends from TWinControl and has its own window handle, which allows it to have more control over its appearance and behavior. TLabel descends from TGraphicControl, NOT TWinControl, and does NOT have its own window handle - it's drawn directly on its parent's surface for better performance. The statement claims B says 'TLabel descends from TWinControl but does not have window handle' which is FALSE because TLabel doesn't descend from TWinControl at all. Therefore 'A True and B False' is correct.
-
RequiredFieldValidator
-
CustomValidator
-
RangeValidator
-
ValidationSummary
D
Correct answer
Explanation
ValidationSummary does not validate a specific input control itself, but instead displays a summary of errors from all page validators; hence, it lacks the ControlToValidate property. Other options validate individual inputs and require it.
-
Expand
-
Expand All
-
Expand Items
-
Expand Rows
B
Correct answer
Explanation
In HP QTP/UFT, the "Expand All" option in the View menu recursively expands all steps and nodes in the Keyword View hierarchy. Other options like "Expand" or "Expand Rows" do not perform a full expansion of all levels.
-
NewDefaults
-
Model.
-
FlowRule
-
Harness
A
Correct answer
Explanation
In Pega PRPC, the NewDefaults rule type is where you specify the default harness for new work objects of a class. The harness defines the user interface structure and layout for work object forms. This setting determines which UI template is used when creating new instances.
-
bookmark.nsf
-
notes.ini
-
desktop8.ndk
-
cache.ndk
C
Correct answer
Explanation
The desktop8.ndk file stores workspace settings including icons, bookmarks, and other desktop customization in Lotus Notes. The bookmark.nsf file is a different database for storing bookmarks, while notes.ini contains configuration parameters. Cache.ndk holds temporary cached data, not workspace elements.
-
welcome Page
-
bookmark pane
-
workspace
-
none of the above
C
Correct answer
Explanation
desktop8.ndk is the Lotus Notes file responsible for storing the workspace dashboard structure, icons, and configuration. The welcome page and bookmark pane are stored in bookmark.nsf rather than desktop8.ndk.
-
3 -> 2 -> 1
-
3 -> 1 -> 2
-
1 - 2 - > 3
-
None of Above
B
Correct answer
Explanation
In ASP.NET, configuration hierarchy applies settings from most specific to most general: root Web.config (3) → application-specific Web.config (1) → Machine.config (2). The root Web.config overrides application Web.config, which overrides Machine.config. This allows specific settings to take precedence over broader system-wide defaults.
-
repeat-x
-
repeat-y
-
no-repeat
-
repeat on both axes
D
Correct answer
Explanation
The default value for background-repeat is 'repeat', which means the background image repeats both horizontally and vertically. Option D correctly describes this behavior. Options A (repeat-x) and B (repeat-y) repeat only in one direction, while option C (no-repeat) prevents repetition entirely.
-
HTML Server control
-
Web Server Control
-
HTML Control
-
None of the above
A
Correct answer
Explanation
An HTML Server control maps directly to standard HTML tags while remaining accessible on the server. However, Web Server controls can also render pure HTML based layouts (e.g., Literal, Repeater). Additionally, HTML Server controls require the 'runat=server' attribute, making the question somewhat subjective. But since HTML Server controls preserve HTML structure directly, the stored answer is acceptable.
-
workspace
-
Navigator item
-
managed system
-
the hub monitoring server
B
Correct answer
Explanation
A situation must be associated with a Navigator item to display its event icon in the Tivoli Enterprise Portal. The Navigator provides the hierarchical view where situation status indicators appear. Workspaces display data but don't control icon visibility.
-
It allows the attributes used within the situation formula to be highlighted in the Situation Event Console.
-
It allows the situation to look at other rows in the sampling and open more events if other rows qualify.
-
It creates a workspace link to a Situation Event Details view for that situation when the situation evaluates true.
-
It causes the situation to send OPEN and CLOSED status messages to the Universal Message Console view based on the evaluation of predefined attributes within the Advanced options menu.
A
Correct answer
Explanation
When modifying nested elements (grandchildren) in the framework's layer system, you must copy the entire parent child element that contains the grandchild to your custom application layer. This maintains the structural integrity and allows proper override of the nested configuration.