Friday, 30 October 2015

UNIX Interview Questions and Answers

Unix is one of most powerful multi-tasking and multi-user operating system. Unix commands and interview question and answers are explained below. All the basic UNIX commands are listed with it operation and functionality. These are the basic interview question most commonly asked in interview for fresher as well as experienced.
1. What is UNIX?
UNIX was developed by AT & T Bell labs during 1970’s. UNIX is multi-user, multi-tasking operating system. UNIX uses Shell as a commands for interface between users and machine.
2. What is Shell?
Shell is used for interaction between user and operating system. By using shell, users can typed commands for their task and
3. What is the different between multi-user and multi-tasking?
Multi-user means, there can be more than one user profile in the operation system whereas multi-tasking means, operating system can performs multiple operations at a time.
4. What are the basic UNIX commands for File and Directory Management?
5. List the UNIX Commands for File Display and printing?
 6. What is kernel?
Kernel is the essential parts which act as mediator for computer hardware and software input and output requests and it also handle memory managements.
7. Who is Super user?
Super users is the administrative in the operating system account which has all the authority i.e. can add user, remove them, set files inaccessible to other users and so on and super users are called as system administration.
8. Write Hello World program by using UNIX command?
The Hello World can be display in the command line by using echo command.
 9. What is chmod command?
chmod command in UNIX changes the file protection mode of the directory.
10. How to create and remove directory?
Perform the following commands for creating and removing directory in UNIX, mkdirand rmdir are used.
11. How to display time?
By using date command, we can display the time and date in unix.
12. List some of the process control commands?
 13. How to display first and last part of the file?
The first part of the file can be displayed by using head(which shows few lines from starting of the file) whereas the last part of the file can be display with UNIX commandtail(which display last few line of the file).
14. How to read a file in UNIX?
The command used for reading the file in UNIX is cat. Example is shown below.
 15. How to change directory?
To change the directory in UNIX, the command used is cd Below is the example:
 16. In UNIX, how to search for a file?
grep is the UNIX command used for searching files.
17. Which UNIX command is used for copying files?
The command used for copying files is cp. The example is given below.
 18. How to print a file?
To print a file, lpr UNIX command is used. Example for printing the file is given below:
19.  Explain Process in UNIX?
A process is an executing programs which may be run in background, foreground and the process can be suspended. Process is identified by a unique PID i.e. Process Identifier.
20. How to list and kill the background process in UNIX?
To display list all the process running either in background, foreground or suspended, use jobs command. To terminate a certain process, kill command is used.

Android Interview Questions and Answers

Android is the most popular mobile OS in the world. Android Interview questions along with answers for which are commonly asked for fresher’s and experience in an interview. These android interview question with each answer explained in detail with example.
1. What is Android?
Android is open source mobile OS based on Linux and it is specifically developed for smart phones, tablets and Android TV etc.. Android was co-founded by Andy Rubin in 2003 and later acquired by Google during 2005.
2. Explain about the History of android and it different version?
Since the inception of Android mobile OS, 12 Android version are released starting with Alpha and Beta versions. Below is the list of Android version History.
Alpha(1.0), Beta(1.1), Cupcake(1.5), Donut(1.6), Éclair(2.0-2.1), Froyo(2.2), Gingerbread(2.3), Honeycomb(3.0-3.2), Ice Cream Sandwich(4.0), Jelly Bean(4.1-4.3), Kitkat(4.4) and the latest version is Lollipop(5.0).
3. What is activities?
Activity is an application component which has screen and user interface that is used to interacting and do certain action is called as. Examples for activities are: reading emails, taking photo, calculator.
4. What are SDK used for Android Development?
Eclipse(for Android) is one of the most used SDK for Android apps development. Android Studio first stable Version 1.0 which was recently launched by Google is an awesome SDK for app development. The other SDK used are: Corona, Xamarin, PhoneGap etc.
5. Explain about Android Studio?
Android Studio is IDE for Android Application Development. It is develop by Google along with the help of IntelliJ IDEA by JetBrains. It has many functionality such as Rich editor layout, ProGuard and other features. The first stable Version 1.0.1 was released on 8th December 2014.
6. Explain about Dalvik?
Dalvik is not only the virtual machine for Android OS but also provide runtime and bytecode which helps to process and executes apps for Android OS.
7. What are the main difference between Dalvik and ART?
Dalvik is replaced by Android Runtime by Google for latest versions. Dalvik used Just in Time(JIT) whereas ART uses Ahead-of Time(AOT).
8. What is content provider?
Content provider are used for sharing data from one app to other apps because by default app cannot access other application data due to permission issue. The data can be shared or used in different ways such as database, memory card etc. Thus, it support CRUD operation which means Create, Read, Update and Delete operations.
9. Explain briefly about Activity lifecycle?
There are different stages in Activity lifecycle. They are:
  • onCreate(): Used when activity is first created.
  • onStart(): When the activity is used
  • onRestart(): It will restart the activity
  • onResume(): The activity will be resume after being paused.
  • onPause(): The activity will be paused.
  • onStop(): The activity will be stopped.
  • onDestroy(): The activity will be destroyed.
10. Explain briefly about Android Manifest file?
AndroidManifest.xml file contains information about the package, components of application like activities, content provider, services etc. The file name should be exactly the same(i.e. AndroidManifest.xml) otherwise android application could not be executed or run.
11. Define intent?
Intent allows Android applications for communicating or sending messages within the app component or with other apps component for performing certain actions or tasks. The messages in component are passed between Activities, Services and Content Providers.
12. What is fragment?
A fragment represent a behavior or portion of UI within an Activity. Like Activity, Fragment does have Lifecycle. Multi-pane UI can be created in an Activity by embedding Multi Fragments.
13. What is layout and what are the different types of layout?
Layout defines the user interface of an activity. A Layout can be declared in two different ways: using XML and by Instantiate layout at runtime(using Java).
There are six different types of layout: They are:
  1. Linear Layout
  2. Relative Layout
  3. Grid Layout
  4. Table Layout
  5. Tab Layout
  6. List View
14. Explain Linear Layout?
In Linear Layout, all the elements are organize either vertically or horizontally. When the length of the screen exceeds the window, it creates a scroll bar.
15. What is Relative Layout?
In relative layout, relative elements can be placed above or below or left or right or even center. For example, we can place text field can be placed left and a button can be placed right.
16. What is action bar in android?
In Android, Action Bar is used for users location, search box and a drop-down list or tabs for switching within the app.
17. Does Visual Studio supports Android development? If yes, How?
No, Visual Studio does not support Android app development. Though we can use third party plugin like Xamarin to develop android apps. Xamarin also help to use the same code for all the major mobile OS i.e. Android, iOS and Windows Phones

Thursday, 29 October 2015

PHP Interview Questions and Answers

PHP(Hypertext Preprocessor) most commonly asked Interview questions and answers are explain in simple language. PHP interview questions and answers are useful for both fresher’s and experience.
1. What is PHP?
PHP is acronym for Hypertext Preprocessor. It is open source web development scripting language. Servers are required for executing PHP scripts.
2. PHP Object Oriented or Procedure Oriented?
In PHP 5, many OOPS concepts were supported by PHP5, thus it is Object Oriented Language as well as Procedure Oriented Language. OOPS concepts are used along with procedure oriented features.
3. Write Hello World program using PHP?
Hello World program is used to print simple text, “Hello World”
<?php
echo “Hello World”;
?>
4. Why PHP is called as Loosely Type Language?
PHP is called has Loosely Typed Language because, in PHP we not declare variable data type (like integer, short, string etc.). PHP will automatically give best suited variable data type.
5. Does PHP syntax are similar with any programming language?
Yes, PHP Scripting language has similar syntax as of Java and Perl programming language.
6. Difference between GET and POST Method?
  • GET and POST both are used for sending information to server. Though there are many difference between GET and POST:
  • GET appends the value in the URL whereas POST does not append values in the URL
  • GET values are publicly available(because it values are appended in the URL) and POST is secure.
  • GET can send limited amount of data( because URL only supports 1024 characters) and POST can send any amount of information.
7. What are the types of errors in PHP?
The different types of PHP errors are: E_ERROR, E_WARNING, E_PARSE, E_NOTICE, E_USER_ERROR, E_USER_NOTICE, E_CORE_WARNING etc.
8. What are the different types of runtime errors in PHP?
There are mainly three types of runtime errors in PHP. They are Notices, Warnings and Fatal Errors. Notices are small errors which are not visible to users whereas warning are severe errors and it those errors are visible to users. Fatal errors are extremely severe errors which will stop PHP script execution.
9. Difference between Require and Include?
Require and Include statements are similar except during failure or errors. Require statement produces or results fatal error and it stops executing the script during failure whereas include statement does not stops scripts, just it shows warning.
10. What are the types of PHP Variables Scope?
PHP has three variable scope. They are: local, global and static. A local variable is declared inside the function whereas global variable is declared outside the functions. Local variable have access within the function only and global variable can be access from any function.
11. What are Array? How to create PHP Array?
Array can stores more than one variable. Arrays can store a list of similar items(like employee names, student details etc.) under single variable. Arrays in PHP can created using array() function.
12. What are the types of arrays in PHP?
There are three types of arrays in PHP. They are: Indexed Array, Associated Array and Multi-Dimensional Array.
13. Explain PHP Functions?
PHP functions are some block of code(which can be used for repetitive use or later in the program). PHP has both build-in functions and user-defined functions. PHP supports more than 1000+ built-in functions and user-defined functions are costumed functions.
14. What are conditional statements? Types?
Conditionals statements in PHP are used to perform certain action depending upon the given condition. Some of the conditional statement in PHP are: if, if..else, else….if and break statements.
15. Define PHP Filter?
PHP filters are used to obtain secure data, which is coming from users inputs like forms, cookie and other web services.
16. Explain PHP Session?
PHP sessions temporarily stores users data and information on web server to allow users to perform certain actions like adding shopping cart, sign in etc. Normal HTML pages does not support sessions, whenever a new page is loaded, all the data(information of users) will be lost. Thus PHP sessions overcomes it.
17. Explain PHP Cookie?
A Cookie is a small file, which is saved by server in users computer (downloaded through users browsers). Whenever the same user request webpage, the stored cookie is retrieved and returned to the server.
18. Does PHP supports inheritance?
Yes, PHP supports inheritance. Though, it does not supports multiple inheritance. Multiple inheritance can be used in PHP through interface.
19. Difference between print and echo in PHP?
  • In PHP, print and echo are basic output statements and there are almost similar. Though there are few difference between echo and print which are given below:
  • Print can take only one string(parameter) at a time while echo can take multiple string(parameter) at a time.
  • Print always returns 1 and echo does not have return value.
  • Echo is faster than print because echo does not return types
20. What are the exception handling in PHP?
In PHP, exception handling were in introduced in PHP 5. Whenever an error occurs during the execution of code, the exception handling change the flow of code to costumed exception. Exception Handling uses try, catch blocks.

Wednesday, 28 October 2015

Full forms of MP3,3GP.............

Full forms of MP3,3GP.............
AVI / VCD / DVD / 3G / MKV / FLV / OGG / WAV / WMA .......
Also please explain any other short form not listed above ?





3GP - 3RD GENERATION PROTOCOL 


AAC - ADVANCED AUDIO CODEC 

AC3 - DOLBY DIGITAL SOUND FILE 

AVI - Stands for Audio Video Interleaved,

storing sound and moving pictures in RIFF format developed by Microsoft.

AIFF - AUDIO INTERCHANGE FILE FORMAT 

DVD - Digital Video Disc or Digital Versatile Disc, 

AMR - ADOPTIVE MULTI RATE 

AWB - ADOPTIVE MULTI RATE WIDEBAND 

CDA - COMPACT DISK AUDIO 

DLL - DYNAMIK LINK LIBRARY 

EXE - EXECUTABLE FORMAT 

FLAC - FREE LOSSLESS AUDIO CODEC 

FLV - FLASH LIVE VIDEO 

GIF - GRAPHICS INTERCHANGE FORMAT

JAD - JAVA APPLICATION DEVELOPMENT 

JAR - JAVA ARCHIVE 

M3U - An .m3u file is a special type of metafile playlist that is used with MP3 files that have an .

MOV - QuickTime Content (.mov, .qt) a file format developed by Apple Computer to create, edit, publish, and view multimedia files. 

MPEG - An ISO/ITU standard for compressing video offering lossy compression technique (some data of the original image is lost during the compression).

MIDI - MUSICAL INSTRUMENT DIGITAL INTERFACE 

VCD - stands for 'Video Compact Disc' and basically it is a CD that contains moving pictures and sound. 

MP2 - MPEG AUDIO LAYER 2 

MP3 - MPEG AUDIO LAYER 3 

MP4 - MPEG LAYER 4 MPEG - MOTION PICTURE EXPERTS GROUP 

WMA - Windows Media Audio.

SIS - SYMBIAN INSTALLATION SOURCE 

VCD - VIDEO COMPACT DISK 

WAV - WAVEFORM PCM AUDIO 

ZIP - ZONE IMPROVEMENT PLAN 

WMP - Windows Media Player, a multimedia audio and video player bundled with the Windows Operating System.