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 packaged enterprise solutions
  1. .myProperty

  2. Primary. myProperty

  3. local.myProperty

  4. Primary. MyProperty

  5. .MyProperty

  6. primary.myProperty

Reveal answer Fill a bubble to check yourself
A,B,F Correct answer
Explanation

Properties on the primary page can be accessed using dot notation (.myProperty) or by explicitly prefixing the page name as Primary.myProperty or primary.myProperty. The keyword Primary is case-insensitive, but local variables use the local prefix, and case-sensitive property naming conventions must be matched.

Multiple choice technology web technology
  1. Create separate areas for desktop and mobile browsers

  2. Use same controllers and views for desktop and mobile browsers, but render views with different razor layouts for desktop and mobile browsers.

  3. Do nothing

  4. Use same controllers, but render different views for desktop and mobile browsers.

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

When the same data is served to desktop and mobile with only CSS changes, the best MVC approach is to use the same controllers and views but switch Razor layouts dynamically. This avoids code duplication while allowing device-specific styling through different layout files. Option A creates unnecessary duplication, option D duplicates views unnecessarily, and option C is not a viable solution.

Multiple choice technology web technology
  1. Index method of HomeController.cs

  2. About method of _Layout.cshtml

  3. RegisterRoutes method in Global.asax.cs

  4. Login method of HomeController.cs

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

When multiple MVC areas have different HomeController classes, ambiguity is resolved in the RegisterRoutes method in Global.asax.cs. This is where you configure route constraints and namespaces to specify which HomeController should handle requests. Options A and D refer to specific controller methods, and option B references a view file, not routing logic.

Multiple choice technology web technology
  1. Global.asax.cs

  2. web.config

  3. _Layout.cshtml

  4. _ViewStart.cshtml

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

In MVC3, the _ViewStart.cshtml file is used to specify which layout file to render. To associate a different layout for mobile devices, you would add code in _ViewStart.cshtml to check the request browser and conditionally set a different layout file. Options A and B are configuration files not used for view logic, and option C is a layout file itself, not the place to assign layouts.

Multiple choice technology web technology
  1. True

  2. False

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

The MVC framework is NOT built on top of ASP.NET framework - it's an alternative pattern built directly on the ASP.NET core runtime, alongside traditional Web Forms. ASP.NET MVC and ASP.NET Web Forms are both built on ASP.NET, but neither is built on the other. The statement 'built on top of ASP.NET framework' is false.

Multiple choice technology web technology
  1. True

  2. False

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

In MVC applications, it is NOT mandatory that different areas share the same controllers. Each area can have its own set of controllers with the same names without conflict, thanks to area-based routing and namespace separation. Areas are designed specifically to allow modular, independent controller sets.

Multiple choice technology web technology
  1. RazorLayout

  2. ViewStart

  3. HomeController

  4. MobileAreaRegistration

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

In ASP.NET MVC, mobile area registration is handled by the MobileAreaRegistration class in the App_Start folder. This class inherits from AreaRegistration and is specifically designed to register mobile-specific areas. The HomeController (C) handles routing logic within an area, while ViewStart (B) manages view layouts and RazorLayout (A) is a layout file - none of these specify the area registration itself.

Multiple choice technology security
  1. A building block is a package of functionality defined to meet the business needs

  2. A building block has published interfaces to access the functionality

  3. A building block may be assembled from other building block

  4. A building block may have multiple implementations

  5. All of the above

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

To answer this question, the user needs to be familiar with the concept of building blocks in software engineering.

All of the options (A, B, C, and D) describe generic building blocks in software engineering.

A. A building block is a package of functionality defined to meet the business needs. This statement is true because building blocks are designed to provide specific functionality that meets the requirements of a particular business or application.

B. A building block has published interfaces to access the functionality. This statement is also true because building blocks typically have well-defined interfaces that allow other components to interact with them.

C. A building block may be assembled from other building blocks. This statement is true because building blocks can be combined and nested to create more complex systems.

D. A building block may have multiple implementations. This statement is also true because building blocks can be implemented in different ways to meet different requirements or to take advantage of different technologies.

Therefore, the correct answer is: E) All of the above.

Multiple choice technology mainframe
  1. /* This is a comment */

  2. // This is a comment

  3. {COMMENT This is a comment /}

  4. {COMMENT} This is a comment {/COMMENT}

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

PegaRULES Process Commander uses its own markup syntax for HTML objects, where comments are enclosed in {COMMENT} and {/COMMENT} tags. Standard programming comment syntax like /* */ or // are not recognized by the Pega engine. Option C has incorrect closing tag syntax.

Multiple choice technology testing
  1. Action Properties

  2. Call Properties

  3. Properties

  4. None

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

In QTP/UFT, actions can be made reusable through the Action Properties dialog. This setting allows an action to be called from multiple tests, promoting code reuse and modularity. Call Properties (B) and general Properties (C) are not the correct locations for this setting.

Multiple choice technology testing
  1. can be used to watch only simple variables

  2. can be used to watch all simple variables and most of the object properties

  3. displays all the variables encountered during the script execution runtime

  4. cannot be used to watch simple variable values

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

The Watch tab in QTP's debug viewer can monitor both simple variables and most object properties during runtime. It provides more comprehensive monitoring than just simple variables, but doesn't display every variable encountered - only those you explicitly add to the watch list.

Multiple choice technology packaged enterprise solutions
  1. Literal directive

  2. Comment directive

  3. When directive

  4. With directive

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

The with directive in Pega HTML/XML code sets the active context to a different clipboard page for the duration of the tag's scope. Directives like literal, comment, and when serve formatting, commenting, and conditional logic.

Multiple choice technology packaged enterprise solutions
  1. Reference directive

  2. Literal directive

  3. Lookup directive

  4. Java directive

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

The Lookup directive is specifically designed to retrieve a property value from an instance that is not present on the clipboard. Unlike Reference directive which works with clipboard pages, Lookup fetches data from the database or other sources by key. Literal directive is for constant values, while Java directive is for Java code execution.