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
What property is used to distribute space between flex items along the cross axis of the flex container?
-
flex-direction
-
flex-wrap
-
justify-content
-
align-items
D
Correct answer
Explanation
The align-items property distributes space between flex items along the cross axis of the flex container. It can be set to flex-start, flex-end, center, baseline, or stretch.
What property is used to specify the initial size of flex items in a flex container?
-
flex-grow
-
flex-shrink
-
flex-basis
-
flex
C
Correct answer
Explanation
The flex-basis property specifies the initial size of flex items in a flex container. It can be set to a specific length value, a percentage, or auto.
What property is used to control how flex items grow when there is extra space in the flex container?
-
flex-grow
-
flex-shrink
-
flex-basis
-
flex
A
Correct answer
Explanation
The flex-grow property controls how flex items grow when there is extra space in the flex container. It can be set to a number, a percentage, or 0.
What property is used to control how flex items shrink when there is not enough space in the flex container?
-
flex-grow
-
flex-shrink
-
flex-basis
-
flex
B
Correct answer
Explanation
The flex-shrink property controls how flex items shrink when there is not enough space in the flex container. It can be set to a number, a percentage, or 0.
What property is used to specify a shorthand for the flex-grow, flex-shrink, and flex-basis properties?
-
flex-grow
-
flex-shrink
-
flex-basis
-
flex
D
Correct answer
Explanation
The flex property is a shorthand for the flex-grow, flex-shrink, and flex-basis properties. It can be set to a single value or a combination of values.
What is the default value of the flex-wrap property?
A
Correct answer
Explanation
The default value of the flex-wrap property is nowrap, which means that flex items will not wrap to the next line when they reach the end of the flex container.
What is the default value of the flex-grow property?
A
Correct answer
Explanation
The default value of the flex-grow property is 0, which means that flex items will not grow when there is extra space in the flex container.
What is the default value of the flex-shrink property?
B
Correct answer
Explanation
The default value of the flex-shrink property is 1, which means that flex items will shrink proportionally when there is not enough space in the flex container.
What is the default value of the flex-basis property?
B
Correct answer
Explanation
The default value of the flex-basis property is auto, which means that flex items will have their natural size.
Which standard provides guidelines for the design of user interfaces for software applications?
-
ISO 9241-11
-
ISO 9241-10
-
ISO 9241-12
-
ISO 9241-13
A
Correct answer
Explanation
ISO 9241-11 provides guidelines for the design of user interfaces for software applications, including principles for user-centered design, task analysis, and usability testing.
What is the main concept behind React?
-
Virtual DOM
-
Component-based architecture
-
Declarative programming
-
All of the above
D
Correct answer
Explanation
React is based on the concept of virtual DOM, component-based architecture, and declarative programming.
What is the purpose of the virtual DOM in React?
-
To improve performance
-
To make the code more readable
-
To make the code more maintainable
-
To make the code more portable
A
Correct answer
Explanation
The virtual DOM is used in React to improve performance. It is a lightweight representation of the real DOM, which allows React to efficiently update the UI.
What is a component in React?
-
A reusable piece of code that renders a UI
-
A function that returns a UI
-
A class that defines a UI
-
All of the above
D
Correct answer
Explanation
In React, a component can be a reusable piece of code that renders a UI, a function that returns a UI, or a class that defines a UI.
What is the purpose of a component in Angular?
-
To define a reusable UI element
-
To handle user input
-
To manage state
-
All of the above
D
Correct answer
Explanation
Components in Angular are used to create reusable UI elements, handle user input, and manage state.
What is the syntax for creating a component in Angular?
-
@Component({selector: 'my-component', templateUrl: 'my-component.html'})
-
@Component({selector: 'my-component', template: 'My Component'})
-
@Component({selector: 'my-component'})
-
None of the above
B
Correct answer
Explanation
To create a component in Angular, you use the @Component decorator. The selector property specifies the CSS selector that will be used to identify the component in HTML, and the template property specifies the HTML template that will be used to render the component.