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

Multiple choice technology web technology
  1. statusbar = "put your message here"

  2. window.status("put your message here")

  3. window.status = "put your message here"

  4. status("put your message here")

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The browser status bar can be accessed via the window.status property in JavaScript, not as a method. Option C correctly assigns a string value to this property. Options A and D reference non-existent objects, and option B incorrectly tries to call status as a function when it's actually a property. Note that modern browsers often disable status bar manipulation due to security considerations, so this may not work in all browsers.

Multiple choice technology programming languages
  1. <init-property name="service" value="selectRecord"/>

  2. <set-property property="service" value="selectRecord"/>

  3. <put-field key="service" content="selectRecord"/>

  4. None of Above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Struts configuration, the tag is used to initialize bean properties on ActionMapping. The correct syntax uses 'property' and 'value' attributes. Option A uses which is not a valid Struts tag. Option C uses which is not valid syntax. The correct approach is Option B with .

Multiple choice technology programming languages
  1. Overriding the populate method of the ActionForm

  2. Overriding the processPopulate method of the Request Processor

  3. Overriding the populateBean method of the ActionMapping

  4. All of Above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Struts 1.1, form population is handled by the RequestProcessor in its processPopulate method. To customize how Struts populates form beans, you override the processPopulate method in a custom RequestProcessor subclass. Option A is incorrect because ActionForm doesn't have a populate method. Option C is incorrect because ActionMapping doesn't have a populateBean method.

Multiple choice technology programming languages
  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None of Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Tiles framework, localization is typically achieved by creating separate Tiles configuration files for each locale (e.g., tiles-defs_en.xml, tiles-defs_fr.xml). Each definition file contains locale-specific tile definitions. While you can specify a locale for individual definitions, the primary approach is separate configuration files per locale.

Multiple choice technology programming languages
  1. Create separate configuration files for each locale

  2. Specify a locale for a form-set

  3. Either A or B

  4. None of Above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Struts Validator supports two localization approaches: you can create separate validator-rules_XX.xml files for each locale, or use within a single file to group forms by locale. Both approaches are valid and supported by the framework.

Multiple choice technology databases
  1. SET

  2. ALTER

  3. CHANGE

  4. UPDATE

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In the Listener Control utility (lsnrctl), the SET command is used to modify listener runtime parameters like password, save_config_on_stop, and tracing options. ALTER, CHANGE, and UPDATE are not valid lsnrctl commands. The SET modifier allows dynamic configuration changes without restarting the listener.

Multiple choice technology architecture
  1. BuildEventSource

  2. CreateEventSource

  3. CallEventSource

  4. All

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The CreateEventSource method is used to register an event source with the event log. The code checks if the source exists using SourceExists, then creates it if needed. This establishes the source name so the service can write events to the log.

Multiple choice technology architecture
  1. CanContinue

  2. CanPauseAndContinue

  3. CanResume

  4. Continue

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The CanPauseAndContinue property of ServiceController indicates whether the service can be paused and resumed. Before calling Continue(), you should check this property to ensure the service supports pause and continue operations. Without this check, attempting to continue a non-pausable service would throw an exception.

Multiple choice technology architecture
  1. private ServiceController FMServiceController = new ServiceController ('EasyNomad') ;

  2. private ServiceController FMServiceController = new ServiceController ('EasyNomad', 'FileWatch') ;

  3. private ServiceController FMServiceController = new ServiceController ('FileWatch', 'EasyNomad') ;

  4. private ServiceController FMServiceController = new ServiceController(“FileWatch”) ;

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Explanation

ServiceController constructors accept either (serviceName) for the local machine or (serviceName, machineName) for a remote machine. Option C specifies service 'FileWatch' on machine 'EasyNomad', while D uses just the service name for the local machine. Options A and B reverse the parameter order or mismatch service/machine names.

Multiple choice technology architecture
  1. Adding the ServiceController component from the Services Control Manager

  2. Adding the ServiceController component from the Toolbox

  3. Adding the ServiceController component to the Designer from Server Explorer

  4. Using manually entered code

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

ServiceController components can be instantiated by dragging from the Toolbox to a form, adding from Server Explorer which lists available services, or writing manual code using the new ServiceController() constructor. However, you cannot add it from the Services Control Manager (services.msc) - that's for managing services, not development components.

Multiple choice technology programming languages
  1. area where the assembly code is compiled

  2. area in which Debug information is a stored

  3. area in which Assembly metadata is stored

  4. area where variables are initialized

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In .NET assembly structure, the manifest is the metadata that describes the assembly's identity, version, dependencies, and security requirements. It is NOT for code compilation, debug information, or variable initialization - those are handled by other parts of the assembly structure.

Multiple choice technology web technology
  1. .Net Compact Framework

  2. Support for IP6

  3. Windows Card Space

  4. Generics

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Generics were introduced in .NET Framework 2.0 as a major feature allowing type-safe reusable code. The .NET Compact Framework existed before 2.0. IPv6 support was added in 2.0 but is less distinctive. Windows CardSpace arrived later with .NET 3.0.