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 technology operating systems
  1. HyperText Markup Language(HTTP)

  2. Extensible Markup Language(XML)

  3. Cascading Stype Sheets(CSS)

  4. eXtensible Hypertext Markup Language(XHTML)

  5. Asynchronous JavaScript and XML(AJAX)

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology operating systems
  1. AndroidManifest.xml file is present in root directory of an application

  2. AndroidManifest.xml file is responsible for naming java package for the application

  3. c.)AndroidManifest.xml File is an optional for an application

  4. It describes the components of the application — the activities, services, broadcast receivers,

  5. AndroidManifest.xml is not responsible for declaring the minimum level of the Android API that

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. import net.rim.device.api.system.Bitmap;

  2. import net.rim.device.api.ui.container.*;

  3. import net.rim.device.api.ui.*;

  4. import net.rim.device.api.imagefile;

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology
  1. Screen

  2. Display

  3. Field

  4. Text

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. ButtonField

  2. CheckboxField

  3. DateField

  4. RadioButtonField

  5. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. layout

  2. field

  3. align

  4. design

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. VerticalFieldManager

  2. HorizontalFieldManager

  3. FlowFieldManager

  4. DialogFieldManager

  5. All the above

  6. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. import net.rim.device.api.ui.MenuItem;

  2. import net.rim.device.api.ui.component.LabelField;

  3. import net.rim.device.api.ui.component.Menu;

  4. import net.rim.device.api.ui.UiApplication;

  5. none of the above

  6. import net.rim.device.api.ui.component.RichTextField;

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Fields

  2. Managers

  3. Screens

  4. All the above

  5. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. ButtonField.BUTTON_CLICK

  2. ButtonField.CONSUME_CLICK

  3. ButtonField.BUTTONFIELD_CLICK

  4. ButtonField.LISTEN_CLICK

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. mainScreen.add(myCheckbox);

  2. mainScreen.add(mycheck);

  3. mainScreen.(myCheckbox);

  4. mainScreen.add(mybox);

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Event handling

  2. Hardware API’s

  3. Application runtime

  4. Collection classes

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. MKMapView

  2. UIMapView

  3. MKUIMapView

  4. none

Reveal answer Fill a bubble to check yourself
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.