Android Interview Question Indiabix

1 Name the resource that is a compiled visual resource, which can be used as a background, title, or in other parts of the screen.

Drawable is the virtual resource that can be used as a background, title, or in other parts of the screen. It is compiled into an subclass. A drawable resource is a general concept for a graphic that can be drawn. The simplest case is a graphical file (bitmap), which would be represented in Android via a BitmapDrawable class.

Drawable is stored as an individual file in one of the res/drawable folders. The ADT project creation wizard creates these folders by default. You would store bitmaps for different resolutions in the -mdpi, -hdpi, -xhdpi, and -xxhdpi subfolders of res/drawable. If these bitmaps are provided in a different folder, the Android system selects the correct one automatically based on the device configuration.

What is ADB?

ADB stands for Android Debug Bridge. It is a command-line tool that is used to communicate with the emulator instance. ADB can control our device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more.

android interview question indiabix

It is a client–server program that includes three components:

  • A client, which runs on our development machine. We can invoke a client from a shell by issuing an ADB command. Other Android tools such as DDMS also create ADB clients.
  • A server, which runs as a background process on our development machine. The server manages communication between the client and the ADB daemon running on an emulator or device.
  • A daemon, which runs as a background process on each emulator or device instance.
  • Q7Does python make use of access specifiers?


    1 What is the difference between UI policy and data policy?

    Ans: UI policy acts when a record is inserted or updated through a ServiceNow UI i.e ServiceNow forms while data policy acts whenever a record is inserted or updated into the database through any means.

    Servicenow Interview Questions and Answers for Developers

    Ans: LDAP is the Lightweight Directory Access Protocol. It is used for user data population and User authentication. Servicenow integrates with LDAP directory to streamline the user login process and to automate the creation of user and assigning them roles

    Q4What are docstrings in Python?

    Ans: Docstrings are not actually comments, but, they are documentation strings. These docstrings are within triple quotes. They are not assigned to any variable and therefore, at times, serve the purpose of comments as well.


    Output: 2.0

    6 Name a few types of reports that you can generate?

    Ans: Few reports are:

    Q What are the key features of Python?

  • Python is an interpreted language. That means that, unlike languages like C and its variants, Python does not need to be compiled before it is run. Other interpreted languages include PHP and Ruby.
  • Python is dynamically typed, this means that you don’t need to state the types of variables when you declare them or anything like that. You can do things like x=111 and then x="Im a string" without error
  • Python is well suited to object orientated programming in that it allows the definition of classes along with composition and inheritance. Python does not have access specifiers (like C++’s public, private).
  • In Python, functions are first-class objects. This means that they can be assigned to variables, returned from other functions and passed into functions. Classes are also first class objects
  • Writing Python code is quick but running it is often slower than compiled languages. Fortunately,Python allows the inclusion of C-based extensions so bottlenecks can be optimized away and often are. The numpy package is a good example of this, it’s really quite quick because a lot of the number-crunching it does isn’t actually done by Python
  • Python finds use in many spheres – web applications, automation, scientific modeling, big data applications and many more. It’s also often used as “glue” code to get other languages and components to play nice. Learn more about Big Data and its applications from the Data Engineering Training.
  • 5 Android Interview Questions – Threads, Leaks, Intent, Service

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *