Freelancer Android Level 1 Exam quiz and Answers

i don't know whether it's wrong or right but i'm passed in the exam i have more then 180 quiz with answers but here i'm posting only 40 quiz with the answers. i will slowly update this post with quiz ans answers

Question 1 / 40
Android architecture is comprised of _________.
  • applications, application framework, libraries, Android runtime, Linux kernel
  • applications, telephony manager, libraries, Android runtime
  • applications, telephony manager, libraries, Linux kernel
  • applications, libraries, library framework, Android runtime, Linux kernel
  • telephony manager, libraries, Android runtime, Linux kernelc
Question 2 / 40
What is the name of the Java Virtual machine in Android?
  • Juke Virtual Machine
  • Parrot Virtual Machine
  • .NET Framework
  • Dalvik
  • Forth Virtual Machine
Question 3 / 40
Intent data structure is comprised of___________________.
  • resource data
  • manifest files
  • an action and data to act upon
  • AppWidget files
  • View Groups
Question 4 / 40
What does an Intent filter do?
  • describes Intent tasks
  • describes Intent multitasking capability
  • filters Intent activities
  • describes intent capability of an activity
  • filters crashed applications
Question 5 / 40
A Service _________________.
  • keeps running without the User interface
  • can run only when the User interface is active
  • None of these.
  • is used to handle incoming phone calls
  • is used to create user interface
Question 6 / 40
What are Android Events?
  • An Event is the opening of the User interface
  • None of these
  • Events are external activities
  • Events are resource of mobile device
  • Events are actions taken by the OS
Question 7 / 40
ViewGroups are ____________________.
  • an object of class android.view.Viewgroup
  • A class of View objects
  • a group of open UI windows
  • an object defined in AndroidManifest.xml
  • an object of class android.view.View
Question 8 / 40
How do you create a handle for a screen element?
  • call Activity.findViewById
  • Create a ListAdapter object
  • Give the ListAdapter to your ListView object.
  • use android.test
  • Create a Handler object in your UI thread
Question 9 / 40
An empty process does not have ______________________.
  • any resources.
  • active services.
  • active processes.
  • active application components
  • any memory allocated.
Question 10 / 40
What is an AVD?
  • A development environment.
  • A configuration that helps developing device drivers.
  • A configuration that runs Android applications.
  • A Graphical interface to create User interfaces
  • A configuration that specifies the Android platform to be used on the emulator
Question 11 / 40
Intent-based calls are usually bound at_________.
  • runtime
  • compile time and runtime
  • invocation
  • parse time
  • link time

Question 12 / 40
This is called every time an App Widget is deleted from the App Widget host:
  • onDisabled(Context)
  • onDeleted(Context, int[])
  • onReceive(Context, Intent)
  • onEnabled(Context)
  • onUpdate

Question 13 / 40
Styles, strings and arrays are placed in _______________.
  • /res/layout
  • /res/strings
  • /res/arrays
  • /res/styles
  • /res/values

Question 14 / 40
Dalvik VM is part of ____________________.
  • Core Libraries
  • Libraries
  • Application
  • kernel
  • Android Runtime

Question 15 / 40
Content providers are part of________________________.
  • Applications
  • Core libraries
  • Application Framework
  • kernel
  • libraries

Question 16 / 40
What is R.java?
  • an auto-generated file indexing all the ViewGroups of your project
  • an auto-generated file indexing all the Activities of your project
  • an file which gives information on the resources available
  • an auto-generated file indexing all the Services of your project
  • an auto-generated file indexing all the resources of your project

Question 17 / 40
A RemoteView object cannot support the following layout class: __________.
  • Viewlayout
  • LinearLayout
  • RelativeLayout
  • FrameLayout
  • All of these.

Question 18 / 40
What is Compound Button class?
  • specifies a button for switching mobile ON/OFF
  • None of these.
  • Specifies a button with 2 states: checked and unchecked
  • specifies a button with multiple functions
  • specifies Qwerty keyboard

Question 19 / 40
A view hierarchy is placed within an activity’s window by the _____________ method.
  • onCreate()
  • Activity.setServiceView()
  • Activity.setView()
  • android.app.Activity
  • Activity.setContentView()

Question 20 / 40
What does ‘+’ signify in android:id=”@+id/my_button”?
  • A new resource name.
  • A new resource name that must be created and added to resources.
  • The XML parser should parse the rest of the ID string.
  • A new Activity.
  • A new View resource.
Question 21 / 40
Which of the following is the immediate base class for Activity and Service classes?
  • ApplicationContext
  • Component
  • Object
  • Application
  • Context

Question 22 / 40
Which of the following would you have to include in your project to use the SimpleAdapter
class?
  • import android.widget;
  • import android.database;
  • import android.util;
  • import android.content;
  • import android.database.sqlite;

Question 23 / 40
Which of the following would you have to include in your project to use the APIs and classes
  • required to access the camera on the mobile device?
  • import android.drivers;
  • import android.hardware.camera;
  • import android.util;
  • import android.camera;
  • import android.hardware;

Question 24 / 40
Which of the following can you use to display a progress bar in an Android application?
  • ProgressItem
  • ProgressView
  • ProgressBar
  • requestWindowFeature
  • ProgressDialog

Question 25 / 40
What is Context used for?
  • To load UI
  • To load and access resources
  • To load and access Services
  • To load and access Activities
  • To load and access Layouts

Question 26 / 40
What does getApplicationContext() do?
  • Returns the path of the directory holding application cache files of the current process.
  • Returns the context of the Activity of the current process.
  • Returns the full application info for this context’s package.
  • Returns the context of the single, global Application object of the current process.
  • Returns an AssetManager

Question 27 / 40
setLevel specifies the level of __________.
  • Drawable.callback
  • Drawable
  • color
  • Image
  • Bitmap

Question 28 / 40
What is InputMethod ?
  • An interface which defines the method for data entry.
  • An interface which handles the UI interface.
  • An interface which handles keyboard input.
  • An interface which generates key events and text, while handling input events and sending text back to the application which requested text input.
  • An Interface which generates email data, while handling input events and sending it back
  • to the application which requested it.

Question 29 / 40
How do you save any unsaved data and release resources being used by an Android
application?
  • Activity.onDestroy()
  • Activity.onStop()
  • Activity.onPause()
  • Activity.onShutdown()
  • Activity.onFreeze()

Question 30 / 40
Which of the following can save the data of an Android application?
  • Activity.onFinish()
  • Activity.onStop()
  • Activity.onDestroy()
  • Activity.onPause()
  • Activity.onFreeze()
Question 31 / 40
What does this code snippet do?
menu.add(0, MENU_QUIT, 0, “Quit”).setIcon(R.drawable.menu_quit_icon)?
  • Adds an icon to Icon menu items
  • quits the Menu
  • Adds menu items
  • draws icon items
  • defines a Menu layout

Question 32 / 40
Define a Dialog.
  • a small TextBox.
  • a dropdown menu
  • a small window that appears in front of the current Activity.
  • a small window that appears in the user interface.
  • a small checkbox.

Question 33 / 40
Which API is directly related to touch mode?
  • View.TouchMode
  • View.app.Touch()
  • View.isInTouchMode()
  • View.TouchMode()
  • android.app.Touch()

Question 34 / 40
How a service can be stopped?
  • By calling its shutdown() method
  • By calling its finish() method
  • By calling finishService() method
  • By calling its stop() method
  • By calling its stopSelf() method

Question 35 / 40
What is the NotesDbAdapter Class?
  • adapts notes to a database
  • allows the user to creates notes
  • None of these.
  • provides a text editor
  • encapsulates data access to a SQLite database that will store notes data and facilitates to update it.

Question 36 / 40
How can a Service stop itself?
  • by calling Service.stopSelf()
  • by calling Context.stopService()
  • by calling StopSelf.Service()
  • by calling Destroy()
  • by calling StopService()

Question 37 / 40
When we want a result to be returned by a child activity, which method is used?
  • startActivity.Return()
  • startActivityForResult()
  • ActivityForResult()
  • startActivity.Result()
  • getResult.Activity()

Question 38 / 40
What does this code snippet do?
Intent callNumber = new Intent();
callNumber.setAction(android.content.Intent.ACTION_CALL);
callNumber.setData(Uri.parse(“tel:9873719580″));
startActivity(callNumber);
?
  • stores number 9873719580
  • calls number 9873719580
  • Any of these
  • searches number 9873719580
  • deletes number 9873719580 from memory

Question 39 / 40
TimePickerDialog allows user to ___________________.
  • select a time
  • set date
  • set date and time
  • set time
  • select a date

Question 40 / 40
Which of the following is used to handle commands from menu items in an application?
  • onMenuItem
  • onMenuItemSelected
  • onMenuItemClicked
  • onOptionsItemSelected
  • CommandAction

Thank you for using our service.

Freelancer Android Level 1 Exam quiz and Answers

i don't know whether it's wrong or right but i'm passed in the exam i have more then 180 quiz with answers but here i'm posting only 40 quiz with the answers. i will slowly update this post with quiz ans answers

How to unlock pattern in android phone or tablet with ADB



when you fail to unlock the android tablet if you failed to unlock it will lock your device at the time use this codes to unlock your device without any trouble .it's really worked for my tablet  




go to android adb.exe folder in the command line it's in adt-bundle-windows-x86-20140321\sdk\platform-tools the type these commands

  • adb devices (verify device is identified by pc. If not reconnect device and try again. it should display “device” with a serial no)
  • adb shell
  • cd /data/data/com.android.providers.settings/databases
  • sqlite3 settings.db
  • update system set value=0 where name='lock_pattern_autolock';
  • update secure set value=0 where name='lock_pattern_autolock'; (for some devices update “system” is enough but I had to update “secure” too)
  • update system set value=0 where name='lockscreen.lockedoutpermanently';
  • update secure set value=0 where name='lockscreen.lockedoutpermanently';
  • .quit
  • exit
  • adb reboot

How to unlock pattern in android phone or tablet with ADB



when you fail to unlock the android tablet if you failed to unlock it will lock your device at the time use this codes to unlock your device without any trouble .it's really worked for my tablet