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

Multiple choice technology web technology
  1. scaleContent

  2. states

  3. httpStatus

  4. imageLoaded

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. defer the creation of any component, container, or child of a container

  2. delete the creation of any component, container, or child of a container

  3. create parent container

  4. Attach child container to Parent container

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. To change height and width of a object

  2. To make relative changes to the size of a display object

  3. To change height more than width

  4. To change width more than height

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Canvas Panel

  2. Stack Panel

  3. Grid Panel

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. DataTable

  2. DataSet

  3. DataColumn

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. application/x-silverght1.0

  2. application/x-silverght2.0

  3. application/x-silverght3.0

  4. application/x-silverght

  5. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Internet Explorer Only

  2. Mozilla Fire Fox Only

  3. Internet Explorer & Mozilla Fire Fox

  4. All major browsers

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. StorageManager

  2. IsolatedStorage

  3. ConsoleManager

  4. ConfigurationStorageManager

  5. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage.xaml; }

  2. private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage.xaml(); }

  3. private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new this.MainPage; }

  4. private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage(); }

Reveal answer Fill a bubble to check yourself
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.