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
  1. same hierarchy

  2. ladder hierarchy

  3. flatter hierarchy

  4. bottom-top hierarchy

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

GridLayout makes it easier to create a common “dashboard”-style UI seen in apps like Google+. We normally create such a UI using a Tablelayout, but GridLayout allows us to create the same layout with a flatter hierarchy.

Multiple choice
  1. <Linearlayout android:layout_height=”wrap content” android:layout_width=”match parent” android:layout_orientation=”horizontal”>

  2. <Linearlayout android:layout_height=”wrap content” android:layout_width=”match parent” android:orientation=”vertical”>

  3. <Linearlayout android:layout_height=”wrap content” android:layout_width=”match parent” android:orientation=0>

  4. <Linearlayout android:layout_height=”wrap content” android:layout_width=”match parent” android:orientations=”horizontal”>

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

<Linearlayout android:layout_height=”wrap content”

   android:layout_width=”match parent”

   android:orientation=”vertical”> The above code is correct code to set vertical Linearlayout.
Multiple choice
  1. Canvas

  2. Outline display

  3. Palette

  4. Properties window

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

Properties window is not a part of Android Developer tool. The main components of ADT(Android Development tools) are:

1. Configuration drop-down menu
2. Canvas
3. Palette
4. Outline display 5. Graphic layout editor

Multiple choice
  1. right sidebar, tree view, tree overview and layout view

  2. left sidebar, tree view, tree overview and layout view

  3. left sidebar, hierarchy view, tree overview and layout view

  4. Left sidebar, tree view and tree overview

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

Hierarchy viewer is used to display the full layout hierarchy of the application. The components of hierarchy viewer are: Left Sidebar, Tree View, Tree Overview and Layout View.

Multiple choice
  1. <features android:name=”android.hardware.touchscreen” android:required=”true” />

  2. <uses-features android:name=”android.touchscreen” android:required=”true” />

  3. <uses-features android:name=”android.hardware.touchscreen” android:required=”true” />

  4. <uses-features android:name=”android.hardware.touchscreen” android:method=”true” />

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

Here you have to set the “name” and “required” property of use-features tag to “android.hardware.touchscreen” and “true” respectively. For Example: <uses-features android:name=”android.hardware.touchscreen” android:required=”true” />

Multiple choice
  1. B, C, D, E

  2. A, B, C, E

  3. A, B, C, D

  4. A, C, D, E

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

Remember these points, which makes your app compatible with majority of the devices:

Always use dip unit in your layout.

Use wrap_content and match_parent whenever possible.This will make your layout much more flexible than layouts using hard-coded dimension values.
Provide alternative image resources for each densit to ensure that your images look appropriate on all screen densities. .
Use 9-patch graphics for any resources that can’t stretch without distortion. Always use sp unit in your layout.

Multiple choice
  1. project name

  2. form name

  3. control name

  4. event name

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

When you compile a Visual Basic project into an executable file (EXE), the output file takes the project name as its filename. For example, if your project is named 'MyProject,' the compiled executable will be 'MyProject.exe.' Form names, control names, and event names are internal to the application and don't determine the EXE filename.

Multiple choice
  1. CLR

  2. CTS

  3. MSIL

  4. Assembly Manifest

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

CTS ensures type compatibility between various .NET components as CTS stands for Common Type Safety. For e.g. int x = TextBox1.text; // considering the scenario that we have some value in the textbox1 which is of text type and we are receiving the value in int type. So, CTS would not allow you this type of conversion in .NET and this could be done by:

int x = Convert.ToInt32(TextBox1.Text);  // As we have done the typecasting of text type to int type. So, CTS would allow us to get the text type value to the int type variable.