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 javascript
  1. window.status = "put your message here"

  2. statusbar = "put your message here"

  3. status("put your message here")

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

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

The browser's status bar can be accessed via window.status property. Option A correctly assigns a string to window.status. Option B uses an undefined 'statusbar' variable. Option C calls a non-existent status() function. Option D incorrectly treats status as a function rather than a property.

Multiple choice javascript
  1. window.location.href

  2. document.href

  3. java.redirect.url

  4. link.redirect.href

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

To redirect a visitor to another page using JavaScript, you can use the window.location.href property. This property sets or returns the entire URL of the current page, including the protocol, host name, path, and the file name of the current page. By assigning a new URL to this property, you can redirect the user to a new page.

Option A is correct: window.location.href

Option B is incorrect because there's no document.href property.

Option C is incorrect because there's no java.redirect.url property.

Option D is incorrect because there's no link.redirect.href property.

Therefore, the correct answer is:

The Answer is: A

Multiple choice javascript
  1. Platform dependent

  2. Platform linkage

  3. Platform independent

  4. Platform binding

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

JavaScript is platform-independent and runs in any browser or environment that implements the JavaScript engine. The same code executes consistently across Windows, Mac, Linux, and other operating systems without modification.

Multiple choice javascript
  1. this is a good practice

  2. this is REQUIRED

  3. this ensures browser compatibility

  4. this ensures OS compatibility

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

While the 'window' object is the global scope in browser-based JavaScript and its properties can be accessed without the prefix, explicitly including it is considered good practice for code clarity and avoiding naming collisions. It is not strictly required for compatibility or execution.

Multiple choice .net vb
  1. Showdialog( )

  2. Activate ( )

  3. Loaddialog()

  4. Show( )

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

ShowDialog() displays a form as a modal dialog, blocking interaction with the parent form until the dialog is closed. The Show() method (D) displays a form as modeless. Activate() (B) just brings focus to an already shown form, and Loaddialog() (C) is not a standard method.

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