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
-
Set PositionOnPostback as true in Page directive
-
Set MaintainScrollPositionOnPostback as true in Page directive
-
Set ViewState as true in Page directive
-
Not Possible
B
Correct answer
Explanation
The MaintainScrollPositionOnPostback attribute in the Page directive preserves the scroll position across postbacks by storing it in a hidden field. This prevents the page from jumping back to the top after a server-side event. PositionOnPostback is not a valid attribute, and ViewState handles state management, not scroll position.
-
using AliasName = System.Text;
-
using System.Text AliasName;
-
Alias System.Text AliasName;
-
Not Possible
A
Correct answer
Explanation
C# supports namespace aliases using the syntax 'using AliasName = Fully.Qualified.Namespace;'. This creates a shorthand reference that can be used throughout the file. The other syntax options shown are not valid C# syntax for creating aliases.
B
Correct answer
Explanation
The statement is false because while Android applications do have multiple screens, each screen is typically implemented by a single Activity, not multiple activities. An Activity represents a single screen with a user interface. You can have multiple activities in an app, but one activity per screen is the standard pattern.
-
The DataGrid control is not bound to its DataTable property.
-
The DataGrid control is not bound to the table Header
-
The DataGrid control is not bound to its DataSource property.
-
The DataGrid control is not bound to its DataKeyField property
-
The DataGrid control is not bound to its DataKeys property.
-
Repeater
-
DataGrid
-
DataList
-
Table
-
TableList
D
Correct answer
Explanation
Table is the best choice for a general-purpose, non-data-bound list that needs dynamic row creation. Repeater and DataList are data-bound controls, and DataGrid requires a data source. Table (option D) provides maximum flexibility for manual row creation without data binding requirements.
-
ItemCommand
-
ButtonClicked
-
OnClick
-
EditCommand
A
Correct answer
Explanation
The DataGrid control raises the ItemCommand event when any button within the grid is clicked, including custom buttons. This server-side event is specifically designed to handle button clicks in DataGrid rows. OnClick is a client-side JavaScript event, ButtonClicked is not a standard DataGrid event, and EditCommand only fires for Edit buttons specifically.
-
SWF OBJECT
-
FLASH OBJECT
-
HTML&FLASH OBJECT
-
FLA OBJECT
A
Correct answer
Explanation
SWFObject (A) was the industry-standard JavaScript library for embedding SWF (Flash) content in HTML pages. It provided cross-browser compatibility and better fallback handling than the deprecated OBJECT/EMBED tags. Options B, C, and D are not real Flash embedding methods.
-
2nd part of the action movie
-
a version of action script
-
a 2nd release of the javascript
-
wat ever may be
B
Correct answer
Explanation
ActionScript 2 is a specific version of the ActionScript programming language (ECMAScript-based) used in Flash, introducing stricter typing and better object-oriented features than AS1.
-
System.Web.UI.WebControls.WebPart.WebParts
-
System.Web.UI.WebControls.WebParts.WebParts
-
System.Web.UI.WebControls.WebParts.WebPart
-
System.Web.WebControls.WebParts.WebPart
C
Correct answer
Explanation
To create a custom WebPart in ASP.NET/SharePoint, you inherit from the WebPart base class in the System.Web.UI.WebControls.WebParts namespace. Option A is incorrect because WebParts (plural) is not a valid class name. Option B is also incorrect. Option D has the wrong namespace (System.Web.WebControls instead of System.Web.UI.WebControls.WebParts).
-
Databind()
-
CreateChildControls()
-
CreateChildRender()
-
OverrideChildControls()
B
Correct answer
Explanation
CreateChildControls() is the primary method to override when creating custom WebParts - this is where you instantiate and add your child controls to the controls collection. Databind() is for data binding operations, not control creation. CreateChildRender() and OverrideChildControls() are not standard WebPart methods.
-
A single row in the list
-
A single list in the site
-
A single field in the list
-
A single item in the list
A
Correct answer
Explanation
SPListItem represents a single row/item in a SharePoint list - it's the object model representation of one list item. Option B is incorrect - SPList represents the entire list, not a single item. Option C is wrong - SPField represents a field/column. Option D is redundant with A.
-
InfoPath forms
-
.Net Forms
-
Content Types
-
All of the baove
-
None of the above
-
For each LOB, we have a project under the SPIAcceptanceTests.sln
-
The xml scripts are written using Visual Studio 2005.
-
SPLATT can be used for Mainframe testing
-
All of the above
C
Correct answer
Explanation
The wrong statement is C because SPLATT is designed for SPL (Service Level) testing, not Mainframe testing. Options A and B describe correct aspects of SPLATT: it has projects for each LOB and uses XML scripts in Visual Studio.
-
For each LOB, we have a project under the SPIAcceptanceTests.sln
-
The xml scripts are written using Visual Studio 2005.
-
SPLATT can be used for Mainframe testing
-
All of the above
C
Correct answer
Explanation
The question asks for the WRONG statement about SPLATT. Options A and B describe true facts about SPLATT (it has projects under SPIAcceptanceTests.sln for each LOB, and uses XML scripts in Visual Studio 2005). Option C says 'SPLATT can be used for Mainframe testing' - if this is FALSE (making it the wrong statement), then SPLATT cannot be used for mainframe testing, which is plausible if SPLATT is specifically for distributed systems testing. Option D 'All of the above' cannot be correct if we're looking for a single wrong statement.
-
For each LOB, we have a project under the SPIAcceptanceTests.sln
-
The xml scripts are written using Visual Studio 2005.
-
SPLATT can be used for Mainframe testing
-
All of the above
C
Correct answer
Explanation
This question asks for the WRONG statement. Options A and B are true (SPLATT has projects per LOB and uses VS 2005). Option C correctly states that SPLATT cannot be used for mainframe testing, making it the wrong statement and thus the right answer.