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
  1. 1, 2, 3, 4, 5, 6

  2. 3, 4, 6, 5, 1, 2

  3. 3, 4, 5, 6, 2, 1

  4. 3, 6, 4, 5, 2, 1

  5. 6, 5, 4, 3, 2, 1

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

Correct option is 4.

Multiple choice
  1. Only XI

  2. Only XI, XIV and XV

  3. Only XIV and XV

  4. Only I and II

  5. Only III and IV

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

Android provides number of UI controls that help to build the graphical user interface for any app. TimezonePicker and MenuBar are not the android supported UI controls.

Multiple choice
  1. <application android.theme=”@style/CustomTheme”><application android.theme="”@style/CustomTheme”"></application>

  2. <application android:theme=”@style/CustomTheme”><application android:theme="”@style/CustomTheme”"></application>

  3. <activity android.theme=”@style/CustomTheme”><activity android.theme="”@style/CustomTheme”"></activity>

  4. <activity android:theme=”@style/CustomTheme”>

  5. -

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

To set the theme to all the activities in an android application, <application> tag has to be used.

Multiple choice
  1. Intents

  2. Broadcast receiver

  3. Notifications

  4. Services

  5. Activities

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

It starts the application to respond to an incoming intent and makes it ideal for event-driven applications.

Multiple choice
  1. All the resources should be placed directly under the root directory.

  2. All the resources should be placed directly under the res/ directory.

  3. You should place each type of resource in a specific directory of your project's res/ directory.

  4. You can define your own user defined directories and place all the resources over there.

  5. None of these

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

Android requires resources to be organized in specific subdirectories under res/ (like res/layout for XML layouts, res/drawable for images, res/values for strings/colors). Placing all resources directly under res/ or in custom user-defined directories will not work - the build system expects specific subdirectory names.

Multiple choice
  1. withText

  2. ifRoom

  3. ifNotRoom

  4. withRoom

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

It is recommended that the android:showAsAction attributes to ifRoom, which will display the menu item as an action item only if there is enough room on the display. On a small size screen, the actions will  collapse into the overflow menu.

Multiple choice
  1. This will collapse the action view into just an action item.

  2. This will completely collapse the action view.

  3. This will completely collapse the action item.

  4. The search widget would consume space on the action bar even when it is not in use.

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

The given code will collapse the action view into just an action item. Otherwise, the search widget would consume space on the action bar even when it is not in use.