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
-
/* This is a comment */
-
// This is a comment
-
{COMMENT This is a comment /}
-
{COMMENT} This is a comment {/COMMENT}
D
Correct answer
Explanation
PegaRULES Process Commander uses its own markup syntax for HTML objects, where comments are enclosed in {COMMENT} and {/COMMENT} tags. Standard programming comment syntax like /* */ or // are not recognized by the Pega engine. Option C has incorrect closing tag syntax.
-
Action Properties
-
Call Properties
-
Properties
-
None
A
Correct answer
Explanation
In QTP/UFT, actions can be made reusable through the Action Properties dialog. This setting allows an action to be called from multiple tests, promoting code reuse and modularity. Call Properties (B) and general Properties (C) are not the correct locations for this setting.
-
can be used to watch only simple variables
-
can be used to watch all simple variables and most of the object properties
-
displays all the variables encountered during the script execution runtime
-
cannot be used to watch simple variable values
B
Correct answer
Explanation
The Watch tab in QTP's debug viewer can monitor both simple variables and most object properties during runtime. It provides more comprehensive monitoring than just simple variables, but doesn't display every variable encountered - only those you explicitly add to the watch list.
-
Literal directive
-
Comment directive
-
When directive
-
With directive
D
Correct answer
Explanation
The with directive in Pega HTML/XML code sets the active context to a different clipboard page for the duration of the tag's scope. Directives like literal, comment, and when serve formatting, commenting, and conditional logic.
-
Reference directive
-
Literal directive
-
Lookup directive
-
Java directive
C
Correct answer
Explanation
The Lookup directive is specifically designed to retrieve a property value from an instance that is not present on the clipboard. Unlike Reference directive which works with clipboard pages, Lookup fetches data from the database or other sources by key. Literal directive is for constant values, while Java directive is for Java code execution.
B
Correct answer
Explanation
The Page-Copy method cannot copy properties to a destination page that belongs to a different class than the source page. Page-Copy requires both pages to be of the same class because it directly copies the entire page structure and properties. For cross-class copying, you would need other methods like Property-Set or clipboard page manipulation.
-
Retrieval
-
Sorting
-
formatting
-
displaying
A,B
Correct answer
Explanation
The Obj-List-View method is used in activities to execute a list view rule. It retrieves database records and optionally sorts them. Formatting and displaying are handled by the browser or user interface components, not by the database retrieval method itself.
-
Reference
-
Lookup
-
With
-
Save
C
Correct answer
Explanation
The WITH directive is used to define the active property reference in Pega expressions. It establishes which property becomes the primary reference point for subsequent operations. Reference directive is for referencing clipboard pages, Lookup for retrieving external data, and Save for persisting data.
-
px properties
-
py properties
-
pz properties
-
Parameters and local variables
A
Correct answer
Explanation
Property-Set-Special method is specifically recommended for setting px (platform) properties on the clipboard. Px properties are system-generated properties that Pega uses for internal operations. Py properties are for user-specific data, pz for temporary processing, and Parameters/Local Variables are managed differently. Property-Set-Special is optimized for px property manipulation.
-
Using a different query subject icon for display inthe studios.
-
Viewing the properties of the query subjects in Report Studio.
-
Viewing the properties of the query subjects in Framework Manager.
-
Using the same name for the dimension in each star schema grouping.
D
Correct answer
Explanation
In Framework Manager's business view with star schema groupings, conformed dimensions are identified by using the same dimension name across multiple star schemas. This naming convention indicates that the dimension shares the same meaning and structure across different fact tables.
B
Correct answer
Explanation
Security code review tools analyze source code for vulnerabilities. Fortify (now Fortify Static Code Analyzer) and FindBugs (static analysis for Java) are genuine code review tools. OWASP WebScarab is a web application security assessment proxy, not a code review tool. WebInspect and AppScan are dynamic/black-box web application scanners, not code review tools. Nikto is a web server scanner.
B
Correct answer
Explanation
FxCop is Microsoft's free static code analysis tool for .NET managed code. It analyzes assemblies for compliance with Microsoft's .NET Framework Design Guidelines, checking for naming conventions, library design, performance, security, and other best practices. It helps developers identify potential issues before deployment.
-
Item Event
-
Container Event
-
Adjustment Event
-
None of these
B
Correct answer
Explanation
ContainerEvent is generated when a component is added to or removed from the container.
-
Action Event
-
Adjustment Event
-
Component Event
-
Container Event
A
Correct answer
Explanation
Action Event is generated when a button is pressed, a list item is double-clicked or a menu item is selected.
-
Adjustment Event
-
Component Event
-
Container Event
-
Item Event
B
Correct answer
Explanation
Component Event is generated when the size, position or visibility of a component is changed.