Get me outta here!

Tuesday 31 May 2016

15 Toughest Interview Questions and Answers!


1. Why do you want to work in this industry? 


Bad answer:

“I love to shop. Even as a kid, I spent hours flipping through catalogues.” 


Don’t just say you like it. Anyone can do that. Focus instead on your history with that particular industry, and if you can, tell a success story.


Good answer:

“I’ve always loved shopping, but my interest in retail marketing really started when I worked at a neighborhood boutique. I knew our clothes were amazing, but that we weren’t marketing them properly. 

So I worked with management to come up with a marketing strategy that increased our sales by 25% in a year. It was great to be able to contribute positively to an industry I feel so passionate about, and to help promote a product I really believed in.” 



2. Tell us about yourself.

Bad answer:


“I graduated four years ago from the University of Michigan, with a Bachelor’s in Biology – but I decided that wasn’t the right path for me. So I switched gears and got my first job, working in sales for a startup. 

Then I went on to work in marketing for a law firm. After that, I took a few months off to travel. Finally, I came back and worked in marketing again. And now, here I am, looking for a more challenging marketing role.” 

Instead of giving a chronological work history, focus on your strengths and how they pertain to the role. If possible, illustrate with examples.


Good answer:



“I’m really energetic, and a great communicator. Working insales for two years helped me build confidence, and taught me the importance of customer loyalty. I’ve also got a track record of success. In my last role, 

I launched a company newsletter, which helped us build on our existing relationships and create new ones. Because of this, we ended up seeing a revenue increase of 10% over two years. 

I’m also really interested in how companies can use web tools to better market themselves, and would be committed to building on your existing platform.” 



3. What do you think of your previous boss? 

Bad answer:


“He was completely incompetent, and a nightmare to work with, which is why I’ve moved on” Remember: if you get the job, the person interviewing you will some day be your previous boss

The last thing they want is to hire someone who they know is going to badmouth them some day. Instead of trashing your former employer, stay positive, and focus on what you learned from him (no matter how awful he really was).



Good answer:

“My last boss taught me the importance of time management – he didn’t pull any punches, and was extremely deadline-driven. His no-nonsense attitude pushed me to work harder, and to meet deadlines I never even thought 

were possible.” 

4. Why are you leaving your current role? 

Bad answer:

“I can’t stand my boss, or the work I’m doing.” Again, stay away from badmouthing your job or employer. Focus on the positive.

Good answer:

“I’ve learned a lot from my current role, but now I’m looking for a new challenge, to broaden my horizons and to gain a new skill-set – all of which, I see the potential for in this job.” 


5. Where do you see yourself in five years? 


Bad answer:


“Relaxing on a beach in Maui,” or “Doing yourjob.” There’s really no right answer to this question,but the interviewer wants to know that you’re ambitious, career-oriented, and committedto a future with the company. 

So instead of sharing your dream for early retirement, or trying to be funny, give them an answer that illustrates your drive and commitment. 

Good answer:


“In five years I’d like to have an even better understanding of this industry. Also, I really love working with people. Ultimately, I’d like to be in some type of managerial role at this company, where I can use my people skills and industry knowledge to benefit the people working for me, and the company as a whole." 



6. What’s your greatest weakness? 


Bad answer:


“I work too hard,” or for the comedian, “Blondes.” This question is a great opportunity to put a positive spin on something negative, but you don’t want your answer to be cliché – joking ornot. Instead, try to use a real example of a weakness you have learned to overcome. 


Good answer:


“I’ve never been very comfortable withpublic speaking – which as you know, can be a hindrance in the workplace. Realizing this was a problem, I asked my previous employerif I could enroll in a speech workshop. He said “yes.” 

took the class, and was able to overcome my lifelong fear. Since then, I’ve given lots of presentations to audiences of over a 100 high level executives – I still don’t love it, but no one else can tell!” 



7. What salary are you looking for?


Bad answer: 


“In my last job I earned $35,000 – so, now I’m looking for $40,000” 

If you can avoid it, don’t give an exact number. The first person to name a price in a salary negotiation loses. Instead, re-iterate your commitment to the job itself. If you have to, give a broad range based on research you’ve conducted on that particular role, in your particular city. 

Good answer: 


“I’m more interested in the role itself than the pay. That said, I’d expect to be paid the appropriate range for this role, based on my five years of experience. I also think a fair salary would bear in mind the high cost of living here 

in New York City.” 

8. Why should I hire you? 


Bad answer:


“I’m the best candidate for the role.” 
A good answer will reiterate your qualifications, and will highlight what makes you unique.

Good answer:


“I’ve been an Executive Assistant for the past ten years – my boss has said time and time again that without me, the organization would fall apart. I’ve also taken the time to educate myself on some of the software I regularly use (but didn’t really understand the ins and outs of). 

I’m an Excel wiz now, which means I can work faster, and take over some of what my boss would traditionally have had to do himself. What’s good enough for most people is never really good enough for me.” 


9. What is your greatest failure, and what did you learn from it? 

Bad answer:


I never finished law school – and everything that’s happened since has taught me that giving up, just because the going gets tough, is a huge mistake.” You don’t want to actually highlight a major regret – especially one that exposes an overall dissatisfaction with your life. Instead, focus on a smaller,but significant, mishap, and how it has made you a better professional.

Good answer:


“When I was in college, I took an art class to supplement my curriculum. I didn’t take it very seriously, and assumed that, compared to my Engineering classes, it would be a walk in the park. My failing grades at midterm showed me otherwise. I’d even jeopardized my scholarship status. 

I knew I had to get my act together. I spent the rest of the semester making up for it, ended up getting a decent grade in the class. I learned that no matter what I’m doing, I should strive to do it to the best of my ability. Otherwise, it’s not worth doing at all.” 



10. How do you explain your gap in employment? 


Bad answer:


"I was so tired of working, and I needed a break,” or “I just can’t find a job.” 

Employment gaps are always tough to explain. You don’t want to come across as lazy or unhireable. Find a way to make your extended unemployment seemlike a choice you made, based on the right reasons.


Good answer:

“My work is important to me, so I won’t be satisfied with any old job. Instead of rushing to accept the first thing that comes my way, I’m taking my time and being selective to make sure my next role is the right one." 



11. When were you most satisfied in your job? 


Bad answer:


"I was most satisfied when I did well, and got praised for my work.” 
Don’t give vague answers. Instead, think about something you did well – and enjoyed –that will be relevant at this new job. This is anopportunity for you to share your interests, prove that you’re a great fit for the job and showcase your enthusiasm.

Good answer:


“I’m a people person. I was always happiest – and most satisfied – when I was interacting with customers, making sure I was able to meet their needs and giving them the best possible customer experience. 

It was my favorite part of the job, and it showed – I was rated as “Good or Excellent” 95% of the time. Part of the reason I’m interested in this job is that I know I’d have even more interaction with customers, on an even more critical level." 


12. What did you like least about your last job? 

Bad answer:



"A lack of stability. I felt like the place could collapse around me at any time.” 

Try and stay away from anything that draws on the politics, culture or financial health of ]your previous employer. No matter how true it might be, comments like these will be construed as too negative. 

Also, you don’t wantto focus on a function that might be your responsibility in the next role. So think of something you disliked in your last job, but that you know for sure won’t be part of this new role.


Good answer:


“There was nothing about my last job that I hated, but I guess there were some things I liked less than others. My previous role involved traveling at least twice a month. While I do love to travel, twice a month was a little exhausting – I didn’t like spending quite so much time out of the office. I’m happy to see that this role involves a lot less travel.” 


13. Describe a time when you did not get along with a coworker. 


Bad answer:


"I’m easy to get along with, so I’ve never had any kind of discord with another coworker.” Interviewers don’t like these types of “easy out” answers. And besides, they know you are probably not telling the truth. Think of a relatively benign (but significant) instance, and spin it to be a positive learning experience.

Good answer:


“I used to lock heads with a fellow nurse in the INCU ward. We disagreed over a lot of things – from the care of patients to who got what shifts to how to speak with a child’s family. Our personalities just didn’t mesh. After three months of arguing, I pulled her aside and asked her to lunch. 

At lunch, we talked about our differences and why we weren’t getting along. It turns out, it was all about communication. We communicated differently and once we knew that, we began to work well together. I really believe that talking a problem through with someone can help solve any issue.” 

14. What motivates you?


Bad answer:


"Doing a good job and being rewarded for it.” 
It’s not that this answer is wrong – it’s just that it wastes an opportunity. This question is practically begging you to highlight your positive attributes. So don’t give a vague, generic response – it tells them very little about you. Instead, try and use this question as an opportunity to give the interviewer some insight into your character, and use examples where possible. 

Good answer:


“I’ve always been motivated by the challenge of meeting a tough deadline – in my last role, I was responsible for a 100% success rate in terms of delivering our products on time and within budget. I know that this job is very fastpaced, and deadline-driven – I’m more than up for the challenge. In fact, I thrive on it.” 


15. How would your friends describe you? 

Bad answer:


"I’m a really good listener.” 

While being a good listener is a great personality trait, your employer probably doesn’t care all that much. It’s unlikely that they’re hiring you to be a shoulder to cry on. You’ll want to keep your answer relevant to the job you’re inter viewing for – and as specific as possible. If you can, insert an example. 

Good answer:

“My friends would probably say that I’m extremely persistent – I’ve never been afraid to keep going back until I get what I want. When I worked as a program developer, recruiting keynote speakers for a major tech conference, I got one rejection after another – this was just the nature of the job. 

But I really wanted the big players – so I wouldn’t take no for an answer. I kept going back to them every time there was a new company on board, or some new value proposition. Eventually, many of them actually said “yes” – the program turned out to be so great that we doubled our attendees from the year before. 

A lot of people might have given up after the first rejection, but it’s just not in my nature. If I know something is possible, I have to keep trying until I get it.” 

Wednesday 25 May 2016

Android Interview Questions & Answers

1) What is Android?
It is an open-sourced operating system that is used primarily on mobile devices, such as cell phones and tablets. It is a Linux kernel-based system that’s been equipped with rich components that allows developers to create and run apps that can perform both basic and advanced functions.
2) What Is the Google Android SDK?
The Google Android SDK is a toolset that developers need in order to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment, allowing them to test and debug their codes.
3) What is the Android Architecture?
Android Architecture is made up of 4 key components:
– Linux Kernel
– Libraries
– Android Framework
– Android Applications
4) Describe the Android Framework.
The Android Framework is an important aspect of the Android Architecture. Here you can find all the classes and methods that developers would need in order to write applications on the Android environment.
5) What is AAPT?
AAPT is short for Android Asset Packaging Tool. This tool provides developers with the ability to deal with zip-compatible archives, which includes creating, extracting as well as viewing its contents.
6) What is the importance of having an emulator within the Android environment?
The emulator lets developers “play” around an interface that acts as if it were an actual mobile device. They can write and test codes, and even debug. Emulators are a safe place for testing codes especially if it is in the early design phase.
7) What is the use of an activityCreator?
An activityCreator is the first step towards the creation of a new Android project. It is made up of a shell script that will be used to create new file system structure necessary for writing codes within the Android IDE.
8 ) Describe Activities.
Activities are what you refer to as the window to a user interface. Just as you create windows in order to display output or to ask for an input in the form of dialog boxes, activities play the same role, though it may not always be in the form of a user interface.
9) What are Intents?
Intents displays notification messages to the user from within the Android enabled device. It can be used to alert the user of a particular state that occurred. Users can be made to respond to intents.
10) Differentiate Activities from Services.
Activities can be closed, or terminated anytime the user wishes. On the other hand, services are designed to run behind the scenes, and can act independently. Most services run continuously, regardless of whether there are certain or no activities being executed.
11) What items are important in every Android project?
These are the essential items that are present each time an Android project is created:
– AndroidManifest.xml
– build.xml
bin/
src/
res/
assets/
12) What is the importance of XML-based layouts?
The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.
13) What are containers?
Containers, as the name itself implies, holds objects and widgets together, depending on which specific items are needed and in what particular arrangement that is wanted. Containers may hold labels, fields, buttons, or even child containers, as examples.
14) What is Orientation?
Orientation, which can be set using setOrientation(), dictates if the LinearLayout is represented as a row or as a column. Values are set as either HORIZONTAL or VERTICAL.
15) What is the importance of Android in the mobile market?
Developers can write and register apps that will specifically run under the Android environment. This means that every mobile device that is Android enabled will be able to support and run these apps. With the growing popularity of Android mobile devices, developers can take advantage of this trend by creating and uploading their apps on the Android Market for distribution to anyone who wants to download it.
16) What do you think are some disadvantages of Android?
Given that Android is an open-source platform, and the fact that different Android operating systems have been released on different mobile devices, there’s no clear cut policy to how applications can adapt with various OS versions and upgrades. One app that runs on this particular version of Android OS may or may not run on another version. Another disadvantage is that since mobile devices such as phones and tabs come in different sizes and forms, it poses a challenge for developers to create apps that can adjust correctly to the right screen size and other varying features and specs.
17) What is adb?
Adb is short for Android Debug Bridge. It allows developers the power to execute remote shell commands. Its basic function is to allow and control communication towards and from the emulator port.
18) What are the four essential states of an activity?
– Active – if the activity is at the foreground
– Paused – if the activity is at the background and still visible
– Stopped – if the activity is not visible and therefore is hidden or obscured by another activity
– Destroyed – when the activity process is killed or completed terminated
19) What is ANR?
ANR is short for Application Not Responding. This is actually a dialog that appears to the user whenever an application have been unresponsive for a long period of time.
20) Which elements can occur only once and must be present?
Among the different elements, the and elements must be present and can occur only once. The rest are optional, and can occur as many times as needed.
21) How are escape characters used as attribute?
Escape characters are preceded by double backslashes. For example, a newline character is created using ‘\n’
22) What is the importance of settings permissions in app development?
Permissions allow certain restrictions to be imposed primarily to protect data and code. Without these, codes could be compromised, resulting to defects in functionality.
23) What is the function of an intent filter?
Because every component needs to indicate which intents they can respond to, intent filters are used to filter out intents that these components are willing to receive. One or more intent filters are possible, depending on the services and activities that is going to make use of it.
24) Enumerate the three key loops when monitoring an activity
– Entire lifetime – activity happens between onCreate and onDestroy
– Visible lifetime – activity happens between onStart and onStop
– Foreground lifetime – activity happens between onResume and onPause
25) When is the onStop() method invoked?
A call to onStop method happens when an activity is no longer visible to the user, either because another activity has taken over or if in front of that activity.
26) Is there a case wherein other qualifiers in multiple resources take precedence over locale?
Yes, there are actually instances wherein some qualifiers can take precedence over locale. There are two known exceptions, which are the MCC (mobile country code) and MNC (mobile network code) qualifiers.
27) What are the different states wherein a process is based?
There are 4 possible states:
foreground activity
visible activity
background activity
empty process
28) How can the ANR be prevented?
One technique that prevents the Android system from concluding a code that has been responsive for a long period of time is to create a child thread. Within the child thread, most of the actual workings of the codes can be placed, so that the main thread runs with minimal periods of unresponsive times.
29) What role does Dalvik play in Android development?
Dalvik serves as a virtual machine, and it is where every Android application runs. Through Dalvik, a device is able to execute multiple virtual machines efficiently through better memory management.
30) What is the AndroidManifest.xml?
This file is essential in every application. It is declared in the root directory and contains information about the application that the Android system must know before the codes can be executed.
31) What is the proper way of setting up an Android-powered device for app development?
The following are steps to be followed prior to actual application development in an Android-powered device:
-Declare your application as “debuggable” in your Android Manifest.
-Turn on “USB Debugging” on your device.
-Set up your system to detect your device.
32) Enumerate the steps in creating a bounded service through AIDL.
1. create the .aidl file, which defines the programming interface
2. implement the interface, which involves extending the inner abstract Stub class as well as implanting its methods.
3. expose the interface, which involves implementing the service to the clients.
33) What is the importance of Default Resources?
When default resources, which contain default strings and files, are not present, an error will occur and the app will not run. Resources are placed in specially named subdirectories under the project res/ directory.
34) When dealing with multiple resources, which one takes precedence?
Assuming that all of these multiple resources are able to match the configuration of a device, the ‘locale’ qualifier almost always takes the highest precedence over the others.
35) When does ANR occur?
The ANR dialog is displayed to the user based on two possible conditions. One is when there is no response to an input event within 5 seconds, and the other is when a broadcast receiver is not done executing within 10 seconds.
36) What is AIDL?
AIDL, or Android Interface Definition Language, handles the interface requirements between a client and a service so both can communicate at the same level through interprocess communication or IPC. This process involves breaking down objects into primitives that Android can understand. This part is required simply because a process cannot access the memory of the other process.
37) What data types are supported by AIDL?
AIDL has support for the following data types:
-string
-charSequence
-List
-Map
-all native Java data types like int,long, char and Boolean
38) What is a Fragment?
A fragment is a part or portion of an activity. It is modular in a sense that you can move around or combine with other fragments in a single activity. Fragments are also reusable.
39) What is a visible activity?
A visible activity is one that sits behind a foreground dialog. It is actually visible to the user, but not necessarily being in the foreground itself.
40) When is the best time to kill a foreground activity?
The foreground activity, being the most important among the other states, is only killed or terminated as a last resort, especially if it is already consuming too much memory. When a memory paging state has been reach by a foreground activity, then it is killed so that the user interface can retain its responsiveness to the user.
41) Is it possible to use or add a fragment without using a user interface?
Yes, it is possible to do that, such as when you want to create a background behavior for a particular activity. You can do this by using add(Fragment,string) method to add a fragment from the activity.
42) How do you remove icons and widgets from the main screen of the Android device?
To remove an icon or shortcut, press and hold that icon. You then drag it downwards to the lower part of the screen where a remove button appears.
43) What are the core components under the Android application architecture?
There are 5 key components under the Android application architecture:
– services
– intent
– resource externalization
– notifications
– content providers
44) What composes a typical Android application project?
A project under Android development, upon compilation, becomes an .apk file. This apk file format is actually made up of the AndroidManifest.xml file, application code, resource files, and other related files.
45) What is a Sticky Intent?
A Sticky Intent is a broadcast from sendStickyBroadcast() method such that the intent floats around even after the broadcast, allowing others to collect data from it.
46) Do all mobile phones support the latest Android operating system?
Some Android-powered phone allows you to upgrade to the higher Android operating system version. However, not all upgrades would allow you to get the latest version. It depends largely on the capability and specs of the phone, whether it can support the newer features available under the latest Android version.
47) What is portable wi-fi hotspot?
Portable Wi-Fi Hotspot allows you to share your mobile internet connection to other wireless device. For example, using your Android-powered phone as a Wi-Fi Hotspot, you can use your laptop to connect to the Internet using that access point.
48) What is an action?
In Android development, an action is what the intent sender wants to do or expected to get as a response. Most application functionality is based on the intended action.
49) What is the difference between a regular bitmap and a nine-patch image?
In general, a Nine-patch image allows resizing that can be used as background or other image size requirements for the target device. The Nine-patch refers to the way you can resize the image: 4 corners that are unscaled, 4 edges that are scaled in 1 axis, and the middle one that can be scaled into both axes.
50) What language is supported by Android for application development?
The main language supported is Java programming language. Java is the most popular language for app development, which makes it ideal even for new Android developers to quickly learn to create and deploy applications in the Android environment.