Interview Questions

Java

  • What is Interning?

    Interning is the process of converting duplicated strings to shared ones. Interned Strings avoid duplicate...
  • What is Bytecode?

    The Java class file contains bytecode which is being interpreted by JVM. Bytecode is introduced in Java to...
  • What is a Garbage collector?

    What is a Garbage collector? - Garbage collector cleans up objects which are no longer used. It is the thread running as part of JVM......
  • What’s the base class in Java from which all classes are derived?

    java.lang.object
  • What are Loops in Java? What are three types of loops?

    Looping is used in programming to execute a statement or a block of statement repeatedly. There are three types of loops in Java: 1) For Loops For loops are used in java to execute statements repeatedly for a given number of times. For loops are used when number of times to execute the statements is known to programmer. 2) While Loops While loop is used when certain statements need to be executed repeatedly until a condition is fulfilled. In while loops, condition is checked first before execution of statements. 3) Do While Loops Do While Loop is same as While loop with only difference that condition is checked after execution of block of statements. Hence in case of do while loop, statements are executed at least once.
  • Explain method overloading.

    When a Java program contains more than one methods with the same name but different properties, then it is called method overloading.
  • Define class?

    A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object.
  • List any five features of Java?

    Some features include Object Oriented, Platform Independent, Robust, Interpreted, Multi-threaded

PHP

  • How to set cookies in PHP?

    Setcookie("sample", "ram", time()+3600);
  • What is the difference between Session and Cookie?

    The main difference between sessions and cookies is that sessions are stored on the server, and cookies are stored on the user's computers in the text file format. Cookies can't hold multiple variable while session can hold multiple variables..We can set expiry for a cookie,The session only remains active as long as the browser is open.Users do not have access to the data you stored in Session,Since it is stored in the server.Session is mainly used for login/logout purpose while cookies using for user activity tracking
  • How to select a database?

    mysql_select_db($db_name);
  • what types of loops exist in php?

    for,while,do while and foreach (NB: You should learn its usage)
  • What is use of count() function in php ?

    count() is used to count all elements in an array, or something in an object
  • What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?

    mysql_fetch_object() is similar to mysql_fetch_array(), with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names).
  • How to declare an array in php?

    Eg : var $arr = array('apple', 'grape', 'lemon');
  • How to include a file to a php page?

    We can include a file using "include() " or "require()" function with file path as its parameter.
  • What is the use of “echo” in php?

    It is used to print a data in the webpage, Example: <?php echo 'Car insurance'; ?> , The following code print the text in the webpage

PHOTOSHOP

  • What is a Bezier curve?

    It is a mathematically defined curve used in two-dimensional graphic applications. It is defined by four points, the initial position, two middle point positions and a terminating position.
  • What tool you can use to combine images?

    You can use Auto-blend layers command to combine images. Auto-blend layers uses layer masks as needed to mask-out over underexposed areas.
  • How you fix the blurry images in Photoshop?

    To fix the blurry images in Photoshop you can use sharpening tools. Sharpening the image will lose the pixels, make sure you are finished with everything else and saved the changes before you start sharpening the image.
  • How you can unlock the background in Photoshop?

    To unlock the background image, first click on the picture or image and then select MODE option. After that, select the option GRAY SCALE and revert to LAYER. When you double click on the surface, the surface will be unlocked.
  • What are Lasso tools and name them?

    With lasso tools precise area of an image can be selected, just by tracing the selection outlines the areas are selected.
    • Simple Lasso Tool
    • Polygonal Lasso Tool
    • Magnetic Lasso Tool
  • What is healing tool?

    Healing tool is used in Photoshop to hide the unwanted spots or pictures that appeared in your original picture and makes picture look like real without any changes.  The tool use complicated algorithm to calculate what would be the area of your picture based on the surrounding pixels
  • What is Clone tool?

    Clone tool uses the current brush to repair the problem areas in photos and pictures, by painting over them with pixel data from other areas.
  • What are Lasso tools and name them?

    With lasso tools precise area of an image can be selected, just by tracing the selection outlines the areas are selected. Simple Lasso Tool Polygonal Lasso Tool Magnetic Lasso Tool
  • How to create an artistic border?

  • What is a Gradient in Adobe Photoshop?

    Gradients are a great way to introduce eye-catching and flashy graphics in your pages.

Android

  • What is ViewGroup?

    A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers. This class also defines the class ViewGroup.LayoutParams which serves as the base class for layouts parameters.
  • List out the areas where SQL Lite works well?

    SQL lite works well with
    • Embedded devices and the internet of things
    • Application file format
    • Data Analysis
    • Websites
    • Cache for enterprise data
    • Server side database
    • File archives
    • Internal or temporary databases
    • Replacement for ad hoc disk files
    • Experimental SQL language extensions
    • Stand-in for an enterprise database during demos or testing
     
  • Explain what is SQLite transactions?

    The transaction is referred as a unit of work that is performed against a database.  It is the propagation of one or more changes to the database. Properties of transactions are determined by ACID.
    • Atomicity:It ensures that all work unit are successfully completed
    • Consistency:It ensures that the database changes states upon a successfully committed transaction
    • Isolation:It enables transactions to operate independently of and transparent to each other
    • Durability:It ensures that the result or effect of a committed transaction persists in case of a system failure
  • List out the standard SQL Lite commands?

    The standard SQL Lite commands interact with relational databases are similar to SQL.  They are
    • SELECT
    • CREATE
    • INSERT
    • UPDATE
    • DROP
    • DELETE
    Based on their operational nature these commands can be classified.
  • What is ViewGroup?

    A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers. This class also defines the class ViewGroup.LayoutParams which serves as the base class for layouts parameters.
  • List out the areas where SQL Lite works well?

    SQL lite works well with
    • Embedded devices and the internet of things
    • Application file format
    • Data Analysis
    • Websites
    • Cache for enterprise data
    • Server side database
    • File archives
    • Internal or temporary databases
    • Replacement for ad hoc disk files
    • Experimental SQL language extensions
    • Stand-in for an enterprise database during demos or testing
  • Explain what is SQLite transactions?

    The transaction is referred as a unit of work that is performed against a database.  It is the propagation of one or more changes to the database. Properties of transactions are determined by ACID.
    • Atomicity:It ensures that all work unit are successfully completed
    • Consistency:It ensures that the database changes states upon a successfully committed transaction
    • Isolation:It enables transactions to operate independently of and transparent to each other
    • Durability:It ensures that the result or effect of a committed transaction persists in case of a system failure
  • List out the standard SQL Lite commands?

    The standard SQL Lite commands interact with relational databases are similar to SQL.  They are
    • SELECT
    • CREATE
    • INSERT
    • UPDATE
    • DROP
    • DELETE
    Based on their operational nature these commands can be classified.
  • How to fetch x,y,z co‐ordinate values of accelerometer sensor in below function?

    Note: assume that, this is the function of Sensoreventlistener. Note: assume that, this is registered to listen accelerometer sensor public void onSensorChanged(SensorEvent event) { } Answer: event.values[0] - contains x value, event.values[1] - contains y value, event.values[2] - contains z value. Description : Accelerometer sensor will sense the acceleration force on all 3 axes (x,y,z) and send that even to onSensorChanged(). SensorEvent object is a data structure which will contain all the information about incoming sensor event.. event.values[0] - contains x value, event.values[1] - contains y value, event.values[2] - contains z value.
  • What does below sensor code do?

    Sm=(SensorManager)getSystemService(Context.SENSOR_SERVICE);List<Sensor>ls= sm.getSensorList(Sensor.TYPE_ALL);  
Phone:
+91 99489 57575

Plot No:#24,Flat No:302,Arunodhaya Colony,cyber hills Road,Madhapur
Near Lot Mobile Store  Landmark:Image Gardens Hyderabad,
Telangana 500081
Style switcher RESET
Body styles
Color settings
Link color
Menu color
User color
Background pattern
Background image