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
-
The porcess is short running
-
The process is a state machine
-
The corresponding process template is stopped
-
None
-
Click
-
Double Click
-
Pressed
-
Normal
-
Valid
-
InvalidFocused
B
Correct answer
Explanation
Silverlight controls do not natively support a DoubleClick event, unlike traditional Windows Forms controls. The Click event is available, as are states like Pressed, Normal, Valid, and InvalidFocused, but DoubleClick is not part of the Silverlight control event model.
B
Correct answer
Explanation
In Silverlight and similar UI frameworks, a control can only have one direct Style applied to its Style property. While styles can inherit from other styles using BasedOn, you cannot apply multiple independent styles simultaneously to a single control.
-
Provide browser's Horizontal scroll bar
-
Provide content pane's vertical scroll bar
-
Provide content pane's horizontal scroll bar
-
Provide browser's vertical scroll bar
B,C
Correct answer
Explanation
When page content exceeds scroll length in both directions, you need scrollbars for both horizontal and vertical scrolling. The content pane (not the browser) should provide these scrollbars. Option A incorrectly refers to the browser's horizontal scrollbar, while Option D incorrectly refers to the browser's vertical scrollbar. The correct solution is to provide both scrollbars within the content pane itself.
-
To set the source of the style
-
To define a binding in a style or template
-
To avoid binding source conflict
-
To set multiple source for a single control
B
Correct answer
Explanation
RelativeSource is a MarkupExtension in WPF/XAML binding that allows you to define bindings relative to the target element, particularly useful within styles and templates. It enables binding to the element itself (Self), its parent/ancestor types, or previous data items. Options A, C, and D describe incorrect purposes. RelativeSource is specifically designed to define bindings in styles/templates where the source cannot be directly specified.
-
App.xaml
-
MainPage.xaml
-
Inline to the control
-
In resource dictionary
A,C,D
Correct answer
Explanation
In WPF/XAML, styles can be defined at multiple levels: App.xaml (application-wide resources), inline directly on controls, and in resource dictionaries (which can be merged or defined at various levels). Option B (MainPage.xaml) is incorrect as a standalone answer - MainPage.xaml would use a resource dictionary section, but MainPage.xaml itself is not a style definition mechanism. The correct locations are resource sections, not arbitrary XAML files.
-
Visual Studio
-
Expression blend
-
ArcGIS
-
All the above
B
Correct answer
Explanation
Expression Blend 3 is a Microsoft design tool for WPF and Silverlight applications, not for Flash. Flash is an Adobe technology platform. Expression Blend was designed specifically for creating XAML-based interfaces for Microsoft technologies (WPF, Silverlight, Windows Phone). It does not support Flash development or Flash UI components.
-
ActiveX Control
-
Scripting Language
-
CSS
-
XSLT
B
Correct answer
Explanation
Client-side scripting languages like JavaScript allow you to intercept and control browser events such as mouse clicks, keyboard input, and page interactions. For example, JavaScript can prevent the default right-click context menu by using event.preventDefault() on contextmenu events. CSS only controls presentation, while XSLT transforms XML documents - neither can handle user actions.
-
A view row must be a type or an element or an attribute
-
The view root is the top-level element in a view. The view root is the parent to all the other elements in the view
-
Two views can have the same view row in an XML source or XML Parser transformation
-
All the Above
-
None of the Above
B,C
Correct answer
Explanation
View root defines the top-level element as parent to all view elements. Two different views can reference the same view row from an XML source. A view row can be a type, element, or attribute - not must be only one of these.
-
System.Globalization
-
System.Diagnostics
-
CsharpCodeProvider
-
IcodeCompiler
-
All the Above
C
Correct answer
Explanation
CsharpCodeProvider class in the System.CodeDom.Compiler namespace helps compile .cs files into .dll files programmatically. System.Globalization and System.Diagnostics are unrelated namespaces. ICodeCompiler is an interface, not a class.
A
Correct answer
Explanation
Natural automatically reserves a one-line message area at the bottom of maps used for screen layouts. This default behavior provides consistent space for system messages and user feedback without requiring explicit configuration by the developer.
-
MDS
-
Silverlight
-
Xcode
-
J2ME
B
Correct answer
Explanation
Silverlight was Microsoft's application development platform for Windows Phone 7, providing XAML-based UI and .NET support. Xcode is Apple's iOS tool, J2ME is Java for feature phones, and MDS is not a relevant platform.
-
DroidDraw
-
GUI PSD
-
Eclipse
-
Expression Blend
D
Correct answer
Explanation
Expression Blend is a user interface design tool developed by Microsoft specifically for Windows Phone 7 application development. It allows designers to create interactive UI prototypes and visual designs. DroidDraw is for Android, GUI PSD is not a Windows Phone tool, and Eclipse is a general-purpose IDE.