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 architecture
  1. The MVC pattern introduces extra classes due to the separation of the model,view and the controller components

  2. The view component accesses the enterprise data through the model component

  3. The model-view separation principle states that the application logic should not be put in the UI object method

  4. The Model-View separation principle helps minimize the impact of requirement change in the interface on the controller layer

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

This question tests understanding of MVC relationships. Options A, B, and C all describe genuine MVC concepts: A acknowledges the pattern introduces more classes due to separation, B correctly states views access data through models, and C accurately states application logic should not reside in UI methods. Option D claims Model-View separation minimizes interface changes' impact on the controller layer, which is misleading. Model-View separation primarily isolates business logic from presentation. The controller layer sits between them and handles input, but the principle specifically addresses decoupling Model from View, not interface-to-controller relationships.

Multiple choice technology programming languages
  1. Flow Layout

  2. GridLayout

  3. Card Layout

  4. BorderLayout

  5. GridBagLayout

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

In Java's AWT and Swing, the default layout manager for Frame and JFrame is BorderLayout. Other options like FlowLayout (default for Panel/Applet), GridLayout, and CardLayout must be explicitly set using the setLayout method.

Multiple choice technology programming languages
  1. A True and B False

  2. A False and B True

  3. A False and B False

  4. A True and B True

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

TStaticText descends from TWinControl and has its own window handle, which allows it to have more control over its appearance and behavior. TLabel descends from TGraphicControl, NOT TWinControl, and does NOT have its own window handle - it's drawn directly on its parent's surface for better performance. The statement claims B says 'TLabel descends from TWinControl but does not have window handle' which is FALSE because TLabel doesn't descend from TWinControl at all. Therefore 'A True and B False' is correct.

Multiple choice technology programming languages
  1. RequiredFieldValidator

  2. CustomValidator

  3. RangeValidator

  4. ValidationSummary

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

ValidationSummary does not validate a specific input control itself, but instead displays a summary of errors from all page validators; hence, it lacks the ControlToValidate property. Other options validate individual inputs and require it.

Multiple choice technology platforms and products
  1. NewDefaults

  2. Model.

  3. FlowRule

  4. Harness

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

In Pega PRPC, the NewDefaults rule type is where you specify the default harness for new work objects of a class. The harness defines the user interface structure and layout for work object forms. This setting determines which UI template is used when creating new instances.

Multiple choice technology web technology
  1. 3 -> 2 -> 1

  2. 3 -> 1 -> 2

  3. 1 - 2 - > 3

  4. None of Above

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

In ASP.NET, configuration hierarchy applies settings from most specific to most general: root Web.config (3) → application-specific Web.config (1) → Machine.config (2). The root Web.config overrides application Web.config, which overrides Machine.config. This allows specific settings to take precedence over broader system-wide defaults.

Multiple choice technology web 2.0
  1. repeat-x

  2. repeat-y

  3. no-repeat

  4. repeat on both axes

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

The default value for background-repeat is 'repeat', which means the background image repeats both horizontally and vertically. Option D correctly describes this behavior. Options A (repeat-x) and B (repeat-y) repeat only in one direction, while option C (no-repeat) prevents repetition entirely.

Multiple choice technology web technology
  1. HTML Server control

  2. Web Server Control

  3. HTML Control

  4. None of the above

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

An HTML Server control maps directly to standard HTML tags while remaining accessible on the server. However, Web Server controls can also render pure HTML based layouts (e.g., Literal, Repeater). Additionally, HTML Server controls require the 'runat=server' attribute, making the question somewhat subjective. But since HTML Server controls preserve HTML structure directly, the stored answer is acceptable.

Multiple choice technology programming languages
  1. Box

  2. Application

  3. Button

  4. Panel

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

Application is correct. In MXML (Flex framework), the tag is the root container required for compilation. It represents the main entry point of the application. Box, Button, and Panel are UI components but cannot serve as the root element - an MXML file must have Application as its top-level tag to compile.

Multiple choice technology programming languages
  1. Yes

  2. No

  3. Don't know

  4. No Idea

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

Yes, developers can create custom components using native Web Components APIs (such as Custom Elements) or within modern frontend frameworks like React, Angular, and Vue to build reusable, encapsulated UI blocks. The other options are incorrect as custom component creation is a standard, widely supported feature.

Multiple choice technology architecture
  1. An abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code, thus providing specific functionality

  2. A special case of software libraries in that they are reusable abstractions of code wrapped in a well-defined Application Programming Interface

  3. A collection of resources to generate the code to achieve a generic functionality

  4. A template to show how things should be done consistently

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

The question asks which is NOT a valid way to express frameworks. Options A, B, and D all describe frameworks correctly - as abstractions with override points, as specialized libraries with APIs, and as templates for consistency. Option C is wrong because frameworks don't 'generate code' - they provide code that you extend or configure.

Multiple choice technology architecture
  1. Whether framewoks has been deveoped using the coding standard that your organization follows

  2. What level of modularity will the framework provide and support?

  3. What development rules will the framework enforce?

  4. What will the learning curve be for application developers to learn the framework?

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

Option A is correct because when choosing a framework, the coding standard used in its development is typically the least relevant factor - frameworks are used as compiled binaries or libraries, not modified source code. What matters is the framework's architecture, modularity (B), development rules (C), and your team's ability to learn it (D). The internal coding conventions of framework developers don't affect how you use or integrate the framework.