Upwork Adroiod Programming Test Answers 2018

Upwork Adroiod Programming Test Answers 2018

40 Answered Test Questions:

1)When publishing updates to an app on the Google Play store, Which of the                  following is true?
a)The versionCode must reamin the same.
b)The keystore used to sign the APK to publish the app must match previous published             versions.
c)The package name must be the same.
d)The verionCode must be incremented on higher than the previous published version.
e)The versionCode must be decremented or lower than the previous version.
f)The keystore used to publish the app must be different from that used for previous                 published.

2)When does ANR occur?
a)When a network thread pauses for more than a mintue.
b)When there has been no response to a system event within 5 seconds
c)When there has been no respone to user input event within 5 seconds
d)When the app s selected form within theapp launcher, but is not installed.

3)Which of the followig is considerd test practice according to Google's Android           Development documentation?
a)Use Activities wherever possible, Fragments should only be used when supporting older      devices.
b)Use Fragments whenever possible, Activities should only be used where a                            Fragmentmanager and Fragments cannot do the job required.
c)Use Activities when developing grophically intessive apps, use Fragments primaily for text    based content.
d)Use Activities for devices with a smaller form factor use fragments for tablet and phoblet      device

4)With regard to Android wear, what is Ambient Mode?
a)The state which some devices launch into when an app is lauched via voice.
b)The dimed or reduced detail display state which some devices enter when they are not        being actively interacted with by the user.
c)Amibient mode does no apply to Android Wear devices
d)A high power usage stage that is a prerequalisite to rendering detailed graphics on                Android wear devices.

5)If required during the build process, where should sensitive information such as          API keys, keystore passwords and VCS login details be kept when using Androiod     Studio?
a)In a configuration file outside of version control, such as gradle. properties.
b)As a hard coded string in comitted code
c)In Androidmanifest. xml.
d)In a R[.txt file in the /assets directory.

6)Whitin the context of Android resource definitions, what do 'sw600' and 'w800'            mean?
a)sw600 resources are referenced when the screen exceeds 600dp in width, w800                  resources are referenced when the screen widthh is exactly 800dp.
b)sw6oo resources are referenced when software rendering is enable, w800 resources are      refernced when wifi is enable.  
c)sw600 resources are refernced when the versionCode is 600 and the device is of small       from factor, w800 resources are referenced when the versionCode is 600 and the device is   of small form factor. 
d)Sw600 resources are referenced when the screen widht is smaller than 600dp in width,        w800 resources are referenced when the screen width is greater than 800dp.

7)What is Robitum?
a)An Android unit testing framework.
b)An Android test automation framwork.
c)An Android graphics library.
d)An Android build configuration tool.

8)Which superclass do most UI elements extend?
a)view
b)Widget
c)LinearLayout
d)Activity

9)What does a strikethrough formatting indicate in Android studio?
a)That the method or class in use has been deprecated in the current version of the build        tools in use.
b)That the method or class in use is private
c)That the method or class in use is public
d)That the method or class in use has been newly introudced in the current version of the        build tools in use.

10)What was Project Butter?
a)An internal Google Android team initiative to increase security of apps on the platform by      removeing commonly made mistake or OplanksO from encryption libraries. 
b)An AOSP intiative aimed at reducing the infulence that Google has on the open-source        platform.
c)An internal google Android team initiative intended to reduce visual stuttering or ojanko,       and increase UI performance across the platform.
d)An AOSP intiative aimed at  making APIs easier to understand by new developers, on         order to reduce the instability found in some poorly designed apps.

11)What is a Master Detail Pattern?
a)A layout pattern consisting of a Master layout (containing a collection of data) and Detail      (containing detailed information about on item from the collection).
b)A term used in  parallel processing where there are multiple Detail threads controlled by a    hypervising master thread manager.
c)A layoot pattern consisting of a Detail layout (containing a collection of date) and Master        (Containing detailed information about an item form the collection).
d)A layout pattern consisting of a user interactive master  layout and a passive non touch       enabled Detail layout.

12)What is the purpose of the AppCompt library?
a)It allows the ActionBar UI pattern to be used on older versions of Android.
b)It allows the app to share content with other app via the share intent.
c)It allows for the developer to internationalize their app.
d)it allows the Snackbar UI to be used on newer versions of Android.

13)What is a RemteView for?
a)It defines a view hierachy that can be displayed in another process, such as a rich                notification layout or home screen widget.
b)It defines an inputstream that can display a remote device such as a hardware camera.
c)It allows apps to interact with the Google Cast API.
d)It is a base class that allows your app to send a  limited set of control commands and            serve as an Android Tv remote control.

14)What is the differnce between a Broadcast Receiver and an Intent filter?
a)A Broadcast Receiver allows an app to register to be notified upon system or application      events, on Intents an app can receive.
b)A Broadcast receiver allows an app to receive video streams from lice media sources an      intent filter determines which URLs are supported.
c)A Broadcast Receiver is a componet of the TelephonyManager that determines the               cellular network that the device can connect to an Intent Filter removes noise from                 Telephone call audio.
d)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.

15)What must be done after a TypedArray is no longer Needed?
a)The invalidate() method must be called in order to refresh the contents of the object.
b)The recycle() method must be manually called in order to notify the system that the object    is no longer using the memory allocted to it.
c)The OnDestroy() method must be manually called in order to notify the system that the          object is no longer using the memory allocated to it.
d)The Keepalive() method must be called in order to notify the ystem hat the object is still        being used and to prevent GC from clearing it.

16)With regard to graphics, what is teh "dirty rect"?
a)An object that is passed as an argument to the invalidate() method to denote the portion or screen that should be redrawn.
b)An area of screen that is not illuminated on the display when in ambient mode.
c)None of the above

17)Which feature of the Java build process allows for Android projects with more              than 65k method calls?
a)The Gradle build process
b)Multidexing
c)Proguard/Dexguard
d)The Android Run time (ARI)

18)What is the Purpose of the Systrace Tool?
a)It analyzes the execution of an application an places operations into a system-wide              context on a common, visual timeline.
b)It outlines the boundes of vitual elements of an app to better identify overdraw.

19)What  is the purpose of a Loader?
a)loaders are special case data streams that provide a bytewise iterator when acessing files   from extrnal storage.
b)Loaders are convenience classes that make the asynchronous tetching and loading of         data into a Fragment or Activity easier.
c)Loaders are Android native classes that are use dwhen graphic are drawn to screen via a   canvas.
d)Loaders are UI elements that indicate to the user at an asynchronous action is in                  progress.

20)What is the purpose or volley?
a)A type safe client for consuming RESTful APIs in Android an java in general.
b)A conveience library that  makes network calls easier and faster
c)An Android unit testing framework
d)An analytics tool that can shed light on parts of an app's UI that are used most/least.


3 comments

where is the answers

Balas

where is the answers

Balas

Where can i see answers?

Balas