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
-
HyperText Markup Language(HTTP)
-
Extensible Markup Language(XML)
-
Cascading Stype Sheets(CSS)
-
eXtensible Hypertext Markup Language(XHTML)
-
Asynchronous JavaScript and XML(AJAX)
B
Correct answer
Explanation
Android user interface layouts are developed using XML (Extensible Markup Language). Each screen and UI component is defined in XML files stored in the res/layout directory. This XML-based approach allows separation of presentation logic from business logic and enables the Android system to inflate the UI at runtime. HTML, CSS, XHTML, and AJAX are web technologies, not native Android UI technologies.
-
AndroidManifest.xml file is present in root directory of an application
-
AndroidManifest.xml file is responsible for naming java package for the application
-
c.)AndroidManifest.xml File is an optional for an application
-
It describes the components of the application — the activities, services, broadcast receivers,
-
AndroidManifest.xml is not responsible for declaring the minimum level of the Android API that
A,D
Correct answer
Explanation
AndroidManifest.xml resides in the application's root directory and describes all components (activities, services, broadcast receivers, content providers). It names the Java package and declares the minimum API level required. The file is MANDATORY for any Android application - it cannot be optional.
-
import net.rim.device.api.system.Bitmap;
-
import net.rim.device.api.ui.container.*;
-
import net.rim.device.api.ui.*;
-
import net.rim.device.api.imagefile;
A
Correct answer
Explanation
When working with bitmap images in BlackBerry Java applications, you need to import the Bitmap class from the net.rim.device.api.system package. This is the correct API that provides bitmap image functionality. The other options import UI containers, general UI components, or a non-existent package (net.rim.device.api.imagefile doesn't exist in standard BlackBerry API).
-
Screen
-
Display
-
Field
-
Text
A
Correct answer
Explanation
In BlackBerry's UI framework, Screen objects are the top-level containers that form the main structure of a user interface. Screens contain Fields (individual UI elements), which are managed within the Screen hierarchy. Display is the system capability, and Text is a type of content, not structural objects. Therefore, Screen is the correct answer for the main UI structure.
-
ButtonField
-
CheckboxField
-
DateField
-
RadioButtonField
-
None of the above
A,B,C,D
Correct answer
Explanation
This question lists BlackBerry UI components. ButtonField (A) for buttons, CheckboxField (B) for checkboxes, DateField (C) for date selection, and RadioButtonField (D) for radio buttons are all standard, valid UI components in the BlackBerry API. Since 'E - None of the above' would be false when all others are valid, options A, B, C, and D are all correct.
-
layout
-
field
-
align
-
design
A
Correct answer
Explanation
In BlackBerry development, layout managers are used to arrange and position components on screens. The correct API term is 'layout managers' - they handle the spatial organization of Field objects within Screen containers. Field managers and design are not BlackBerry API terms, and 'align' is too general. Therefore, 'layout' (option A) is the correct answer.
-
VerticalFieldManager
-
HorizontalFieldManager
-
FlowFieldManager
-
DialogFieldManager
-
All the above
-
None of the above
E
Correct answer
Explanation
VerticalFieldManager, HorizontalFieldManager, and FlowFieldManager all extend the Manager class and provide predefined layout management in BlackBerry UI. DialogFieldManager also extends Manager but is specifically designed for dialog-based layouts rather than general screen layout management. The question asks which classes extend Manager to provide layout managers - technically all four extend Manager, but the first three are the primary layout managers used for screen organization.
-
import net.rim.device.api.ui.MenuItem;
-
import net.rim.device.api.ui.component.LabelField;
-
import net.rim.device.api.ui.component.Menu;
-
import net.rim.device.api.ui.UiApplication;
-
none of the above
-
import net.rim.device.api.ui.component.RichTextField;
E
Correct answer
Explanation
All the listed imports are valid BlackBerry API imports. MenuItem and Menu are from net.rim.device.api.ui, LabelField and RichTextField are from net.rim.device.api.ui.component, and UiApplication is from net.rim.device.api.ui. These represent standard classes for UI development in the BlackBerry Java development environment.
-
Fields
-
Managers
-
Screens
-
All the above
-
None of the above
D
Correct answer
Explanation
In BlackBerry UI architecture, Screens are top-level containers, Managers handle layout of Fields, and Fields are the actual visible elements like buttons, labels, and text boxes. All three components work together to create the visible interface - Screens contain Managers which arrange Fields, making all of them part of what's visible on screen.
-
ButtonField.BUTTON_CLICK
-
ButtonField.CONSUME_CLICK
-
ButtonField.BUTTONFIELD_CLICK
-
ButtonField.LISTEN_CLICK
B
Correct answer
Explanation
When creating a ButtonField in BlackBerry, you must specify the style using ButtonField.CONSUME_CLICK. This constant indicates that the button will consume click events, preventing them from propagating to other UI elements. This is the standard approach for making buttons respond to user interaction in BlackBerry applications.
-
mainScreen.add(myCheckbox);
-
mainScreen.add(mycheck);
-
mainScreen.(myCheckbox);
-
mainScreen.add(mybox);
A
Correct answer
Explanation
To add a UI component like a checkbox to a screen in mobile development, you use the add() method of the screen object. The syntax is screen.add(componentName), so mainScreen.add(myCheckbox) is correct.
-
Event handling
-
Hardware API’s
-
Application runtime
-
Collection classes
D
Correct answer
Explanation
UIKit includes event handling, hardware APIs for device features, and application runtime management. However, collection classes like NSArray, NSDictionary, NSSet are part of the Foundation framework, not UIKit. Foundation provides the core data collection classes.
-
NSString
-
NSDictionary
-
NSArray
-
UIButton
D
Correct answer
Explanation
UIButton is part of UIKit/AppKit frameworks, not Foundation. Foundation includes core data classes like NSString, NSDictionary, and NSArray that provide fundamental object types and utilities.
-
Xcode
-
Iphone simulator
-
Built-in control
-
Interface builder
-
MKMapView
-
UIMapView
-
MKUIMapView
-
none
A
Correct answer
Explanation
MKMapView is the core class in MapKit framework for displaying embedded maps in iOS applications. It handles map rendering, user interactions, and annotations. UIMapView and MKUIMapView are not standard iOS classes.