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
-
Container Event
-
Component Event
-
Focus Event
-
Item Event
D
Correct answer
Explanation
Item Event is generated when a check box or a item list is clicked or when a check menu item is selected or deselected.
-
Component
-
Container
-
Layout manager
-
None of these
C
Correct answer
Explanation
Layout manager defines how the components will be arranged in a container.
-
The @ application directive
-
The @ import directive
-
Global.asax file
-
Application_EndRequest
-
Parameter file
A
Correct answer
Explanation
This directive enables developers to add descriptive text to applications.
-
Web form
-
DLL
-
ASPX
-
Global.asax
-
Command file
B
Correct answer
Explanation
This type of file is used to contain custom types employed by the application.
-
Application_End request
-
The @ assembly directive
-
The @ import directive
-
Assembly name
-
Global.asax
B
Correct answer
Explanation
This directive identifies assemblies Global.asax uses that ASP.NET and does not link to by default.
-
init
-
PreLoad
-
PreRender
-
InitComplete
-
LoadComplete
B
Correct answer
Explanation
The PreLoad event is raised after the page loads view state for itself and all controls, and after it processes PostBack data that is included with the Request instance. We can process any kind of operation that we want before the page load.
-
@Implements
-
@OutputCache
-
@Register
-
@MasterPage
-
@Import
D
Correct answer
Explanation
This is not a valid directive for an ASP.NET page.
-
Panel
-
Table
-
Image
-
PlaceHolder
-
ListBox
D
Correct answer
Explanation
The PlaceHolder Web server control allows us to place an empty container control within the page and then dynamically add, remove or loop through child elements at run time. The control renders only its child elements, it renders no markup of its own. In other words, the PlaceHolder control does not produce any visible output.
-
AlternatingItemTemplate
-
PageTemplate
-
HeaderTemplate
-
ItemTemplate
-
SeparatorTemplate
B
Correct answer
Explanation
The PageTemplate is invalid template in Repeater Control.
-
They have a .ascx extension.
-
They are compiled into a dynamic link library (DLL).
-
They are derived from the System.Web.UI.UserControl class.
-
The user control cannot have html or body tags.
-
They have a Control directive instead of a Page directive.
B
Correct answer
Explanation
A user control is compiled at run time. When the compiler finds the register directive in a .aspx page that points to a user control, it compiles the control before it inserts its content into the .aspx page. The customer controls are compiled as DLL files.
-
DetailsView
-
GridView
-
Repeater
-
DataList
-
ListBox
A
Correct answer
Explanation
The DetailsView control gives you the ability to display, edit, insert or delete a single record at a time from its associated data source. The DetailsView control displays only a single data record at a time.
-
It separates the modelling of the domain into three separate classes.
-
It is a design pattern for the separation of user interface logic from business logic.
-
It increases the complexity of the solution.
-
The controller part is responsible for displaying all or a portion of the data to the user.
-
The MVC separation also simplifies group development.
D
Correct answer
Explanation
Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern is made up of the following three parts:
Model - The lowest level of the pattern which is responsible for maintaining the data.
View - This is responsible for displaying all or a portion of the data to the user.
Controller - Software Code that controls the interactions between the Model and View.
-
The @ import directive
-
The @ assembly directive
-
Web form
-
The using directive
-
The execution support
D
Correct answer
Explanation
This technique allows us to use only the command Console.WriteLine() instead of the entire command System.Console.WriteLine().
-
ASCX file
-
ASPX file
-
Global.asax file
-
The archive file
-
The parameter file
C
Correct answer
Explanation
This file is a text file that houses application level event handlers declarations that pertain to all parts of the application and other global application elements.
-
The @ application directive
-
The @ import directive
-
The @ assembly directive
-
ASPX
-
Web form
A
Correct answer
Explanation
This directive supports the inherits attribute that enables code to be removed from Global.asax and packaged in separate DLL.