Android/Android Programming MCQ Set 4 Sample Test,Sample questions

Question:
A layout can retrieve the value of the String named 'stringmessage' using `____`.

1.string/string_message

2.#string/string_message

3.@string/string_message

4.#string_message

Posted Date:-2022-08-20 12:00:02


Question:
A service has lifecycle callback methods that you can implement to __ changes in the service's state and you can perform work at the appropriate stage?

1.load

2.monitor

3.send

4.file

Posted Date:-2022-08-20 10:24:51


Question:
After building an Android project with Android Studio, what is the purpose of generating R.java as follows?  package com.intelstar.venus;  public final class R {      public static final class attr {      }      public static final class drawable {          public static final int icon=0x7f020000;      }      public static final class layout {          public static final int main=0x7f030000;      }      public static final class string {          public static final int app_name=0x7f040000;      }  }

1.R class is used for the linking of the resource into the source code

2.R class is the meta-codes for the building of the project

3.R class is the extension file that can be edited later for the source upgrading

4.R class is a meta class that the resources were built

Posted Date:-2022-08-20 11:03:57


Question:
After building an Android project with Android Studio, what is the purpose of generating R.java as follows?  package com.intelstar.venus;  public final class R {      public static final class attr {      }      public static final class drawable {          public static final int icon=0x7f020000;      }      public static final class layout {          public static final int main=0x7f030000;      }      public static final class string {          public static final int app_name=0x7f040000;      }  }

1.R class is used for the linking of the resource into the source code

2.R class is the meta-codes for the building of the project

3.R class is the extension file that can be edited later for the source upgrading

4.R class is a meta class that the resources were built

Posted Date:-2022-08-20 11:03:57


Question:
An Intent object is a bundle of information and what are the object contains?

1.A)Component,Category

2.Active,Send

3.Type,Extra

4. A and C

Posted Date:-2022-08-20 10:58:11


Question:
Android Architecture is consisted of the following components?

1.Linux Kernel

2.Android Applications

3.Android Framework (Application Framework is ok)

4.None of these

Posted Date:-2022-08-20 11:41:14


Question:
Android Framework (Application Framework is ok)

1.Key alias:”androiddebugkey”

2.Keystore name:”debug.keystore

3.Keystore password:”android”

4.All of the above

Posted Date:-2022-08-20 11:42:41


Question:
AndroidMainfest.xml file contains the following essential information about your app: (choose all that apply)

1.App icon

2.Theme affects

3.App activities

4.All of the above

Posted Date:-2022-08-20 11:54:18


Question:
Buttons and text views both inherit from the same Android class named _____.

1.view.View

2.android.View

3.android.view.View

4.android.view.Layout

Posted Date:-2022-08-20 12:36:45


Question:
By default, ArrayAdapter creates a view for each array item by calling toString() on each item and placing the contents in?

1.Group

2.TextView

3.List

4.Layout

Posted Date:-2022-08-20 10:26:12


Question:
Following Android Classes will uses Design Patterns?

1.View Holder uses Singleton Design Pattern

2.Adapter uses Adapter Design Pattern

3.Broadcast Receiver uses Observer Design Pattern

4.All of the above

Posted Date:-2022-08-20 10:27:50


Question:
Following methods called during the life cycle of an android activity are?

1.onStart

2.onStop

3.onDestroy

4.All of the above

Posted Date:-2022-08-20 11:38:04


Question:
How could using Guava in an Android application cause problems at build time in particular?

1.The libraries are not supported by the Gradle build process.

2.The libraries are large and can cause the compiler to exceed the 65k method limit imposed by Java 7 and below.

3.The libraries must be compiled separately before the build process will complete.

4.They are deprecated, Google no longer support them so many of the methods that they contain will not compile.

Posted Date:-2022-08-20 09:30:51


Question:
How to show option menu using the following source on Samsung phone but cannot see it. How to fix it? try { ViewConfigurationconfig = ViewConfiguration.get(this); Field menuKeyField = ViewConfiguration.class .getDeclaredField("sHasPermanentMenuKey"); if (menuKeyField != null) { menuKeyField.setAccessible(true); menuKeyField.setBoolean(config, false); } } catch (Exception e) { e.printStackTrace(); }

1.startActivity(new Intent(Settings.ACTION_SETTINGS)); startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)); startActivity(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS)); startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));

2.It can be due to Android OS internal problem, we can try to reinstall OS and retry our work

3.-AndroidManifest.xml <uses-permission android:name=»android.permission.ACCESS_FINE_LOCATION» /> <uses-permission android:name=»android.permission.ACCESS_COARSE_LOCATION» /> <uses-pe

4.None of the above

Posted Date:-2022-08-20 11:44:08


Question:
If required during the build process, where should sensitive information such as API Keys, keystore passwords and VCS login details be kept when using Android Studio?

1.In a configuration file outside of version control, such as gradle.properties.

2.As a hard-coded string in committed code

3.In AndroidManifest.xml.

4.In a README.txt file in the /assets directory.

Posted Date:-2022-08-20 09:02:48


Question:
If the intent has extra integer information passed to it with a name of "message", we can retrieve that information using which of the following?

1.intent.getStringExtra("message");

2.intent.getIntExtra("message");

3.intent.getObjectExtra("message");

4.intent.getExtra("message");

Posted Date:-2022-08-20 12:39:05


Question:
If you are going to check a network connection with the below source code, what would be required to make it work? public boolean isOnline() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); if (netInfo != null && netInfo.isConnectedOrConnecting()) return true; return false; }

1.android.permission.ACCESS_NETWORK_STATE

2.android.permission.ACCESS_NETWORK_CONNECTION

3.android.permission.INTERNET

4.android.permission.ACCESS_WIFI_STATE

Posted Date:-2022-08-20 11:04:56


Question:
In the context of Android development tools, what does DDMS stand for?

1.Dalvik Debug Monitor Server

2.Download Debugging Master System

3.Dalvik Drive Monitor Server

4.Dalvik Debug Measure Service

Posted Date:-2022-08-20 09:24:33


Question:
In the context of Android development tools, what does DDMS stand for?

1.Dalvik Debug Monitor Server

2.Download Debugging Master System

3.Dalvik Drive Monitor Server

4.Dalvik Debug Measure Service

Posted Date:-2022-08-20 09:25:06


Question:
In which situation is it acceptable to make network calls on the UI thread?

1.Where information is held within a dynamic view.

2.Network calls should always be executed on the main UI thread.

3.Where asynchronous data calls are required.

4.Network calls should never be on the main UI thread.

Posted Date:-2022-08-20 08:50:45


Question:
One can declare a logical parent ".MainActivity" to < activity > by adding the following line in the respective < activity > in AndroidManifest.xml.

1.android:parentActivityName=

2.android:logialParentActivityName=

3.android:parentActivity

4.android:activityName=

Posted Date:-2022-08-20 12:47:13


Question:
Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true?

1.Screen2 has to be a part of MyAndroid.

2.Screen2 can exist in any other Android application installed on the device.

3.Screen2 can be launched synchronously.

4.Screen2 can return a result code to Screen1 if launched with startActivity.

Posted Date:-2022-08-20 12:44:29


Question:
Technically you can use Eclipse with versions 5 and newer. However, the latest version of Eclipse was only tested on the __ JRE ?

1.Java 3

2.Java 3.5

3.Java 4

4.Java 5

Posted Date:-2022-08-20 10:38:13


Question:
The 'showAsAction' attribute of in a menu resource file can have which of the following values? Check all that apply.

1.ifRoom

2.withText

3.withIcon

4.All of the above

Posted Date:-2022-08-20 11:49:30


Question:
The addCategory() method places a category in an Intent object, ____ deletes a category previously added, and ____ gets the set of all categories currently in the object?

1.destroyCategory()

2.removeCategory()

3.setCategories()

4.None of these

Posted Date:-2022-08-20 10:29:57


Question:
The best practice is to put string values in _________ file.

1.strings.xml

2.strings.java

3.android.text

4.resource.rsc

Posted Date:-2022-08-20 12:35:31


Question:
The setData() method specifies data only as a ____ , setType() specifies it only as a MIME type, and setDataAndType() specifies it as both a URI and a MIME type. The URI is read by getData() and the type by getType()?

1.URL

2.URI

3.Model

4.Object

Posted Date:-2022-08-20 10:39:29


Question:
The strings.xml has a _________ element, which contains one or more elements.

1.container>

2.<main>

3. <resources>

4. <strings>

Posted Date:-2022-08-20 11:58:59


Question:
The strings.xml has a _________ element, which contains one or more elements.

1.container>

2.<main>

3. <resources>

4. <strings>

Posted Date:-2022-08-20 11:58:59


Question:
What are the two types of Intent in Android?

1.Bad and Good

2.Implicit and Explicit

3.Explicit and Restricted

4.Implicit and System

Posted Date:-2022-08-20 09:10:41


Question:
What does A() function do? private void A() { B(getActivity(), "com.app.package.here"); } public void B(Context context, String packageN) { Intent i = context.getPackageManager().getLaunchIntentForPackage(packageN); if (i == null) { i.addCategory(Intent.CATEGORY_LAUNCHER); context.startActivity(i); } else { try { context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageN))); } catch (android.content.ActivityNotFoundException anfe) { context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + packageN))); } } }

1.Load application named as “com.app.package.here” and prepare for the execution

2.Launch other app named as “com.app.package.here”

3.Creates child process named as “com.app.package.here”

4.parent process named as “com.app.package.here”

Posted Date:-2022-08-20 10:42:35


Question:
What does mean by the following XML code?

AndroidManifest.xml

<application android:label=»@string/app_name» android:icon=»@drawable/icon»

android:name=»com.intel.starApp»> … ….

<meta-data android:name=»DATABASE» android:value=» example.db»>

<meta-data android:name=»VERSION» android:value=»2″>

<meta-data android:name=»QUERY_LOG» android:value=»true»>

…

</meta-data></meta-data></meta-data>

 

1.Local custom DataBase file name is “example.db”, App version 2.0, Logs selected queries

2.Local SQLite DataBase file name is “example.db”, DBMS version 2.0, Logs selected queries

3.Local text-type DataBase file name is “example.db”, DBMS version 2.0, Logs selected queries

4.Remote DataBase file name is “example.db”, App version 2.0, Logs selected queries

Posted Date:-2022-08-20 11:45:33


Question:
What does the following code do? Calendar cal = Calendar.getInstance(); DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); cal.add(Calendar.DATE, -1); return dateFormat.format(cal.getTime());

1.Get yesterday date and returns its formatted string

2.Get today date and returns its formatted string

3.Get tomorrow date and returns its formatted string

4.All of the above

Posted Date:-2022-08-20 10:59:59


Question:
What does the following code output? public class XYZ extends AsyncTask { @Override protected String doInBackground(String... params) { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); final WakeLockwl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK |PowerManager.ACQUIRE_CAUSES_WAKEUP |PowerManager.ON_AFTER_RELEASE, ""); wl.acquire(); return "Executed"; } @Override protected void onPostExecute(String result) {} }

1.Startup power manager to save screen power

2.unlock the screen

3.Wake up the phone

4.Lock the screen

Posted Date:-2022-08-20 11:46:40


Question:
What does the following code? public void launchScreen(Activity activity) { Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGORY_HOME); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); activity.startActivity(intent); }

1.Open Launcher screen

2.Open Home screen

3.Open New task screen

4.None of These

Posted Date:-2022-08-20 10:34:39


Question:
What is a WakeLock?

1.A feature of the PowerManager that indicates to the system that your app requires the device to stay on.

2.A system-wide developer setting that prevents apps from waking up the device.

3.The internal name for the default Android system clock.

4.The internal name for the Chrome for Android password manager.

Posted Date:-2022-08-20 08:53:50


Question:
What is an Intent Filter?

1.Provides the OS with the data types that an application can receive from an Intent triggered elsewhere.

2.Filters the media types shown in an instance of the MediaStore.

3.Filters a defined string and removes characters of the supplied type.

4.Provides the OS with a list of users allowed to share content from an app.

Posted Date:-2022-08-20 09:43:47


Question:
What is Espresso?

1.An Android hardware performance analysis library.

2.An Android UI testing library and API.

3.The name given to a specific release version of the Android OS.

4.An open source, free Java implementation, upon which Android is based.

Posted Date:-2022-08-20 10:21:29


Question:
What is Google Cloud Messaging?

1.A service that can be used to send messages to Android devices using Google's cloud platform.

2.A data format used for accessing Google APIs.

3.A command and control interface for controlling servers from within an Android application.

4.None of the above

Posted Date:-2022-08-20 10:20:04


Question:
What is Guava?

1.An open-source project consisting of common libraries for Java, maintained and primarily developed by Google.

2.A hybrid web framework used for developing cross-platform apps for Windows Phone, iOS and Android.

3.A library that makes it easy for developers to integrate RESTful APIs using industry-standard encryption techniques.

4.An OpenGL graphics library aimed specifically at Android devices.

Posted Date:-2022-08-20 09:26:13


Question:
What is Lint?

1.A static code analysis tool that checks code for bugs, optimisation opportunities, common coding errors and other patterns indicating that the code could be improved.

2.A runtime analysis tool that checks code for bugs, optimization opportunities, common coding errors and other patterns indicating that the code could be improved

3.The Android layout initializer object.

4.A low-level interface for accessing the raw header and body of a network communication packet.

Posted Date:-2022-08-20 09:17:42


Question:
What is Robolectric?

1.An Android unit testing framework.

2.An Android test automation framework.

3.The name given to a specific release version of the Android OS.

4.An open source, free Java implementation, upon which Android is based.

Posted Date:-2022-08-20 10:23:45


Question:
What is Robotium?

1.An Android unit testing framework.

2.An Android test automation framework.

3.An Android graphics library.

4.An Android build configuration tool.

Posted Date:-2022-08-20 09:48:56


Question:
What is the difference between a Broadcast Receiver and an Intent Filter?

1.A Broadcast Receiver allows an app to register to be notified upon system or application events, an Intent Filter specifies which Intents an app can receive.

2.A Broadcast Receiver allows an app to receive video streams from live media sources, an Intent Filter determines which URLs are supported.

3.A Broadcast Receiver is a component of the TelephonyManager that determines the cellular network that the device can connect to, an Intent Filter removes noise from telephone call audio.

4.A Broadcast Receiver is a server-side endpoint that an app can communicate with, an Intent Filter determines which Android IDs can access the endpoint.

Posted Date:-2022-08-20 08:55:58


Question:
What is the output if following code executed? final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = getPackageManager().queryIntentActivities(mainIntent, 0); for (Object object : pkgAppsList) { ResolveInfo info = (ResolveInfo) object; File file = new File(info.activityInfo.applicationInfo.publicSourceDir); // … }

1.Get list of installed applications and try to launch them one by one.

2.Get list of installed applications and get public source directory for each app

3.Get list of launched applications and get file handle for each app

4.Get list of launched applications and get public source directory for each app

Posted Date:-2022-08-20 11:35:31


Question:
What is the output if following code executed? public int pxToDp(int px) { DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics(); int dp = Math.round(px / (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT)); return dp; } public int dpToPx(int dp) { DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics(); int px = Math.round(dp * (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT)); return px; }

1.pxToDp() converts pixel into screen size value, and dpToPx() works via versa

2.pxToDp() converts pixel into screen status value, and dpToPx() works via versa

3.pxToDp() converts pixel into window DPI value, and dpToPx() works via versa

4.https://quizack.com/android-programming/mcq/what-is-the-output-if-following-code-executed-public-int-pxtodp-int-px-displaymetrics-displaymetrics-getcontext-getresources-getdisplaymetrics-int-dp-math-r

Posted Date:-2022-08-20 11:02:59


Question:
What is the output if following code executed? Values/google_maps_api.xml google_maps_key (key from https://console.developers.google.com/) AndroidManifest.xml <meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/google_maps_key" /> Build.gradle(Module: app) Dependencies{ … Compile ‘com.google.android.gms:play-services:8.4.0’ }

1.Load Google map API from the remote library

2.Get Google map key from the server and register environment variable for that

3.Permits geolocation service and map processing

4.Supports Google Map API environment for the geolocation and map related app Is This Question Helpful? like dislike ADVERTISEMENT

Posted Date:-2022-08-20 11:01:42


Question:
What is the primary purpose of an Intent?

1.Indicates whether a process was terminated successfully or with an error.

2.Provides an interface which can be used by a Fragment interact with its parent Activity.

3.Used in order to launch an Activity.

4.Used in order to send a command or data to another Application.

Posted Date:-2022-08-20 09:41:39


Question:
What is the purpose of a Loader?

1.Loaders are special-case data streams that provide a bytewise iterator when accessing files from external storage.

2.Loaders are convenience classes that make the asynchronous fetching and loading of data into a Fragment or Activity easier.

3.Loaders are Android native classes that are used when graphics are drawn to screen via a canvas

4.Loaders are UI elements that indicate to the user at an asynchronous action is in progress

Posted Date:-2022-08-20 09:45:28


Question:
What is the purpose of the Systrace tool?

1.It analyzes the execution of an application and places operations into a system-wide context on a common, visual timeline.

2.It outlines the bounds of visual elements of an app to better identify overdraw.

3.both (a) and (b)

4.None of These

Posted Date:-2022-08-20 09:51:03


Question:
What is the purpose of Volley?

1.A type-safe client for consuming RESTful APIs in Android and Java in general.

2.A convenience library that makes network calls easier and faster.

3.An Android unit testing framework.

4.An analytics tool that can shed light on parts of an app's UI that are used most/least.

Posted Date:-2022-08-20 09:01:44


Question:
When creating main Android App project with Android studio, how can we support localization of the Android App?

1.main/res/AndroidManifest.xml

2.main/res/layout/activity_my.xml

3.main/res/values/strings.xml

4.main/res/values/styles.xml

Posted Date:-2022-08-20 10:41:06


Question:
Which exception is thrown when an image exceeds the maximum allocated size in memory?

1.InvalidStateException

2.UnhandledException

3.NullPointerException

4.OutOfMemoryException

Posted Date:-2022-08-20 09:50:07


Question:
Which feature of the Java build process allows for Android projects with more than 65k method calls?

1.The Gradle build process

2.Multidexing Proguard/Dexguard

3.The Android Run

4.Time (ART)

Posted Date:-2022-08-20 09:00:37


Question:
Which file contains information about the app?

1.android.xml

2.AndroidManifest.xml

3.Manifest.xml

4.strings.xml

Posted Date:-2022-08-20 11:50:45


Question:
Which of the following are key components under the Android application Architecture?

1.resource externalization

2.content providers

3.notifications

4.All of the above

Posted Date:-2022-08-20 10:31:36


Question:
Which of the following are possible states of a process?

1.Visible Activity

2.Background Activity

3.Empty Process

4.All of the above

Posted Date:-2022-08-20 11:39:52


Question:
Which of the following can you use to display a progress bar in an Android application?

1.ProgressBar

2.requestWindowFeature

3.ProgressView

4.ProgressItem

Posted Date:-2022-08-20 12:45:28


Question:
Which of the following common design patterns are used in Android?

1.Model View Controller

2.Model View Presenter

3.Model View View Model

4.None of the above

Posted Date:-2022-08-20 11:37:06


Question:
Which of the following correctly adds a string array resource to strings.xml?

1.string_array name=”string_array_name”> string_value1 string_value2 string_value3

2.string_value1 string_value2 string_value3

3.string_value1 string_value2 string_value3

4.None of These

Posted Date:-2022-08-20 12:41:44


Question:
Which of the following data types does AIDL support?

1.string

2.list

3.map

4.All of the above

Posted Date:-2022-08-20 11:47:45


Question:
Which of the following enables you to use Java 8 features when building apps for Android?

1.retrofit

2.lint

3.retrolambda

4.spoon

Posted Date:-2022-08-20 09:46:41


Question:
Which of the following FragmentTransaction methods allow the transaction to occur after the parent Activity’s state has been saved?

1.execute()

2.commitAllowingStateLoss()

3.commitStateless()

4.runOnUiThread()

Posted Date:-2022-08-20 09:06:03


Question:
Which of the following is a tool used for profiling the performance of Android apps?

1.Pixel Perfect

2.Hierarchy Viewer

3.Genymotion

4.Traceview

Posted Date:-2022-08-20 09:27:15


Question:
Which of the following is the correct way to request permission to allow an app feature to access the internet?

1.uses-feature android:name="android.permission.INTERNET"/>

2.<uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>

3.<uses-permission android:name="android.permission.INTERNET"/>

4.<uses-permission android:feature="android.permission.INTERNET"/>

Posted Date:-2022-08-20 09:28:50


Question:
Which of the following is true when an Android device is rotated?

1.The Activity is destroyed and recreated.

2.The Activity is paused and resumed.

3.The Activity remains active, and the LayoutParams of its contents are provided with an alternative dimensions and values for the new orientation.

4.The Activity remains active, and the width of the Window is altered to match the new width of the display.

Posted Date:-2022-08-20 09:39:20


Question:
Which of the following lifecycle methods are common to both Activity and Fragment?

1.onAttach()

2.onStart()

3.onDetach()

4.None of these

Posted Date:-2022-08-20 12:48:36


Question:
Which of the following statements are true with regard to an AsyncTask class.

1.AsyncTasks are executed serially on a single background thread on all versions of Android.

2.AsyncTasks execute on a single thread by default from Eclair to Ice Cream Sandwich, and default to thread pool from Jellybean onwards unless programmatically forced to use a single thread. The number

3.AsyncTasks are executed on parallel threads in all cases, but the maximum number of concurrent instances is restricted to 8 up until KitKat.

4.AsyncTasks execute on a single thread by default from Cupcake to Donut, and default to a single thread from Honeycomb onwards unless forced to use a thread pool.

Posted Date:-2022-08-20 08:57:07


Question:
Which of the following will cause a Force Close event?

1.An unhandled null pointer exception.

2.An unhandled invalid parser exception.

3.Attempting a network call without the correct permissions, outside of a Try/Catch statement.

4.None of the above

Posted Date:-2022-08-20 08:52:04


Question:
Which of these table element does not exists?

1.tfoot>

2.<th>

3.<col>

4.<tcol>

Posted Date:-2022-08-20 10:22:35


Question:
Which statement correctly assigns the id to textView element in layout file?

1.TextView android:id="@id/textView />

2.<TextView android:id="@+id/textView />

3.<TextView android.id="@+id/textView />

4.<TextView android:id="+id/textView />

Posted Date:-2022-08-20 11:52:51


Question:
Which superclass do most UI elements extend?

1.View

2.Widget

3.LinearLayout

4.Activity

Posted Date:-2022-08-20 08:52:55


Question:
With regard to Android Wear, what is Ambient Mode?

1.The state which some devices launch into when an app is launched via voice.

2.The dimmed or reduced detail display state which some devices enter when they are not being actively interacted with by the user.

3.Ambient mode does not apply to Android Wear devices.

4.https://quizack.com/android-programming/mcq/p-with-regard-to-android-wear-what-is-ambient-mode-p#:~:text=A%20high%20power%20usage%20state%20that%20is%20a%20prerequisite%20to%20rendering%20detailed%20g

Posted Date:-2022-08-20 08:59:11


Question:
With regard to graphics, what is the “dirty rect”?

1.An object that is passed as an argument to the invalidate() method to denote the portion of screen that should be redrawn.

2.An area of screen that is not illuminated on the display when in ambient mode.

3.both (a) and (b)

4.None of the above

Posted Date:-2022-08-20 09:53:14


Question:
Within the context of Android resource definitions, what do 'sw600' and 'w800' mean?

1.sw600 resources are referenced when the screen width exceeds 600dp in width, w800 resources are referenced when the screen width is exactly 800dp.

2.sw600 resources are referenced when software rendering is enabled, w800 resources are referenced when WiFi is enabled.

3.sw600 resources are referenced when the versionCode is 600 and the device is of small form factor, w800 resources are referenced when the versionCode is 800 and the device is of wide form factor.

4.sw600 resources are referenced when the screen width is smaller than 600dp in width, w800 resources are referenced when the screen width is greater than 800dp.

Posted Date:-2022-08-20 09:33:56


More MCQS

  1. Android Mcq Question
  2. ANDROID Multiple Choice Question
  3. Android MCQ Questions and Answers
  4. Android Programming MCQ Set 1
  5. Android Programming MCQ Set 2
  6. Android Programming MCQ Set 3
  7. Android Programming MCQ Set 4
  8. Android Programming MCQ Set 5
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!