A lot of students preparing for campus placements are always in a dilemma on how and where to prepare for a technical interview/programming test. This article gives you an exhaustive list of programming questions you need to solve as a fresher/beginner. Solving these will help you understand how to logically arrive at a solution for any programming challenge. java
This exhaustive list of questions were collected from students who have attended their on-campus and off-campus placements during the year 2018-2019. We often take it for granted to solve some of the most easy questions. But it is a fact that companies like Microsoft also include a few easy questions to test the candidates.python
Practicing questions from this exhaustive list will help you clear the recruitment process of a companies like Wipro, Cognizant, TCS, Mindtree, IBM, Amdocs, HCL etc. git
Knowing control statements in and out is the first step towards getting your hands on C programming. Control statements like if, for, while, do-while, switch case etc form the fundamentals of C programming. An exclusive list of problems related to these concepts are given below.express
Permutations in which n people can occupy r seats in a theatre
Number of times digit 3 occurs in each and every number from 0 to n
Strings is another basic concept in C programming. A string is nothing but data with data type as char. Some of the must solve programs involving strings are:
Capitalize the first and last letter of each word of a string
Check if two strings match where one string contains wildcard characters
An array is the next most fundamental concept of C. Arrays also used in data structures and algorithms. An array is a data structure that stores elements at a contiguous memory location. This is the one of the most popular, easy and tricky concepts in programming and hence most interviewer would certainly prefer questions candidates on such topics.
The major advantage of an array is that it performs the search operation with O(1) complexity. But adding and removing is comparatively slower. Here are some of the popular array-based coding and interview questions for your practice:
Basic array operations (Insert, delete and search an element)
Sort an array according to the order defined by another array
Longest subarray having an average greater than or equal to k
Matrix operations (Addition, subtraction and multiplication)
Maximum size of square submatrix with all 1’s in a binary matrix
Interviewers generally tend to ask questions which might include more than one concept. One such important type of questions is pattern printing. Over the years, this has become a constant question type asked in a lot of coding rounds. Here are some most asked pattern printing programs for your reference and practice.