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. Style

  2. Theme

  3. ConfigChanges

  4. None of above

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

The android:theme attribute in the tag sets the app's visual style (defines colors, fonts, widget styles). 'Style' refers to individual style resources applied to specific views, while 'ConfigChanges' controls configuration changes handling.

Multiple choice
  1. ListAdapter

  2. BaseAdapter

  3. CustomAdapter

  4. None of above

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

BaseAdapter is the abstract base class that you extend to create custom adapters for ListView and other AdapterView widgets. ListAdapter is an interface, not a class you extend. CustomAdapter is not a built-in Android class - it's a name you might give to your own implementation.

Multiple choice
  1. The child views of a relative layout are arranged in the order they are declared.

  2. There is a circular dependency in a relative layout.

  3. We can set the width of the Relativelayout to wrap_content.

  4. We can set the height of the Relativelayout to wrap_content.

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

The child views of a relative layout are arranged in the order they are declared. We cannot have a circular dependency in a Relativelayout. Also we cannot set the width of the RelativeLayout to wrap_content.

Multiple choice
  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

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

Here are two that we could use with a ListView:

android.R.layout.simple_list_item_1 is used to display a single line of text in a row of ListView. Android.R.layout.two_line_list_item displays two lines of text per row of a list.

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.