Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Android Subjective Skills Assessment Test

Topics Covered

  • SharedPreferences
  • JSON Parsing
  • ProgressDialog class
  • SQLite DataBase
  • Popup Menu Dialog
  • Timer
  • Set Wallpaper in Android
  • Building media Browser
  • Connecting Bluetooth Headset
  • Proximity Sensor

Useful for hiring

  • Android App Developer
  • Android Programmer

Start hiring job-fit candidates using this assessment


"We are impressed by the caliber, depth, and breadth of the assessments provided by Interview Mocha. With Interview Mocha's online proctoring & powerful reports, we are able to hire quality candidates overcoming geographical barriers."

Megan Akhras, J'Excelle,Canada,
Co-founder & director

Given a block of code written in Java for Android to save the data using SharedPreferences.

At Blank 1: You will need to initialize a SharedPreferences object.
At Blank 2: After initializing the SharedPreferences, you will need to initialize Editor Object.
At Blank 3: Here we are using a simple data save, you will need to set data in editor object.
At Blank 4: You will need to commit the editor. 
public class MainActivity extends Activity {
    SharedPreferences sharedpreferences;
    TextView name;
    TextView age;
    public static final String mypreference = "mypreffirst";
    public static final String Name = "nameKey";
    public static final String Age = "ageKey";

    protected void onCreate(Bundle savedInstanceState) {
        name = (TextView) findViewById(;
        age = (TextView) findViewById(;
        sharedpreferences =;
        if (sharedpreferences.contains(Name)) {
            name.setText(sharedpreferences.getString(Name, ""));
        if (sharedpreferences.contains(Age)) {
            age.setText(sharedpreferences.getString(Age, ""));

    public void Save(View view) {
        String n = name.getText().toString();
        String e = age.getText().toString();
        SharedPreferences.Editor editor =;

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates