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
-
scaleContent
-
states
-
httpStatus
-
imageLoaded
C
Correct answer
Explanation
The httpStatus event is dispatched when the mx:Image control encounters an HTTP error while loading an image, such as a 404 Not Found or 403 Forbidden response. By monitoring this event and checking its status code, you can determine whether the image failed to load correctly. The other options (scaleContent, states, imageLoaded) are not standard mx:Image events for detecting load status - scaleContent is a property, states refers to view states, and imageLoaded is not a built-in event name.
-
defer the creation of any component, container, or child of a container
-
delete the creation of any component, container, or child of a container
-
create parent container
-
Attach child container to Parent container
A
Correct answer
Explanation
The creationPolicy property in Flex controls when components are instantiated - setting it to 'deferred' or 'none' delays the creation of components, containers, or their children until they are actually needed. This improves startup performance and reduces initial memory usage. Option B incorrectly suggests 'delete' instead of 'defer', while options C and D describe unrelated container attachment operations.
-
To change height and width of a object
-
To make relative changes to the size of a display object
-
To change height more than width
-
To change width more than height
B
Correct answer
Explanation
scaleX and scaleY properties are best used for making relative proportional changes to a display object's size (like scaling to 50% or 200%), rather than for setting absolute dimensions. When you need to change specific height or width values, use the height and width properties directly. Options A, C, and D incorrectly suggest using scale properties for absolute dimension changes.
D
Correct answer
Explanation
Silverlight uses XAML (Extensible Application Markup Language) to declaratively define user interface elements, layouts, and animations. HTML, SGML, and XML are markup languages but are not the specific technology used by Silverlight for UI layout.
-
Agile
-
Personal
-
Business
-
Home
-
Relevant
-
Connected
B,E,F
Correct answer
Explanation
Windows Phone 7 design principles, often called 'red threads,' focus on making the user experience Personal, Relevant, and Connected. These threads guide the Metro design language. Business, agile, and home are not part of these designated red threads.
-
Canvas Panel
-
Stack Panel
-
Grid Panel
-
None of these
A,B,C
Correct answer
Explanation
Canvas Panel provides absolute positioning control, Stack Panel arranges elements in a horizontal or vertical stack, and Grid Panel offers row/column-based layout with comprehensive positioning. All three are valid Silverlight/WPF layout management panels. Option D ('None of these') is incorrect because all listed panels are real and commonly used.
-
DataTable
-
DataSet
-
DataColumn
-
None of these
D
Correct answer
Explanation
Silverlight does NOT support DataTable, DataSet, or DataColumn - these are ADO.NET data structures from the full .NET framework that are not available in Silverlight's subset. Silverlight uses simplified data structures and relies on other mechanisms (like collections, POCO objects, or WCF/REST services) for data handling. Therefore 'None of these' (D) is correct.
-
VideoBrush
-
PaintBrush
-
SolidColorBrush
-
ImageBrush
-
All of the above
-
application/x-silverght1.0
-
application/x-silverght2.0
-
application/x-silverght3.0
-
application/x-silverght
-
None of these
E
Correct answer
Explanation
The correct MIME type for a Silverlight application package (.xap file) is application/x-silverlight-app. Since this option is not listed among the choices, 'None of these' is the correct answer.
-
Internet Explorer Only
-
Mozilla Fire Fox Only
-
Internet Explorer & Mozilla Fire Fox
-
All major browsers
D
Correct answer
Explanation
Silverlight was designed as a cross-browser, cross-platform plugin. At its peak, it officially supported all major web browsers, including Internet Explorer, Firefox, Safari, and Chrome on both Windows and macOS.
-
Pop-up Control
-
Child window Control
-
Model window Control
-
Model Dialog Control
-
StorageManager
-
IsolatedStorage
-
ConsoleManager
-
ConfigurationStorageManager
-
All of the above
B
Correct answer
Explanation
IsolatedStorage is the Silverlight API for storing data locally on the user's computer in a secure, sandboxed location. It provides a virtual file system with controlled quota. The other options (StorageManager, ConsoleManager, ConfigurationStorageManager) are not actual Silverlight classes for local storage.
-
Glyph Element
-
Label Element
-
TextBlock Element
-
RichTextBlock Element
-
SilverLight SDK
-
.NET Framework 2.0
-
.NET Framework 3.0/4.0
-
Silverlight Run-time
-
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage.xaml; }
-
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage.xaml(); }
-
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new this.MainPage; }
-
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage(); }
D
Correct answer
Explanation
To set the default startup page in a Silverlight application, you instantiate the target Page class (e.g., MainPage) and assign the instance to the Application's RootVisual property. The other choices use invalid syntax or refer to the markup filename directly.