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 .net vb
  1. Add keyword to Method signature

  2. Add [WebMethod] on top of the Method Signature

  3. Add {WebMethod} on top of the Method Signature

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

In VB.NET, Web Methods are defined by adding the attribute immediately preceding the method signature. Note that VB.NET uses angle brackets for attributes, whereas C# uses square brackets. The stored answer text is slightly truncated but refers to this attribute requirement.

Multiple choice web-design
  1. Folders View

  2. All Files View

  3. Task View

  4. Themes View

  5. Navigation View

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

Navigation View in Microsoft FrontPage displays all pages in a hierarchical tree structure, showing the site's organization and link relationships. Folders View shows files, All Files View shows all files in a flat list, Task View tracks tasks, and Themes View manages theme settings. Only Navigation View provides the tree structure.

Multiple choice web-design
  1. A good navigation plan should include shortcuts.

  2. Common navigational schemes include the items: FAQ, Search, About, and Site Map.

  3. The visitor should not have to click more than 3 times to reach a desired page.

  4. Icons and logos should be avoided in navigational structures because graphic files increase download times.

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

The question asks what is NOT true - option D claims icons should be avoided due to download time, which is outdated thinking. Modern web design embraces icons for visual communication and improved UX. Options A, B, and C describe legitimate navigation best practices: shortcuts are useful, FAQ/About/SiteMap are standard elements, and the '3-click rule' is a common (though debated) heuristic.

Multiple choice css html
  1. selector { property: value }

  2. selector { property= value }

  3. selector ( property: value )

  4. selector ( property= value )

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

CSS style rules follow the syntax 'selector { property: value }' where the selector targets HTML elements, properties and values are separated by a colon (not equals sign), and the declaration block uses curly braces { }. Options B and D incorrectly use '=' instead of ':'. Options C and D use parentheses instead of curly braces, which is incorrect CSS syntax.

Multiple choice java
  1. layout manager

  2. outline manager

  3. component design

  4. component manager

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

Layout managers are responsible for arranging and positioning components within a container in GUI frameworks like Java Swing or AWT. They determine the size and placement of child components based on defined rules.

Multiple choice qn1
  1. 4.5

  2. 2

  3. 3

  4. None

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

To answer this question, the user needs to know about .NET Framework and its different versions.

The .NET Framework is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework.

Now, let's go through each option and explain why it is right or wrong:

A. 4.5: This option is not the latest version of .NET Framework. Although it was a popular version, the latest version of .NET Framework is higher than 4.5.

B. 2: This version is not the latest version of .NET Framework. .NET Framework 2 was released on January 22, 2006, and has since been superseded by newer versions.

C. 3: This version is not the latest version of .NET Framework. .NET Framework 3 was released on November 6, 2006, and has since been superseded by newer versions.

D. None: This option is not correct since there is a latest version of .NET Framework available.

Therefore, the correct answer is:

The Answer is: A. 4.5

Multiple choice asp.net
  1. System.Web.Control

  2. System.Web.RootBuilder

  3. System.Web.UserControl

  4. system.Web.UI.Page

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

The Page class in ASP.NET belongs to the System.Web.UI namespace, making the full qualified name System.Web.UI.Page. System.Web.Control is the base control class, RootBuilder is for page parsing, and UserControl is for user controls, not pages.

Multiple choice asp.net
  1. Page Events

  2. Page_Load

  3. Page_Unload

  4. Page_Init

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

Page_Unload is the final stage in the ASP.NET WebForms lifecycle, occurring after the page has been rendered and sent to the client, allowing for cleanup operations like closing database connections and releasing resources. Page_Init occurs early, Page_Load occurs during the loading phase, and "Page Events" is too generic to be a specific lifecycle stage.

Multiple choice asp.net
  1. Init

  2. Load

  3. Prerender

  4. Render

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

The PreRender event is the last stage in the ASP.NET page lifecycle where you can modify controls and their properties before the page is actually rendered to HTML. During the Render phase, the HTML output is generated and written to the response stream, so any changes made after PreRender would not be reflected in the output. The Init and Load events occur earlier in the lifecycle and are used for initialization and loading logic respectively.

Multiple choice asp.net
  1. Init event

  2. PreInit event

  3. Load event

  4. Can be set only at design time.

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

To programmatically set a theme for a web page, the user needs to know the ASP.NET page life cycle events and how they are used to modify the page's behavior.

Now, let's go through each option and explain why it is right or wrong:

A. Init event: This event occurs when the page is initialized, and it is too early in the page life cycle to set the theme. This event is used to set the initial property values of controls on the page.

B. PreInit event: This event occurs after the page has been initialized but before it has been loaded, making it the ideal place to set the page theme programmatically. This means that option B is the correct answer.

C. Load event: This event occurs after the page has been loaded, which is too late to modify the page's theme. This event is used to perform any final initialization steps.

D. Can be set only at design time: This option is incorrect. While themes can be set at design time, they can also be set programmatically at run time using the PreInit event.

Therefore, the correct answer is:

The Answer is: B. PreInit event

Multiple choice crystal report-reporting
  1. Full Names of the Section.

  2. Section Names Can be Hidden.

  3. Section Names can be customized.

  4. Short Section Names can be set.

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

In the Design Window, section names can be customized to display meaningful labels instead of the default names like 'Report Header' or 'Page Footer'. They are not restricted to full names only, cannot be hidden entirely, and setting short names is a specific customization rather than a general option.

Multiple choice sap abap
  1. Initialization

  2. Start-of-selection

  3. At Selection-screen

  4. Top-of-page

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

To answer this question, the user needs to have basic knowledge of ABAP programming language and its event-driven programming model.

The correct answer is B. Start-of-selection is the default event in ABAP. This event is triggered when the program is executed and is responsible for fetching data from the database tables and displaying it on the screen.

Now, let's go through each option to explain why it is right or wrong:

A. Initialization: This is not the default event in ABAP. The initialization event is used for initializing variables and internal tables before the start-of-selection event is triggered.

B. Start-of-selection: This is the correct answer. This event is triggered by default when the program is executed.

C. At Selection-screen: This event is triggered when the user interacts with the selection screen of the ABAP program. It is not the default event.

D. Top-of-page: This event is responsible for displaying headers and footers on each page of the ABAP program. It is not the default event.

Therefore, the correct answer is:

The Answer is: B. Start-of-selection