Computer Knowledge
GUI and Web Frameworks
1,711 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
-
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.
-
Java Foundation Class
-
Abstract Window Toolkit
-
Drag and Drop
-
Javax. accessibility
-
Javax.swing
B
Correct answer
Explanation
AWT is the basic GUI toolkit shipped with all versions of JDK and is part of the JFC.
-
Accessibility API
-
Javax.accessibility
-
Abstract Window Toolkit
-
2D API
-
Javax.swing
D
Correct answer
Explanation
It contains classes for implementing various painting styles, complex shapes, fonts and colours.
-
Javax.swing
-
Javax.accessibility
-
2D API
-
Accessibility API
-
Drag and Drop
E
Correct answer
Explanation
It is one of the most common metaphor used in graphical interface today.
-
2D API
-
Abstract Window Toolkit
-
Accessibility API
-
Javax.swing
-
Javax.swing.border
C
Correct answer
Explanation
It provides an interface that allow assistive technologies to interact and communicate with JFC and AWT components.
-
Group
-
WorkSpace Object
-
Container Object
-
Property Object
-
FocusEvent object
C
Correct answer
Explanation
It holds information describing the objects.
-
appCodeName
-
appBrowserName
-
appVersion
-
appName
-
userAgent
D
Correct answer
Explanation
The appName property returns the name of the browser for example Microsoft Internet Explorer or FireFox.
-
screen.width and screen.height
-
Resolution.width and Resolution.height
-
screen.pixels.width and screen.pixels.height
-
ViewerScreen.width and ViewerScreen.height
-
None of the above.
A
Correct answer
Explanation
The width and height property of the screen object returns the total width and height of the screen.
-
Linear layout
-
Relative layout
-
Absolute layout
-
Border layout
-
Table layout
D
Correct answer
Explanation
This layout is not in android.