Likes

Software Testing Interview Questions


A list of mostly asked software testing interview questions or QTP interview questions and answers are given below.
1) What is PDCA cycle and where testing fits in?
There are four steps in a normal software development process. In short, these steps are referred as PDCA.
PDCA stands for Plan, Do, Check, Act.
  • Plan: It defines the goal and the plan for achieving that goal.
  • Do/ Execute: It depends on the plan strategy decided during the plan stage. It is done according to this phase.
  • Check: This is the testing part of the software development phase. It is used to ensure that we are moving according to plan and getting the desired result.
  • Act: This step is used to solve if there any issue is occurred during the check cycle. It takes appropriate action accordingly and revises the plan again.
The developers do the "planning and building" of the project while testers do the "check" part of the project.

2) What is the difference among white box, black box and gray box testing?
Black box Testing: The strategy of black box testing is based on requirements and specification. It requires no need of knowledge of internal path, structure or implementation of the software being tested.
White box Testing: White box testing is based on internal paths, code structure, and implementation of the software being tested. It requires a full and detail programming skill.
Gray box Testing: This is another type of testing in which we look into the box which is being tested, It is done only to understand how it has been implemented. After that we close the box and use the black box testing.

3)What are the advantages of designing tests early in the life cycle?
Designing tests early in the life cycle prevent defects from being in the main code.

4) What are the types of defects?
There are three types of defects: Wrong, missing and extra.
Wrong: These defects are occurred due to requirements have been implemented incorrectly.
Missing: It is used to specify the missing things i.e. a specification was not implemented, or the requirement of the customer was not noted properly.
Extra: This is an extra facility incorporated into the product that was not given by the end customer. It is always a variance from the specification but may be an attribute that was desired by the customer. However, it is considered as a defect because the variance from the user requirements.

5) What is exploratory testing?
Simultaneous test design and execution against an application is called exploratory testing. In this testing the tester uses his domain knowledge and testing experience to predict where and under what conditions the system might behave unexpectedly.

6) When should exploratory testing be performed?
Exploratory testing is performed as a final check before the software is released. It is a complimentary activity to automated regression testing.

7) What are the advantages of designing tests early in the life cycle?
It helps you to prevent defects into the code.

8) Tell me about the risk based testing.
Risk based testing is a testing strategy that is based on prioritizing tests by risks. It is based on a detailed risk analysis approach which categorizes the risks by their priority. Highest priority risks are resolved first.

9) What is acceptance testing?
Acceptance testing is done to enable a user/customer to determine whether to accept a software product. It also validates whether the software follows a set of agreed acceptance criteria.

10) What is accessibility testing?
Accessibility testing is used to verify whether a software product is accessible to the people having disabilities (deaf, blind, mentally disabled etc.).

11) What is Adhoc testing?
Adhoc testing is a testing phase where the tester tries to 'break' the system by randomly trying the system's functionality.

12) What is Agile testing?
Agile testing is a testing practice that uses agile methodologies i.e. follow test-first design paradigm.

13) What is API (Application Programming Interface)?
Application Programming Interface is a formalized set of software calls and routines that can be referenced by an application program in order to access supporting system or network services.

14) What do you mean by automated testing?
Testing by using software tools which execute test without manual intervention is known as automated testing. Automated testing can be used in GUI, performance, API etc.

15) What is Bottom up testing?
The Bottom up testing is a testing approach which follows integration testing where the lowest level components are tested first, after that the higher level components are tested. The process is repeated until the testing of top level component.

16) What is Baseline Testing?
In Baseline testing, a set of tests is run to capture performance information. Baseline testing improves performance and capabilities of the application by using the information collected and make the changes in the application. Baseline compares present performance of application with its own previous performance.

17) What is Benchmark Testing?
Benchmarking testing is the process of comparing application performance with respect to industry standard given by some other organization.
It is a standard testing which specifies where our application stands with respect to others.

18) Which types are testing are important for web testing?
There are two types of testing which are very important for web testing:
  • Performance testing
  • Security testing

19) What is the difference between web application and desktop application in the scenario of testing?
The difference a web application and desktop application is that a web application is open to the world with potentially many users accessing the application simultaneously at various times, so load testing and stress testing are important. Web applications are also prone to all forms of attacks, mostly DDOS, so security testing is also very important in the case of web applications.

20) What is the difference between verification and validation?
Difference between verification and validation:
Verification
Verification is Static Testing.
Verification occurs before Validation.
Verification evaluates plans, document, requirements and specification.
In verification inputs are checklist, issues list, walkthroughs and inspection.
Verification output is set of document, plans, specification and requirement documents.

Validation
Validation is Dynamic Testing.
Validation occurs after Verification.
Validation evaluates products.
In validation testing, actual product is tested.
In Validation actual product is output.

21) What is the difference between Retesting and Regression Testing?
A list of differences between Retesting and Regression Testing:
  • Retesting is done to verify defect in previous and fix them to work correctly, on the other hand, regression testing is performed to check if the defect fix have not impacted other functionality that was working fine before doing changes in the code.
  • Retesting is specific and it is performed on the bug which is fixed where as in regression is not be always specific to any defect fix it is performed when any bug is fixed.
  • Retesting concern with executing those test cases that are failed earlier where as regression concern with executing test cases that was passed in earlier builds.
  • Retesting has higher priority over regression testing.

22) What is the difference between preventative and reactive approaches to testing?
Preventative tests are designed earlier and reactive tests are designed after the software has been produced.

23) What is the purpose of exit criteria?
The exit criteria is used to define the completion of the test level.

24) Why the decision table testing is used?
A decision table consists of inputs in a column with the outputs in the same column but below the inputs.
The decision table testing is used for testing systems for which the specification takes the form of rules or cause-effect combination. The reminders you get in the table explore combinations of inputs to define the output produced.


25) What is alpha and beta testing?
These are the key differences between alpha and beta testing:
No. Alpha Testing
1) It is always done by developers at the software development site.
2) It is also performed by Independent testing team.
3) It is not open to the market and public.
4) It is always performed in virtual environment.
5) It is used for software applications and projects.
6) It follows the category of both white box testing and Black Box Testing.
7) It is not known by any other name.

Beta Testing
1) It is always performed by customers at their own site.
2) It is not be performed by Independent testing team.
3) It is open to the market and public.
4) It is always performed in real time environment.
5) It is used for software products.
6) It is only the kind of Black Box Testing.
7) It is also known as field testing.

26) What is Random/Monkey Testing?
Random testing is also known as monkey testing. In this testing, data is generated randomly often using a tool. The data is generated either using a tool or some automated mechanism.
Random testing has some limitations:
  • Most of the random tests are redundant and unrealistic.
  • It needs more time to analyze results.
  • It is not possible to recreate the test if you do not record what data was used for testing.

27) What is the negative and positive testing?
Negative Testing: When you put an invalid input and receive errors is known as negative testing.
Positive Testing: When you put in the valid input and expect some actions that are completed according the specification is known as positive testing.

28) What is the benefit of test independence?
Test independence is very useful because it avoids author bias in defining effective tests.

29) What is boundary value analysis / testing?
In boundary value analysis/testing, we only test the exact boundaries rather than hitting in the middle. For example: If there is a bank application where you can withdraw a maximum of 25000 and a minimum of 100. So in boundary value testing we only test above the max and below the max. This covers all scenarios.
The following figure shows the boundary value testing for the above discussed bank application.TC1 and TC2 are sufficient to test all conditions for the bank. TC3 and TC4 are just duplicate/redundant test cases which really do not add any value to the testing. So by applying proper boundary value fundamentals we can avoid duplicate test cases, which do not add value to the testing.


30) How would you test the login feature of a web application?
There are many ways to test the login feature of a web application:
  • Sign in with valid login, Close browser and reopen and see whether you are still logged in or not.
  • Sign in, then logout and then go back to the login page to see if you are truly logged out.
  • Login, then go back to the same page, do you see the login screen again?
  • Session management is important. You must focus on how do we keep track of logged in users, is it via cookies or web sessions?
  • Sign in from one browser, open another browser to see if you need to sign in again?
  • Login, change password, and then logout, then see if you can login again with the old password.

Hadoop Interview Questions


There is given hadoop interview questions and answers that has been asked in many companies. Let's see the list of top hadoop interview questions.

1) What is Hadoop?
Hadoop is a distributed computing platform. It is written in Java. It consist of the features like Google File System and MapReduce.

2) What platform and Java version is required to run Hadoop?
Java 1.6.x or higher version are good for Hadoop, preferably from Sun. Linux and Windows are the supported operating system for Hadoop, but BSD, Mac OS/X and Solaris are more famous to work.

3) What kind of Hardware is best for Hadoop?
Hadoop can run on a dual processor/ dual core machines with 4-8 GB RAM using ECC memory. It depends on the workflow needs.

4) What are the most common input formats defined in Hadoop?
These are the most common input formats defined in Hadoop:
  1. TextInputFormat
  2. KeyValueInputFormat
  3. SequenceFileInputFormat
TextInputFormat is a by default input format.

5) What is InputSplit in Hadoop? Explain.
When a hadoop job runs, it splits input files into chunks and assign each split to a mapper for processing. It is called InputSplit.

6) What is testinformat?
In textinputformat, each line in the text file is a record. Value is the content of the line while Key is the byte offset of the line. For instance, Key: longWritable, Value: text

7) What is the sequence file in put format in Hadoop?
In Hadoop, Sequencefileinputformat is used to read files in sequence. It is a specific compressed binary file format which passes data between the output of one MapReduce job to the input of some other MapReduce job.

8) How many InputSplits is made by a Hadoop Framework?
Hadoop will make 5 splits as following:
  • One split for 64K files
  • Two splits for 65MB files, and
  • Two splits for 127MB files

9) What is the use of RecordReader in Hadoop?
InputSplit is assigned with a work but doesn't know how to access it. The record holder class is totally responsible for loading the data from its source and convert it into keys pair suitable for reading by the Mapper. The RecordReader's instance can be defined by the Input Format.

10) What is JobTracker in Hadoop?
JobTracker is a service within Hadoop which runs MapReduce jobs on the cluster.

11) What is WebDAV in Hadoop?
WebDAV is a set of extension to HTTP which is used to support editing and uploading files. On most operating system WebDAV shares can be mounted as filesystems , so it is possible to access HDFS as a standard filesystem by exposing HDFS over WebDAV.

12) What is sqoop in Hadoop?
Sqoop is a tool used to transfer data between Relational Database Management System (RDBMS) and Hadoop HDFS. By using Sqoop, you can transfer data from RDBMS like MySQL or Oracle into HDFS as well as exporting data from HDFS file to RDBMS.

13) What are the functionalities of JobTracker?
These are the main tasks of JobTracker:
  • To accept jobs from client.
  • To communicate with the NameNode to determine the location of the data.
  • To locate TaskTracker Nodes with available slots.
  • To submit the work to the chosen TaskTracker node and monitors progress of each tasks.

14) Define TaskTracker.
TaskTracker is a node in the cluster that accepts tasks like MapReduce and Shuffle operations from a JobTracker.

15) What is Map/Reduce job in Hadoop?
Map/Reduce is programming paradigm which is used to allow massive scalability across the thousands of server.
Actually MapReduce refers two different and distinct tasks that Hadoop performs. In the first step maps jobs which takes the set of data and converts it into another set of data and in the second step, Reduce job. It takes the output from the map as input and compress those data tuples into smaller set of tuples.

16) What is "map" and what is "reducer" in Hadoop?
Map: In Hadoop, a map is a phase in HDFS query solving. A map reads data from an input location, and outputs a key value pair according to the input type.
Reducer: In Hadoop, a reducer collects the output generated by the mapper, processes it, and creates a final output of its own.

17) What is shuffling in MapReduce?
Shuffling is a process which is used to perform the sorting and transfer the map outputs to the reducer as input.

18) What is NameNode in Hadoop?
NameNode is a node, where Hadoop stores all the file location information in HDFS (Hadoop Distributed File System). We can say that NameNode is the centrepiece of an HDFS file system which is responsible for keeping record of all the files in the file system, and tracks the file data across the cluster or multiple machines.

19) What is heartbeat in HDFS?
Heartbeat is a signal which is used between a data node and name node, and between task tracker and job tracker. If the name node or job tracker doesn't respond to the signal then it is considered that there is some issue with data node or task tracker.

20) How indexing is done in HDFS?
There is a very unique way of indexing in hadoop. Once the data is stored as per the block size, the HDFS will keep on storing the last part of the data which specifies the location of the next part of the data.

21) What happens when a data node fails?
If a data node fails the job tracker and name node will detect the failure. After that all tasks are re-scheduled on the failed node and then name node will replicate the user data to another node.

22) What is Hadoop Streaming?
Hadoop streaming is a utility which allows you to create and run map/reduce job. It is a generic API that allows programs written in any languages to be used as Hadoop mapper.

23) What is a combiner in Hadoop?
A Combiner is a mini-reduce process which operates only on data generated by a Mapper. When Mapper emits the data, combiner receives it as input and sends the output to reducer.

24) What are the Hadoop's three configuration files?
Following are the three configuration files in Hadoop:
  • core-site.xml
  • mapred-site.xml
  • hdfs-site.xml

25) What are the network requirements for using Hadoop?
Following are the network requirement for using Hadoop:
  • Password-less SSH connection.
  • Secure Shell (SSH) for launching server processes.

26) What do you know by storage and compute node?
Storage node: Storage node is the machine or computer where your file system resides to store the processing data.
Compute Node: Compute node is a machine or computer where your actual business logic will be executed.

27) Is it necessary to know java to learn Hadoop?
If you have a background in any programming language like C, C++, PHP, Python, Java etc. It may be really helpful, but if you are nil in java, it is necessary to learn Java and also get the basic knowledge of SQL.

28) How to debug Hadoop code?
There are many ways to debug Hadoop codes but the most popular methods are:
  • By using Counters.
  • By web interface provided by Hadoop framework.

29) Is it possible to provide multiple inputs to Hadoop? If yes, explain.
Yes, It is possible. The input format class provides methods to insert multiple directories as input to a Hadoop job.

30) What is the relation between job and task in Hadoop?
In Hadoop, A job is divided into multiple small parts known as task.

31) What is the difference between Input Split and HDFS Block?
Logical division of data is called Input Split and physical division of data is called HDFS Block.

32) What is the difference between RDBMS and Hadoop?
RDBMS
RDBMS is relational database management system.
RDBMS is used for OLTP processing.
In RDBMS, the database cluster uses the same data files stored in shared storage.
In RDBMS, preprocessing of data is required before storing it.

Hadoop
Hadoop is node based flat structure.
Hadoop is used for analytical and for big data processing.
In Hadoop, the storage data can be stored independently in each processing node.
In Hadoop, you don't need to preprocess data before storing it.

33) What is the difference between HDFS and NAS?
HDFS data blocks are distributed across local drives of all machines in a cluster whereas, NAS data is stored on dedicated hardware.

34) What is the difference between Hadoop and other data processing tools?
Hadoop facilitates you to increase or decrease the number of mappers without worrying about the volume of data to be processed.

35) What is distributed cache in Hadoop?
Distributed cache is a facility provided by MapReduce Framework. It is provided to cache files (text, archives etc.) at the time of execution of the job. The Framework copies the necessary files to the slave node before the execution of any task at that node.

36) What commands are used to see all jobs running in the Hadoop cluster and kill a job in LINUX?
Hadoop job - list
Hadoop job - kill jobID

37) What is the functionality of JobTracker in Hadoop? How many instances of a JobTracker run on Hadoop cluster?
JobTracker is a giant service which is used to submit and track MapReduce jobs in Hadoop. Only one JobTracker process runs on any Hadoop cluster. JobTracker runs it within its own JVM process.
Functionalities of JobTracker in Hadoop:
  • When client application submits jobs to the JobTracker, the JobTracker talks to the NameNode to find the location of the data.
  • It locates TaskTracker nodes with available slots for data.
  • It assigns the work to the chosen TaskTracker nodes.
  • The TaskTracker nodes are responsible to notify the JobTracker when a task fails and then JobTracker decides what to do then. It may resubmit the task on another node or it may mark that task to avoid.

38) How JobTracker assign tasks to the TaskTracker?
The TaskTracker periodically sends heartbeat messages to the JobTracker to assure that it is alive. This messages also inform the JobTracker about the number of available slots. This return message updates JobTracker to know about where to schedule task.

39) Is it necessary to write jobs for Hadoop in Java language?
No, There are many ways to deal with non-java codes. HadoopStreaming allows any shell command to be used as a map or reduce function.

40) Which data storage components are used by Hadoop?
HBase data storage component is used by Hadoop.

Cloud Computing Interview Questions


There is given Cloud Computing interview questions and answers that has been asked in many companies. Let's see the list of top Cloud Computing interview questions.

1) What is cloud computing?
Cloud computing is an internet based new age computer technology. It is the next stage technology that uses the clouds to provide the services whenever and wherever the user need it.It provides a method to access several servers world wide.

2) What are the benefits of cloud computing?
The main benefits of cloud computing are:
  • Data backup and storage of data.
  • Powerful server capabilities.
  • Incremented productivity.
  • Very cost effective and time saving.
  • Software as Service known as SaaS.

3) What is a cloud?
A cloud is a combination of networks ,hardware, services, storage, and interfaces that helps in delivering computing as a service. It has three users :
  1. End users
  2. Business management users
  3. cloud service provider

4) What are the different data types used in cloud computing?
There are different data types in cloud computing like emails, contracts, images , blogs etc. As we know that data is increasing day by day so it is needed to new data types to store these new data. For an example, if you want to store video then you need a new data type.

5) Which are the different layers that define cloud architecture?
Following are the different layers that are used by cloud architecture:
  • CLC or Cloud Controller
  • Walrus
  • Cluster Controller
  • SC or Storage Controller
  • NC or Node Controller

6) Which platforms are used for large scale cloud computing?
The following platforms are used for large scale cloud computing:
  • Apache Hadoop
  • MapReduce

7) What are the different layers in cloud computing? Explain working of them.
There are 3 layers in the hierarchy of cloud computing.
Infrastructure as a service (IaaS):It provides cloud infrastructure in terms of hardware as like memory, processor, speed etc.
Platform as a service (PaaS):It provides cloud application platform for the developer.
Software as a service (SaaS)::It provides the cloud applications to users directly without installing anything on the system. These applications remains on cloud.

8) What do you mean by software as a service?
Software As a Service (SaaS) is an important layer of cloud computing. It provides cloud applications like Google is doing. It facilitate users to save their document on the cloud and create as well.

9) What is the platform as a service?
It is also a layer in cloud architecture. This model is built on the infrastructure model and provide resources like computers, storage and network. It is responsible to provide complete virtualization of the infrastructure layer, make it look like a single server and invisible for outside world.

10) What is on-demand functionality? How is it provided in cloud computing?
Cloud computing provides a on-demand access to the virtualized IT resources. It can be used by the subscriber. It uses shared pool to provide configurable resources. Shared pool contains networks, servers, storage, applications and services.

11) What are the platforms used for large scale cloud computing?
Apache Hadoop and MapReduce are the platforms use for large scale cloud computing.

12) What are the different models for deployment in cloud computing?
These are the different deployment model in cloud computing:
Private cloud
Public cloud
Hybrid cloud
Community cloud

13) What is private cloud?
Private clouds are used to keep the strategic operations and other reasons secure. It is a complete platform which is fully functional and can be owned, operated and restricted to only an organization or an industry. Now a day, most of the organizations have moved to private clouds due to security concerns. Virtual private cloud is being used that operate by a hosting company.

14) What is public cloud?
The public clouds are open to the people for use and deployment. For example: Google and Amazon etc. The public clouds focus on a few layers like cloud application, infrastructure providing and providing platform markets.

15) What are Hybrid clouds?
Hybrid clouds are the combination of public clouds and private clouds. It is preferred over both the clouds because it applies most robust approach to implement cloud architecture. It includes the functionalities and features of both the worlds. It allows organizations to create their own cloud and allow them to give the control over to someone else as well.

16) What is the difference between cloud computing and mobile computing?
Mobile computing and cloud computing are slightly same in concept. Mobile computing uses the concept of cloud computing . Cloud computing provides users the data which they required while in mobile computing, applications run on the remote server and gives user the access for storage and manage.

17) What is the difference between scalability and elasticity?
Scalability is a characteristic of cloud computing which is used to handle the increasing workload by increasing in proportion amount of resource capacity. By the use of scalability, the architecture provides on demand resources if the requirement is being raised by the traffic. Whereas, Elasticity is a characteristic which provides the concept of commissioning and decommissioning of large amount of resource capacity dynamically. It is measured by the speed by which the resources are coming on demand and the usage of the resources.

18) What are the security benefits of cloud computing?
Cloud computing authorizes the application service, so it is used in identity management.
It provides permissions to the users so that they can control the access of another user who is entering into the cloud environment.

19) What is the usage of utility computing?
Utility computing is a plug-in managed by an organization which decides what type of services has to be deployed from the cloud. It facilitates users to pay only for what they use.

20) What is "EUCALYPTUS" in cloud computing? Why is it used?
It is an acronym stands for Elastic Utility Computing Architecture For Linking Your Program To Useful Systems. It is an open source software infrastructure in cloud computing and used to implement clusters in cloud computing platform. It creates public, private and hybrid cloud. It facilitate a user to create his own data center into a private cloud and use its functionalities to many other organizations.

21) Explain System integrators in cloud computing.
System integrator provides a strategy of a complicated process used to design a cloud platform. It creates more accurate hybrid and private cloud network because integrator have all the knowledge about the data center creation.

22) What are the open source cloud computing platform databases?
MongoDB, CouchDB, LucidDB are the example of open source cloud computing platform database.

23) Give some example of large cloud provider and databases?
Google bigtable
Amazon simpleDB
Cloud based SQL

24) What is the difference between cloud and traditional datacenters?
The cost of the traditional datacenter is higher than cloud because in traditional databases, there is overheating problems and some software and hardware issue.

25) What are the different in Software as a Service (SaaS)?
Simple Multi-tenancy:In this mode, Every user has independent resources and are uniquely different from other users. This is an efficient mode.
Fine grain multi-tenancy:: In this mode, the resources can be shared by many users but the functionality remains the same.

26) Why API's is used in cloud services?
API's (Application Programming Interfaces) is used in cloud platform because:
It provide an alternative way that you don't need to write the fully fledged program.
It makes communication between one or more applications.
It creates applications and link the cloud services with other systems.

27) What are the advantages of cloud services?
Following are the main advantages of cloud services:
  • Cost saving: It helps in the utilization of investment in the corporate sector. So, it is cost saving.
  • Scalable and Robust: It helps in the developing scalable and robust applications. Previously, the scaling took months, but now, scaling takes less time.
  • Time saving: It helps in saving time in terms of deployment and maintenance.

28) What are the different datacenters in cloud computing?
  1. Containerized datacenter
  2. Low density datacenter

29) What do you mean by CaaS?
CaaS is a terminology used in telecom industry as Communication As a Service. CaaS offers the enterprise user features such as desktop call control, unified messaging and desktop faxing.

30) What do you mean by VPN? What does it contain?
VPN stands for Virtual Private Network. VPN is a private cloud that manage the security of the data during the communication in the cloud environment. With VPN, you can make a public network as private network.

31) What are the basic clouds in cloud computing?
There are three basic clouds in cloud computing:
  1. Professional cloud
  2. Personal cloud
  3. Performance cloud

32) What are the most essential things that must be followed before going for cloud computing platform?
  • Compliance
  • Loss of data
  • Data storage
  • Business continuity
  • Uptime
  • Data integrity in cloud computing

33) Which services are provided by Window azure operating system?
There are three core services provided by Window azure operating system:
  • Compute
  • Storage
  • Management

34) What is the usage of virtualization platform in implementing cloud?
The main usage of virtualization platform in implementing cloud is:
  • It is used to manage the service level policies.
  • Cloud Operating System.
  • Virtualization platforms help to keep the backend level and user level concepts different from each other.

35) We source cloud computing platform databases?
Following are the open source cloud computing platform databases:
  • MongoDB
  • CouchDB
  • LucidDB

36) What are some large cloud providers and databases?
Following are the mostly used large cloud providers and databases:
  • Google bigtable
  • Amazon simpleDB
  • Cloud based SQL

37) How would you secure data for transport in cloud?
This is the most obvious question accurued in mind that if the cloud data is secure; To ensure that, check that there is no data leak with the encryption key implemented with the data you sending while the data moves from point A to point B in cloud.

Android Interview Questions


Android programming is growing day by day. The questions asked by interviewers in android is given below. A list of top android interview questions and answers are given below.

1) What is Android?
Android is an open-source, linux-based operating system that is used in mobiles, tablets, televisions etc.

2) Who is the founder of Android?
Andy Rubin.

3) Explain the Android application Architecture.
Following is a list of components of Android application architecture:
  • Services: Used to perform background functionalities.
  • Intent: Used to perform the inter connection between activities and the data passing mechanism.
  • Resource Externalization: strings and graphics.
  • Notification: light, sound, icon, notification, dialog box and toast.
  • Content Providers: It will share the data between applications.

4) What are the code names of android?
  1. Aestro
  2. Blender
  3. Cupcake
  4. Donut
  5. Eclair
  6. Froyo
  7. Gingerbread
  8. Honycomb
  9. Ice Cream Sandwitch
  10. Jelly Bean
  11. Kitkat
  12. Lollipop
  13. Marshmallow

5) What are the advantages of android?
Open-source: It means no licence, distribution and development fee.
Platform-independent: It supports windows, mac and linux platforms.
Supports various technologies: It supports camera, bluetooth, wifi, speech, EDGE etc. technologies.
Highly optimized Virtual Machine: Android uses highly optimized virtual machine for mobile devices, called DVM (Dalvik Virtual Machine).

6) Does android support other language than java?
Yes, android app can be developed in C/C++ also using android NDK (Native Development Kit). It makes the performance faster. It should be used with android SDK.

7) What are the core building blocks of android?
The core building blocks of android are:
  • Activity
  • View
  • Intent
  • Service
  • Content Provider
  • Fragment etc.

8) What is activity?
Activity is like a frame or window in java that represents GUI. It represents one screen of android.

9) What are the life cycle methods of android activity?
There are 7 life-cycle methods of activity. They are as follows:
  1. onCreate()
  2. onStart()
  3. onResume()
  4. onPause()
  5. onStop()
  6. onRestart()
  7. onDestroy()


10) What is intent?
It is a kind of message or information that is passed to the components. It is used to launch an activity, display a web page, send sms, send email etc. There are two types of intents in android:
  1. Implicit Intent
  2. Explicit Intent

11) What is implicit intent in android?
Implicit intent is used to invoke the system components.

12) What is explicit intent in android?
Explicit intent is used to invoke the activity class.

13) How to call another activity in android?

  1. Intent i = new Intent(getApplicationContext(), ActivityTwo.class);  
  2. startActivity(i);  

14) What is service in android?
A service is a component that runs in the background. It is used to play music, handle network transaction etc.

15) What is the name of database used in android?
SQLite: An opensource and lightweight relational database for mobile devices.

16) What is AAPT?
AAPT is an acronym for android asset packaging tool. It handles the packaging process.

17) What is content provider?
Content providers are used to share information between android applications.

18) What is fragment?
Fragment is a part of Activity. By the help of fragments, we can display multiple screens on one activity.

19) What is ADB?
ADB stands for Android Debug Bridge. It is a command line tool that is used to communicate with the emulator instance.

20) What is NDK?
NDK stands for Native Development Kit. By using NDK, you can develop a part of app using native language such as C/C++ to boost the performance.

21) What is ANR?
ANR stands for Application Not Responding. It is a dialog box that appears if the application is no longer responding.

22) What is the Google Android SDK?
The Google Android SDK is a toolset which is used by developers to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment and allow them to test and debug their codes.

23) What is an APK format?
APK is a short form stands for Android Packaging Key. It is a compressed key with classes,UI's, supportive assets and manifest. All files are compressed to a single file is called APK.

24) Which language does Android support to develop an application?
Android applications are written by using the java (Android SDK) and C/C++ (Android NDK).

25) What is ADT in Android?
ADT stands for Android Development Tool. It is used to develop the applications and test the applications.

26) What is View Group in Android?
View Group is a collection of views and other child views. It is an invisible part and the base class for layouts.

27) What is Adapter in Android?
An adapter is used to create a child view to present the parent view items.

28) What is nine-patch images tool in Android?
We can change bitmap images in nine sections as four corners, four edges and an axis.

29) Which kernel is used in Android?
Android is customized Linux 3.6 kernel.

30) What is application Widgets in Android?
Application widgets are miniature application views that can be embedded in other applications and receive periodic updates.

31) Which types of flags are used to run an application on Android?
Following are two types of flags to run an application in Android:
  • FLAG_ACTIVITY_NEW_TASK
  • FLAG_ACTIVITY_CLEAR_TOP

32) What is singleton class in Android?
A singleton class is a class which can create only an object that can be shared all other classes.

33) What is sleep mode in Android?
In sleep mode, CPU is slept and doesn't accept any commands from android device except Radio interface layer and alarm.

34) What do you mean by a drawable folder in Android?
In Android, a drawable folder is compiled visual resource that can use as a backgrounds, banners, icons, splash screen etc.

35) What is DDMS?
DDMS stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features:
  1. Port forwarding services
  2. Screen capture
  3. Thread and heap information
  4. Network traffic tracking
  5. Location data spoofing

36) Define Android Architecture?
Android architecture consists of 4 components:
  1. Linux Kernal
  2. Libraries
  3. Android Framework
  4. Android Applications

37) What is a portable wi-fi hotspot?
The portable wi-fi hotspot is used to share internet connection to other wireless devices.

38) Name the dialog box which are supported by android?
  • Alert Dialog
  • Progress Dialog
  • Date Picker Dialog
  • Time picker Dialog

39) Name some exceptions in android?
  • Inflate Exception
  • Surface.OutOfResourceException
  • SurfaceHolder.BadSurfaceTypeException
  • WindowManager.BadTokenException

40) What are the basic tools used to develop an android app?
  • JDK
  • Eclipse+ADT plugin
  • SDK Tools

CCNA Interview Questions


A list of top frequently asked CCNA interview questions and answers are given below.

1) What is the difference between switch and hub?
Switch
Switches are used at data link layer.
Switches create separate collision domain and a single broadcast domain.
Address learning
Forward/filter decision using mac address.

Hub
Hubs are used at physical layer.
Hubs create single collision domain and a single broadcast domain.
No addressing.
No filtering.

2) What is the difference between Switch and Router?

Switch
Switch is a device that filters and forwards packets between LAN segments.
Switches are used at data link layer or sometimes the network layer of OSI model and support any packet protocol.
Switches contains multiple collision domains and have a single broadcast domain.

Router
Router is a device that forwards data packets along network.
A router is connected to at least two networks, commonly two LANs or WANs and its ISPs network.
In network, a router can have at least two broadcast domains.

3) What are the advantages of using Switches?
Switches are used to receive a signal and create a frame out of the bits from that signal. The signals enable you to get access and read the destination address and after reading that it forward that frame to appropriate frame. So, switches are very important part of transmission.

4) What is Routing?
Routing is a process of finding a path to transfer data from source to destination.

5) What are Routers?
The process of routing is done by the devices known as Routers. Routers are the network layer devices.

6) What is the advantage of VLAN?
VLAN facilitates you to create a collision domain by groups other than just physical location while in conventional LAN domains are always tied to physical location.

7) What is HDLC?
HDLC stands for High Level Data Link Control protocol. It is property protocol of Cisco which is the default encapsulation operated with Cisco routers.

8) What are the advantages of LAN switching?
Following are the main advantages of LAN switching:
  • It allows full duplex data transmission and reception.
  • Media rate adaption.
  • Easy and efficient migration.

9) What is DLCI?
DLCI stands for Data Link Connection Identifiers. These are normally assigned by a frame relay service provider in order to uniquely identify each virtual circuit that exists on the network.

10) What are the different types of networks?
These are the two major types of networks:
  • Peer-to-Peer Network
  • Server-based Network

11) What is the difference between private IP and public IP?
Public IP is used across internet while private IP is used within the local LAN.

12) What is the difference among straight cable, cross cable and rollover cable?
Straight cable: Straight cable is used to connect different group devices. For example: Switch- Router.
Cross cable: Cross cable is used to connect same group devices. For example: Switch-Switch.
Rollover cable: Rollover cable is used to connect console port to computer.

13) What is the difference between tracert and traceroute?
Both tracert and traceroute commands are used to do the same work. The only diffence is that traceroute command is used on a router or switch while the tracert command is used on pc.

14) Explain the terms Unicast, Multicast, Broadcast and Multicast.
  • Unicast: It specifies one to one communication.
  • Multicast: It specifies one to a group communication.
  • Broadcast: It specifies one to all communication.
  • Multicast: It specifies one to nearest communication.

15) What is the difference between cross cable and straight cable?
Cross cables are used to connect same group devices while straight cables are used to connect different group devices.
For example: If you want to connect one PC to another PC, you have to use cross cable while, to connect one switch to a router, you have to use straight cable.

16) What is the difference between static IP addressing and dynamic IP addressing?
  • Static IP addresses are reserved and they don't change over time while dynamic IP addresses can be changed each time you connect to the internet.
  • Static IP addresses are given manually while dynamic IP addresses are provided by DHCP server.

17) What is the difference between CSMA/CD and CSMA/CA?
CSMA/CD stands for Carrier Sense Multiple Access with Collision Detection. It is a media access control method used in local area networking using early Ethernet technology to overcome the occurred collision.
CSMA/CA stands for Carrier Sense Multiple Access with Collision Avoidance. It is used in wireless network to avoid collision.

18) What is the purpose of Data Link Layer?
The main purpose of data link layer is to check that whether messages are sent to the right devices. Another function of data link layer is framing.

19) What is VLAN?
VLAN stands for Virtual Local Area Network.

20) What is subnet? Why is it used?
Subnets are used in IP network to break up larger network into smaller network. It is used to optimize the performance of network because it reduces traffic by breaking the larger network into smaller networks. It is also used to identify and isolate network's problem and simplify them.

21) What is the difference between communication and transmission?
Communication is a process of sending and receiving data by an externally connected data cable whereas transmission is a process of sending data from source to destination.

22) What is Topology in CCNA?
Topology is an arrangement of various elements (links, nodes etc.) of computer network in a specific order. These are the different types of topology used in CCNA:
  • Bus
  • Star
  • Ring
  • Mesh
  • Tree
  • Hybrid etc.

23) What is the passive topology in CCNA?
When the topology enables the computers on the network only to simply listen and receive the signals, it is known as passive topology because they don't amplify the signals any way.

24) What is RAID in CCNA?
RAID is a method which is used to standardize and categorize fault-tolerant disk systems. RAID levels provide various facilities like performance, cost, reliability etc. These three are the mostly used RAID levels:
  • Level 0: (Striping)
  • Level 1: (Mirroring)
  • Level 5: (Striping and Parity)

25) What is the point-to-point protocol in CCNA?
Point-to-point protocol is an industry standard suite of protocols which uses point-to-point link to transport multiprotocol datagram.

26) What are the possible ways of data transmission in CCNA?
These are the three possible ways of data transmission:
  • Simplex
  • Half-duplex
  • Full-duplex

27) What are the protocol data units (PDU) in CCNA?
Protocol data units (PDU) are the minimum possible units used at different layers of the OSI model to transport data.
Layers PDU
Transport Segments
Network Packets/Datagrams
Data-link Frames
Physical Bits

28) What is the difference between RIP and IGRP?
RIP depends on number of hops to determine the best route to the network while, IGRP considers many factors before decides the best route to take i.e. bandwidth, reliability, MTU and hops count.

29) What are the different memories used in a CISCO router?
Three types of memories are used in a CISCO router:
  • NVRAM: It is used to store the startup configuration file.
  • DRAM: It stores the configuration file that is being executed.
  • Flash Memory: It is used to store the system IOS.

30) What is the difference between full-duplex and half-duplex?
Although both are the communication devices and both are used to transmit and receive data but full-duplex facilitate you to transmit and receive data at the same time while half-duplex cannot receive while it is transmitting data.

31) What is BootP?
BootP is a short form of Boot Program. It is a protocol that is used to boot diskless workstation connected to the network. BootP is also used by diskless workstations to determine its own IP address and also the IP addresses of server PC.

32) What is a Frame Relay?
Frame Relay is used to provide connection oriented communication by creating and maintaining virtual circuits. It is a WAN protocol that is operated at the Data Link and physical layer to maintain high performance rating.

33) What is Latency?
Latency is the amount of time delay. It is measured as the time difference between at the point of time when a network receives the data and the time it is sent by another network.

34) What is MAC address?
MAC address stands for Media Access Control address. This is an address of a device which is identified as the Media Access Control Layer in the network architecture. The MAC address is unique and usually stored in ROM.

35) What is the difference between ARP and RARP?
ARP stands for Address Resolution Protocol. ARP is a protocol that is used to map an IP address to a physical machine address.
RAPR stands for Reverse Address Resolution Protocol. RARP is a protocol that is used to map a MAC address to IP address.

36) What is the size of an IP address?
The size for IPv4 is 32 bits and 128 bits for IPv6.

37) What is Ping? What is the usage of Ping?
PING stands for Packet Internet Groper. It is computer network tool which is used to test whether a particular host is reachable across an IP address or not.

38) What is checksum?
Checksum is a simple error detection scheme in which each transmitted message is accompanied by a numerical value based on the number of set bits in the message.

39) What are the different types of password used in securing a Cisco router?
There are five types of passwords can be set on a Cisco router:
  • Consol
  • Aux
  • VTY
  • Enable Password
  • Enable Secret

40) What is the usage of Service Password Encryption?
Service Password Encryption command is used to encrypt all passwords on your router to hide from your running config.