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
-
Sets the zoom level
-
Defines how many markers can be placed on the map
-
Defines de version of google map api to be used
-
Indicates the number of vertical controls available to the user
C
Correct answer
Explanation
In google.load('maps', '2'), the '2' parameter specifies the version of the Google Maps API to load. This allows developers to control which API version their application uses.
-
var marker = new GMarker(point);
-
var marker = new GoogleGMarker(point);
-
var marker = map.overlayMarker(new GMarker(point));
-
var marker = new Marker(point,"G");
A
Correct answer
Explanation
The GMarker class is instantiated with a GLatLng point object as its constructor argument. This is the standard syntax for creating markers in Google Maps API v2. Options B, C, and D either use incorrect class names or non-existent methods.
-
var Marker = new GMarker(center,true);
-
var marker = new GMarker(center, {draggable: true});
-
var Marker = new GMarker(center, enableDragAndDrop = true);
-
var Marker = new GMarker(center, new draggableMarker(me,true));
B
Correct answer
Explanation
In the Google Maps API (specifically GMarker in version 2), the second parameter accepts a GMarkerOptions object, where setting the draggable property to true enables marker dragging. The other options use incorrect syntax, incorrect parameters, or invalid constructors.
-
map.addOverlay(new GMarker(point, markerOptions));
-
map.placeMarker(new Overlay(GMarker(point,markerOptions)))
-
map.placeMarker(GMarker(myLatitude,myLongitude))
-
map.addOverlay(new GMarker(point, markerOptions){position:top});
A
Correct answer
Explanation
The addOverlay method is used to place markers and other overlays onto a Google Map. The correct syntax is to create a GMarker object with a point and optional markerOptions, then pass it to map.addOverlay. Options B and C use non-existent methods.
-
A Version Control Tool for elevating components into production
-
a Source Control tool that always ensures we modify the latest version of the code
-
a Tool that allows you to automate & control the movement of code during the SDLC
-
Only Choice 1 & Choice 2
-
All the above
-
None of the above
E
Correct answer
Explanation
Endevor is an IBM mainframe-based Software Change Management tool that combines version control, source control, and automated deployment capabilities. It manages code movement through SDLC stages while ensuring integrity. All the listed functions (version control, source control, automation of code movement) are core features of Endevor, making all the above the correct answer.
-
A Version Control Tool for elevating components into production
-
a Source Control tool that always ensures we modify the latest version of the code
-
a Tool that allows you to automate & control the movement of code during the SDLC
-
Only Choice 1 & Choice 2
-
All the above
-
None of the above
E
Correct answer
Explanation
Endevor is an IBM mainframe tool that combines version control, source control, and automated deployment capabilities for managing software throughout the SDLC. It controls the movement of code from development through testing to production, ensuring proper approval processes and maintaining version history. All the listed descriptions accurately capture aspects of Endevor's functionality.
-
The component is edited in Endevor
-
The component is copied to a Temporary dataset and edited
-
Signs out the element to your ID
-
a & c only
-
b & c only
E
Correct answer
Explanation
Quick-Edit both copies the component to a temporary dataset for editing AND signs out the element to your ID. The signing out is necessary to prevent other users from editing simultaneously.
-
Component can be edited after it is cast in a Package
-
Component cannot be edited after it is cast in a Package
-
To edit a component the package should be reset
-
b & c only
-
a & c only
D
Correct answer
Explanation
In Endevor, once a component is cast in a package, it cannot be directly edited. To make changes, the package must first be reset (removing the cast), then the component can be edited and re-cast. This ensures version control integrity.
-
Properties
-
Resources
-
Web
-
Web Settings
A
Correct answer
Explanation
Browser Navigation Timeout is configured in the Properties tab of the Test Settings window in QTP/UFT. This tab contains various timeout settings and configuration options for test execution. Resources, Web, and Web Settings tabs do not contain this particular configuration.
-
Expand
-
Expand All
-
Expand Items
-
Expand Rows
B
Correct answer
Explanation
The Expand All option from the View menu expands all steps in the Keyword View of QTP/UFT. Expand is not a valid menu option. Expand Items and Expand Rows are not standard options for this purpose.
-
A. Action Settings
-
B. Action Properties
-
C. Action Run Settings
-
D. Action Call Properties
B
Correct answer
Explanation
Actions are marked as reusable in the Action Properties dialog in QTP. This is done by accessing the action's properties and checking the 'Reusable action' checkbox. Action Settings typically contain different properties (like name, description), Action Run Settings handle runtime parameters, and Action Call Properties manage how actions are called - none of these contain the reusable setting.
-
A. Action Settings
-
B. Action Properties
-
C. Action Run Settings
-
D. Action Call Properties
D
Correct answer
Explanation
Action iteration settings (number of iterations, which rows to run) are configured in the Action Call Properties dialog when you call an action from another test. Action Properties/Settings are for other configurations like object repositories.
-
a)Nothing
-
b)The Orguments for that object
-
c)the methods and properties for that object
-
d)The child Objects and methods for that object
D
Correct answer
Explanation
In QTP/UFT, typing a dot after an object in Expert View triggers the statement completion feature, which displays a drop-down list containing the child objects, methods, and properties available for that object.
-
a. Properties
-
b. Resources
-
c. Web
-
d. Web settings
C
Correct answer
Explanation
Browser navigation timeout settings are configured in the Web tab of the Test Settings window (accessed via File > Settings). Properties typically contains general test settings, Resources manages test assets, and Web Settings would not be the standard tab name in most testing tools.
-
Saveprechange
-
Fieldchange
-
SaveEdit
-
Rowinit
-
Searchinit
A
Correct answer
Explanation
The SavePreChange event should not use WinMessage because it fires during the save process before database commits, and user interaction at this critical point can cause save failures, timeouts, or inconsistent database state. WinMessage is appropriate in FieldChange, SaveEdit, RowInit, and SearchInit where user interaction is safe.