Which type of question is asked in a job interview for programming?

To sort the array of strings containing alphabetical values or to check whether the strings are anagram of not.

Some of the most common questions asked in Technical Interviews are :

  1. Algorithm to find the second largest number from array.
  2. To find the second largest value from a SQL Database.
  3. To map a data structure (generally Queues and Linked Lists)
  4. Generics in languages.
  5. Logical operator questions like “What is the output of -1++&&0++||++(-1)

If they take your written test about programming then generally two types of questions are asked :

  1. To print patterns like flip7, pyramid, N or any other shape on screen using aestrik (*).
  2. Questions related to Strings like : To sort the array of strings containing alphabetical values or to check whether the strings are anagram of not.