Top L Programmer Telephone Interview Questions Alongside Answers

It's 2015 instantly in addition to from terminal few years, telephone interviews also known equally the telephonic circular is the unmarried most pop way to covert candidates inwards a programming undertaking interview. It's slow for both parties to guess each other, candidate doesn't demand to move to perspective Employer's premises in addition to Interviewer also doesn't demand to brand whatever necessary arrangement. This is the minute portion of my article on programming interview questions, inwards the first part, I got feedback that it is a lilliputian fleck heavy on coding based questions in addition to many programmers asked me to portion similar listing for the telephonic circular of programming Interviews. In companionship to clear telephonic circular in addition to maintain to side past times side round, you lot must endure skilful plenty to reply all the questions related to your Job description.

In most of the telephone interviews for Java or C++ developer, you lot volition non only detect questions from respective programming linguistic communication but also from other technology e.g. SQL, XML, UNIX, General Programming, Object oriented programming, Data Structure in addition to Algorithm, Networking, Coding in addition to other areas of work. Because of this vast nature of telephone circular of programming undertaking interview, you lot demand to come upward up amongst a special strategy to nowadays yourself inwards a way Interviewer is expecting.

One of the most of import things to remember, piece answering questions on telephone interview is to cry key points early on in addition to ever give to the betoken answer. Since most interviewers similar to comprehend lots of topics to covert the candidate, they unremarkably similar to the betoken answers rather than blah blah in addition to OK I know the stuff, you lot volition acquire your adventure to explicate things inwards deep inwards the human face upward to human face upward interview. BTW, this is non the difficult in addition to fast dominion in addition to you lot tin genuinely sympathize what interviewer is expecting from you lot past times noting his response to your answers. If he asks follow-up or expects you lot to beak to a greater extent than than acquire ahead, but it rapidly jumps to side past times side inquiry thence endure clear in addition to concise.


In this article, I am sharing you lot about popular in addition to interesting programming questions peculiarly tailored for telephone interviews. Most of them are genuinely from the telephonic circular of diverse tech companies including banks similar Barclays, Citi, Nomura, in addition to diverse service  based companies similar Infosys, TCS, CTS, Tech Mahindra in addition to HCL.

As I mentioned earlier questions are randomly picked from diverse theme but by in addition to large based upon fundamentals because that is what Interviewer essay on telephone interviews. Though these questions by in addition to large for less experienced developer e.g. 2 to 5 years, Senior, in addition to experienced programmers tin also usage these for their interview purpose.

If you lot are seriously preparing for Job interviews, I also advise you lot accept a appear at either Programming Interviews Exposed past times Wrox  or Cracking the code Interview, 2 of the skilful books I have got constitute for preparing whatever programming undertaking interviews. First i is my favorite in addition to I have got read it almost vii years back, but nevertheless it's quite relevant because of an first-class explanation of information construction in addition to algorithm questions.




If you lot are an interviewer, you lot tin also usage these inquiry to rapidly covert candidate for evolution positions. I have got provided the brusk reply hither in addition to pointer for to a greater extent than detailed answer.



Top 50 Programming Questions for Telephonic Interviews

Here is a listing of almost 50 questions from telephone circular of programming undertaking interviews. These questions are skilful for whatever programmers, developers, software engineer, QA in addition to back upward engineer because they are based upon fundamentals of programming, but most suited for programmers in addition to developers. BTW, If you lot are Java developer in addition to looking for Java Questions for Phone interviews, cheque out that list. This listing is to a greater extent than full general in addition to applicable for all programmers including Python, Ruby, Perl in addition to C# developers.

 telephone interviews also known equally the telephonic circular is the unmarried most pop way to scr Top 50 Programmer Phone Interview Questions amongst Answers


1. How much fourth dimension does it accept to retrieve an chemical factor if stored inwards HashMap, Binary tree, in addition to a Linked list? how it modify if you lot have got millions of records?
In HashMap it takes O(1) time, inwards the binary tree it takes O(logN) where northward is a reveal of nodes inwards the tree in addition to inwards linked listing it takes O(n) time where n is a reveal of chemical factor inwards the list. Millions of records don't deport upon the performance if the information construction is working equally expected e.g. HashMap has no or relatively less reveal of collision or binary tree is balanced. If that's non the instance thence their performance degrades equally a reveal of records grows.


2. What is the departure betwixt Overriding in addition to Overloading? (detailed answer)
Overriding is resolved at runtime piece overloading is compile time. Also, rules of overriding in addition to overloading are different, for illustration inwards Java, method signature of the overloaded method must endure unlike than master copy method, but inwards the instance of overriding it must endure precisely same equally an overriding method.



3. What is the departure betwixt forking a procedure in addition to spawning a thread? 
When you lot fork a process, the novel procedure volition run the same code equally raise procedure but inwards unlike retention space, but when you lot spawn a novel thread inwards existing process, it simply creates about other independent path of execution but portion same retention space.


4. What is a critical section? (answer)
H5N1 critical subdivision is the portion of a code, which is really of import in addition to inwards multi-threading must endure entirely modified past times whatever thread. Semaphore or mutex is used to protect critical section. In Java, you lot tin usage synchronized keyword or ReentrantLock to protect a critical section.


5. What is the departure betwixt a value type in addition to a reference type? (answer)
H5N1 value type is a to a greater extent than optimized type in addition to ever immutable e.g. primitive int, long, double in addition to float inwards Java piece a reference type points to an object, which tin endure mutable or Immutable. You tin also say that value type points to a value piece reference type points to an object.


6. What is heap in addition to stack inwards a process? (detailed answer)
They are 2 dissever areas of retention inwards the same process. Talking nigh Java, the stack is used to shop primitive values in addition to reference type to object but actual object is ever created inwards heap. One critical departure betwixt heap in addition to stack is that heap retention is shared past times all threads but each thread has their ain stack.


7. What is revision/version control? (answer)
Version command is software which is used to shop code in addition to cope versions of codebase e.g. SVN, CVS, Git, Perforce, in addition to ClearCase. They are really effective piece comparison code, reviewing code in addition to creating a build from previous stable version. All professional person evolution usage about sort of revision or version command tool, without them, you lot cannot cope code effectively, peculiarly if twenty developers are working on same code base of operations at the same time. Version command tool plays really of import role to maintain code base of operations consistent in addition to resolving code conflicts.


8. What is a strongly typed programming language? (answer)
In a strongly typed linguistic communication compiler ensure type correctness, for example, you lot tin non shop the reveal inwards String or vice-versa. Java is a strongly typed language, that's why you lot have got unlike information types e.g. intfloatStringcharboolean etc. You tin only shop compatible values inwards respective types. On the other hand, weakly typed linguistic communication don't enforce type checking at compile fourth dimension in addition to they tree values based upon context. Python in addition to Perl are 2 pop illustration of weakly typed programming language, where you lot tin shop a numeric string inwards reveal type.


9. Can you lot depict the departure betwixt valid in addition to well-formed XML?
H5N1 well-formed XML is the i which has root chemical factor in addition to all tags are unopen properly, attributes are defined properly, their value is also quoted properly. On about other hand, a valid XML is the i which tin endure validated against an XSD file or schema. So it's possible for an XML to endure well-formed but non valid because they incorporate tags which may non endure allowed past times their schema.


10. What is the departure betwixt DOM in addition to SAX parser? (detailed answer)
DOM parser is an in-memory parser thence it loads whole XML file inwards retention in addition to exercise a DOM tree to parse. SAX parser is an trial based parser, thence it parses XML document based on the trial received e.g. opening tag, closing tag, the start of attribute or halt of the attribute. Because of their working methodology, DOM parser is non suitable for large XML file equally they volition accept a lot of infinite inwards retention in addition to your procedure may run out of memory, SAX is the i which should endure used to parse large files. For minor files, DOM is unremarkably much faster than SAX.



11. What is the human relationship betwixt threads in addition to processes? (detailed answer)
H5N1 procedure tin have got multiple threads but a thread ever belongs to a unmarried process. Two processes cannot portion retention infinite until they are purposefully doing inter-process communication via shared retention but 2 threads from the same procedure ever portion the same memory.


12. What is Immutable shape mean? (detailed answer)
H5N1 shape is said to endure Immutable if its solid set down cannot endure changed i time created, for example, String inwards Java is immutable. Once you lot exercise a String say "Java", you lot cannot modify its content. Any modification inwards this string e.g. converting into upper case,  c oncatenating amongst about other String volition outcome inwards the novel object. An immutable object is really useful for concurrent programming because they tin endure shared betwixt multiple threads without worrying nigh synchronization. In fact, the whole model of functional programming is built on top of Immutable objects.


13. Why would you lot ever desire to exercise a mock object? (answer)
H5N1 mock object is really useful to essay an private unit of measurement inwards your Software, inwards fact, stub in addition to mocks a are a powerful tool for creating automated unit of measurement tests. Suppose you lot write a computer program to display currency conversion rates but you lot don't have got a URL to connect to, instantly if you lot desire to essay your code, you lot tin usage mock objects. In Java world, in that location are a lot of frameworks which tin exercise powerful mock objects for you lot e.g. Mockito and PowerMock.


14. What is SQL injection?
SQL injection is a safety vulnerability which allows an intruder to pocket information from the system. Any scheme which takes input from the user in addition to creates SQL query without validating or sanitizing that input is vulnerable to SQL injection. In such system, an intruder tin inject SQL code instead of information to retrieve to a greater extent than than expected data. There are many instances on which sensitive information e.g. user id, password, in addition to personal details are stolen past times exploiting this vulnerability. In Java, you lot tin avoid SQL injection past times using Prepared statement.


15. What is the departure betwixt an inner bring together in addition to a left bring together inwards SQL? (answer)
In SQL, in that location are mainly 2 types of joins, inner join, in addition to outer join. Again outer joins tin endure 2 types right in addition to left outer join. The chief departure betwixt inner bring together in addition to left bring together is that inwards the instance of one-time only matching records from both tables are selected piece inwards the instance of left join, all records from left tabular array are selected inwards add-on to matching records from both tables. Always lookout adult man out for queries which have got "all" inwards it, they unremarkably require left bring together e.g. to write SQL query to detect all departments in addition to a reveal of employees on it. If you lot usage inner bring together to solve this query, you lot volition girlfriend empty departments where no i works.



16. What does the V inwards MVC stand upward for, in addition to what does it signify? (answer)
V stands for View inwards MVC pattern. The stance is what user sees e.g. spider web pages. This is a really of import designing pattern of spider web evolution which is based upon segregation of concern thence that each expanse tin endure modified without impacting other areas. In Java world, in that location are lots of opened upward source framework which provides an implementation of MVC pattern e.g. Struts 2 in addition to Spring MVC. By the way, grand stands the for model in addition to C stands the for controller. Modes are actual line of piece of work organization objects e.g. User, Employee, Order; piece the controller is used for the routing asking to right processor.


17. What is the departure betwixt a shape in addition to an object? (detailed answer)
H5N1 shape is a designing on which objects are created. H5N1 shape has code in addition to demeanor but an object has both the solid set down in addition to behavior. You cannot exercise an object without creating a shape to stand upward for its structure. The shape is also used to map an object inwards memory, inwards Java, JVM does that for you.


18. What is loose-coupling?
Loose coupling is a desirable lineament of software, which allows i portion of the software to modify without affecting about other portion of the software. For example, inwards a loosely coupled software, a modify inwards UI layout should non deport upon the back-end shape structure.


19. What is the departure betwixt composition, aggregation, in addition to association? (detailed answer)
Association way 2 objects are related to each other but tin be without each other, Composition is a shape of association where i object is composed of multiple objects, but they only exists together e.g. human trunk is the composition of organs, private organs cannot alive they only useful inwards the body. Aggregation is a collection of object e.g. metropolis is an aggregation of citizens.


20. What is the departure betwixt an interface in addition to an abstract class? (detailed answer)
This is the most classical inquiry of all programming interviews. An interface is the purest shape of abstraction amongst zilch concrete inwards house piece an abstract shape is a combination of about abstraction in addition to concrete things. The departure may vary depending upon linguistic communication e.g. inwards Java you lot tin extend multiple interface but you lot tin only extend on the abstract class. For a to a greater extent than comprehensive intelligence meet the detailed answer.


21. What is unit of measurement testing? (answer)
Unit testing is a way to essay private unit of measurement for their functionality instead of testing whole application. There are a lot of tools to exercise the unit of measurement testing inwards unlike programming linguistic communication e.g. inwards Java, you lot tin use JUnit or TestNG to write unit of measurement tests. It is frequently run automatically during the build procedure or inwards a continuous surroundings similar Jenkins.



22. Can you lot depict 3 unlike kinds of testing that mightiness endure performed on an application earlier it goes live?
unit of measurement testing, integration testing in addition to smoke testing. Unit testing is used to essay private units to verify whether they are working equally expected, integration testing is done to verify whether individually tested module tin piece of work together or non in addition to smoke testing is a way to essay whether most mutual functionality of software is working properly or non e.g. inwards a flying booking website, you lot should endure able to book, cancel or modify flights.


23. What is the departure betwixt iteration in addition to recursion? (detailed answer)
Iteration uses a loop to perform the same measurement over again in addition to over again piece recursion calls the business office itself to exercise the repetitive task. Many times recursion outcome inwards a clear in addition to concise solution to complex occupation e.g. tower of Hanoi, reversing a linked listing or reversing a String itself. One drawback of recursion is depth  since recursion stores intermediate outcome inwards the stack you lot tin only acquire upward to a certainly depth, after that your computer program volition buy the farm with StackOverFlowError, this is why iteration is preferred over recursion inwards production code.


24. What is departure betwixt & in addition to && operator? (detailed answer)
& is a bitwise operator piece && is a logical operator. One departure between & and && is that bitwise operator (&) tin endure applied to both integer in addition to boolean but logical operator (&&) tin only endure applied to boolean variables. When you lot exercise a & b thence AND operator is applied to each fleck of both integer number, piece inwards the instance of a && b, the minute declaration may or may non endure evaluated, that's why it is also known equally brusk circuit operator, at to the lowest degree inwards Java. I similar this inquiry in addition to frequently asked it to junior or developer in addition to college graduates.


25. What is the outcome of 1 XOR 1?
The reply is null because XOR returns 1 if 2 operands are distinct in addition to null if 2 operands are same, for example, 0 XOR 0 is also zero, but 0 XOR 1 or 1 XOR 0 is ever 1.


26. How exercise you lot acquire the terminal digit of an integer? (answer)
By using modulus operator, reveal % 10 returns the terminal digit of the number, for example, 2345%10 will render 5 and 567%10 will render 7.  Similarly, partitioning operator tin endure used to acquire rid of the terminal digit of  a reveal e.g. 2345/10 volition give 234 in addition to 567/10 volition render 56. This is an of import technique to know in addition to useful to solve problems similar reveal palindrome or reversing numbers.


27. What is test-driven development?
Test driven is i of the pop evolution methodologies inwards which tests are written earlier writing whatever business office code. In fact, essay drives the construction of your program. Purists never wrote a unmarried line of application code without writing a essay for that. It greatly amend code lineament in addition to frequently attributed equally a lineament of rockstar developers.


28. What is the Liskov exchange principle? (answer)
Liskov exchange regulation is i of the v regulation introduced past times Uncle Bob equally SOLID designing principles. It's the 'L' inwards SOLID. Liskov exchange regulation asserts that every subtype should endure able to piece of work equally the proxy for raise type. For example, if a method except object of Parent shape thence it should piece of work equally expected if you lot overstep an object of the Child class. Any shape which cannot stand upward inwards house of its raise violate LSP or Liskov exchange principle. This is genuinely a tough inquiry to reply in addition to if you lot exercise that you lot halt upward amongst creating a skilful impression on interviewers mind.


29. What is the Open unopen designing principle? (answer)
Open unopen is about other regulation from SOLID, which asserts that a scheme should endure opened upward for extension but closes for modification. Which way if a novel functionality is required inwards a stable scheme thence your tried in addition to tested code should non endure touched in addition to novel functionality should endure provided past times adding novel classes only. 


30. What is the departure betwixt a binary tree in addition to a binary search tree?
Binary search tree is an ordered binary tree, where the value of all nodes inwards the left tree are less than or equal to node in addition to values of all nodes inwards right subtree is greater than or equal to the node (e.g. root). It's an of import information construction in addition to tin endure used to stand upward for a sorted structure.



31. Can you lot give a practical illustration of a recursive algorithm? (example)
There are lots of places where recursive algorithm fits e.g. algorithm related to binary in addition to linked list. H5N1 dyad of examples of a recursive algorithm is reversing String in addition to calculating Fibonacci series. Other examples include reversing linked list, tree traversal, in addition to quick sort algorithm. 


31. What is fourth dimension complexity of an algorithm?
Time complexity specifies the ratio of fourth dimension to the input. It shows how much fourth dimension an algorithm volition accept to consummate for a given reveal of input. It's approximated valued but plenty to give you lot an indication that how your algorithm volition perform if the reveal of input is increased from 10 to 10 million?


32. What are about of import differences betwixt a linked listing in addition to an array? (detailed answer)
linked listing in addition to array are 2 of the most of import information construction inwards the programming world. The most pregnant departure betwixt them is that array stores its chemical factor at the contiguous location piece linked listing stores its information anywhere inwards memory. This gives linked listing enormous flexibility to expand itself because retention is ever scattered. It's ever possible that you lot wouldn't endure able to exercise an array to shop 1M integers but tin exercise past times using linked listing because infinite is available but non equally contiguous chunk. All other differences are the outcome of this fact. For example, you lot tin search an chemical factor inwards array amongst O(1) fourth dimension if you lot know the index but searching volition accept O(n) fourth dimension inwards linked list. For to a greater extent than differences meet the detailed answer.


33. What is a dyad of ways to resolve collision inwards the hash table? 
linear probing, double hashing, in addition to chaining. In linear probing, if the bucket is already occupied thence business office cheque side past times side bucket linearly until it finds an empty one, piece inwards chaining, multiple elements are stored inwards same bucket location.


34. What is a regular expression? (answer)
H5N1 regular appear is a way to perform pattern matching on text data. It's really powerful tool to detect something e.g. about grapheme inwards a long string e.g. finding if a mass contains about intelligence or not. Almost all major programming linguistic communication supports regular appear but Perl has been renowned for its enormous capability. Java also supports Perl-like regular appear using java.util.regex package. You tin usage the regular appear to cheque if an e-mail is valid or not, if a telephone reveal is valid, or if a zip code is valid, or fifty-fifty an SSN reveal is valid or not. One of the simplest examples of the regular appear is to cheque if a String is a reveal or not.


35. What is a stateless system?
H5N1 stateless scheme is a scheme which doesn't maintain whatever internal state. Such scheme volition attain the same output for same input at whatever betoken of time. It's ever easier to code in addition to optimize a stateless system, thence you lot should ever strive for i if possible.


36. Write SQL query to detect minute highest salary inwards employee table? (solution)
This is i of the classic questions from SQL interviews, the trial it's quite old it is nevertheless interesting in addition to has lots of follow-ups you lot tin usage to cheque the depth of candidate's knowledge. You tin detect minute highest salary past times using the correlated in addition to non-correlated subquery. You tin also usage keyword's similar TOP or LIMIT if you lot are using SQL Server or MySQL, given Interviewer allows you. The simplest way to detect 2d highest salary is following:

SELECT MAX(Salary) FROM Employee WHERE Salary NOT IN (SELECT MAX(Salary) FROM Employee)

This query start finds maximum salary in addition to thence exclude that from the listing in addition to over again finds maximum salary. Obviously minute time, it would endure minute highest salary.


37. Can you lot depict the departure betwixt correlated in addition to non-correlated subquery? (answer)
In correlated sub-query, inner query depends upon the outer query in addition to executes for each row inwards the outer query. While non-correlated subquery doesn't depend upon the outer query in addition to tin endure executed independently. Due to this argue one-time is deadening in addition to after is fast. BTW, correlated subquery has about prissy application, i of them is finding Nth highest salary inwards Employee table, equally seen on previous SQL inquiry equally well.



39. How exercise you lot detect if a reveal is a powerfulness of two, without using arithmetics operator? (solution)
Assume it's a inquiry of using the bitwise operator equally shortly equally you lot listen restriction nigh non allowed to usage arithmetics operator. If that restriction is non inwards house thence you lot tin easily cheque if a reveal is a powerfulness of 2 past times using modulus in addition to partitioning operator. By the using bitwise operator, in that location is a prissy flim-flam to exercise this.  You tin usage next code to cheque if a reveal if powerfulness of 2 or not

public static boolean powerOfTwo(int x) {         return (x & (x - 1)) == 0; }

x & (x-1) is a prissy flim-flam to convert right most fleck to null if it's on, I learned from hackers delight book.


40. How exercise you lot detect a  running Java procedure on UNIX? (command)
You tin usage the combination of 'ps' and 'grep' command to detect whatever procedure running on UNIX machine. Suppose your Java procedure has a cry or whatever text which you lot tin usage to tally against simply usage next command.

ps -ef | grep "myJavaApp"

ps -e will listing every procedure i.e. procedure from all user non simply you lot in addition to  ps -f will give you lot total details including PID, which volition endure required if you lot desire to investigate to a greater extent than or would similar to kill this procedure using kill command.


41. How exercise you lot detect large files inwards UNIX  e.g. to a greater extent than than 1GB? (command)
You tin easily detect large files past times using detect command because it provides an pick to search files based upon their size. Use this if your file scheme is total in addition to your Java procedure is crashing amongst no to a greater extent than space. This command volition listing all files which are to a greater extent than than 1GB. You tin tweak the size easily e.g. to detect all files amongst to a greater extent than than 100 MB simply use +100M.

find . - type f -size +1G -print


42. What is the rhythm out script?
H5N1 rhythm out script is laid of rhythm out commands amongst about programming constructs e.g. if in addition to for loop, which permit you lot to automate about repetitive task. For example, you lot tin write a rhythm out script to the daily cleanup of logs files,  for backing upward information for historical usage in addition to for other housekeeping jobs, releases, in addition to monitoring.


Further Learning
The Coding Interview Bootcamp: Algorithms + Data Structures
Data Structures in addition to Algorithms: Deep Dive Using Java
read here)
  • 15 Data Structure in addition to Algorithm questions for Software developers (see here)
  • 10 Interview Questions Every Developer Should Know (read more)
  • 20 Core Java Question from Programmers for 2 to 3 years experienced (check here)
  • 21 SQL Query Interview Questions amongst Answers (read more)
  • 23 Tricky Questions for Java Programmers  (read here)
  • 10 XML Interview Questions for Programmers (see here)
  • 50 Multithreading in addition to Concurrency Questions from Java Interviews (check here)
  • 20 Software designing Questions from Programming Interviews (read more)
  • 18 Java Design Pattern Interview questions. (see here)

  • Thanks for reading this far, If you lot similar this article in addition to constitute it useful for your telephonic interviews, delight portion amongst your friends in addition to colleges.  Any feedback to amend the lineament of interview questions volition endure highly appreciated.



    0 Response to "Top L Programmer Telephone Interview Questions Alongside Answers"

    Post a Comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel