Software developer Interview Questions in India | Glassdoor.co.in

# Software developer Interview Questions in India

94,557

software developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Software Engineer at IBM was asked...

23 Apr 2010
 Puzzle: How do you weight an elephant without using a weigh machine?37 AnswersUse a pool -> calculate the volume of water of the pool and the water level, put the elephant in the pool, take note of the level after the elephant after it is in the pool. By Archimedes principle, the volume of water dislocated is the same as the weight. So the weight of the elephant is the same as the difference in water volume.Not quite. The volume of the water is not the same as the weight of the elephant. You'd have to estimate the density of an elephant and multiply that by the volume of the water to get the mass, then multiply that by the acceleration due to gravity in water system (SI, English Customary, etc.) you're using. Luckily, mammals are mostly water (humans are around 70% water on average), so about 2/3 of the weight of the elephant would be equivalent to the weight of the water displaced. So you would have to estimate how dense the rest of the elephant is (since it'd be minerals and such, I'd say it's more dense than water) and follow the steps described above.Apply a known force to the elephant and measure the acceleration. Use physics to deduce the mass.Show more responsesAs it is not specified that the International System of Units must be used, define the Elephant unit (E) as the weight of your elephant. Your elephant then weights exactly 1E.Kyle I have to disagree with you. According to Buoyancy principle: Any object, wholly or partially immersed in a fluid, is buoyed up by a force equal to the weight of the fluid displaced by the object. So if you calculate the displaced fluid weight, which is quite easy in water as it is very close or equal to 1kg/L, you can get very close to the real weight of the elephant.Hmm, I think Kyle is right... and so are you when you say "Any object, wholly or partially immersed in a fluid, is buoyed up by a force equal to the weight of the fluid displaced by the object". IMHO elephants don't float...Actually Kyle is right. If we put something in the water, such as an sealed box with a ten pound weight inside (does not float), it will displace a proportionate amount of water. However, if we fill it up with a 50 pound weight, the same amount of water will be displaced, however. Fernando, you are using the Buoyancy principle. The Buoyancy principle is meant for objects that float (hence the word buoyancy-it means pressure to keep afloat). As Wouzz said, elephants don't float.You could just put a boat in water, measure displacement. Then put the elephant in the boat and take the difference. The displacement is going to equal mass as long as it's floating so you're good in a boat. Kyle was right that if you just threw an elephant in a pool, you would have you figure out density and all that.I would say bring a female elephant and let them enjoy life..Isn't that just an improvised "weighing machine"?it sounds like you all are trying to determine whether an elephant is a witch (Monty Python reference). Instead of dealing with the whole mess of a wet elephant, why not use other pneumatic tools like an inflatable platform, an air pump, and a pressure sensor. See how much air pressure is required to lift the elephant.My experience is this, you don't have to have a perfectly correct answer. The goal of the question is to see if you can think around a problem. Besides elephants, I have heard 747's and aircraft carriers used as the object. A good answer shows that you thought of an alternate way of measurement, so the water displacement and pressure sensor ideas work. PS, if they ask you to weigh a 747, I would answer "Land it on an aircraft carrier and measure the additional water displacement!"I would use a see saw to weight my elephant. Using my weight (212 lbs in work wear), move the elephant until we balance, and then compare my distance to the pivot point to Clancy's distance to the pivot. (I named my elephant Clancy). The hardest part... finding a see saw strong enough to hold Clancy.Show more responsesArchimedes Law of the Lever states: Magnitudes are in equilibrium at distances reciprocally proportional to their weights. "Give me a place to stand on, and I will move the Earth."Elephants DO float, even in fresh water. They're blubbery.Simple answer : Use a beam balance . Put elephant on one side and start throwing weights on the other side . When the beam is balanced you got the weight of the elephant equal to the sum of weights on the other !Just ask him...Just find a person having a bad day and weigh him/her, help that person feel better, then weigh him/her again. The difference is the weight of the elephant you removed off his/her back. Works for monkeys too.one "weight"(s) by putting a weight on itnote that the answer above is referenced to the question on THIS page which has been transcribed wrongly from the "home page" question (the "t" has been added)I would ask if it was an Indian elephant or an African elephant.I would solicit bids and then sub-contract the task to a reputable, cost-effective elephant weight service vendor, and let THEM decide the best approach.They can use a weigh machine or use any other method that does not require ME to use a weigh machine. The question (and answer) are no different than any other variation of, "How do you accomplish a task when you don't have the needed resources?"by using first clas lever. keep an elephant at known distance from the fulcrum; make the effort distance long enough that your weight balances the weight of an elephant; by using the formula load*load distance = effor*effortdistance( principle of lever) you already know load distance, effort distance and effort now you can calculate load, which is nothing but elephan'ts weightShow more responsesBy using the momentum conservation law, First I find a heavy enough object mith exact mass of m1 and then throw it with speed V1 to the elephant which is standing on a friction-less surface like ice or on plate with wheels under it to reduce the friction. after they meet, the elephant will move. and the object will change its direction and speed. Then I calculate the speed and direction of elephant and reflecting object, and finally I solve the vector equation below: m.v1=m.v2+M.V v1=vector of initial speed of object v2=vector of final speed of object M=elephant mass V=vector of elephant speedelevate the elephant to height "h". it will have potential energy of "U=mgh". hurl the elephant into a well which is vacumed well to avoid friction. at the end of the well, there is a pool of water with exact mass of " m' " and temprature of T1. after elephant reaches the pool he will give all of his energy to water causing water to become warmer Q=U. so mgh=m'c(T2-T1) with knowing g,h,m',c,T1 and T2 m can be calculated easily.place elephant on an iron plate and move it horizontally with steady speed v. and pass them through a constant magnetic field of B. change B untill the elephant start to move upward. read B and V. F=V x B is the force of magnetic field ( x denotes vector multiplication) which is now equal to weght force W=mg. knowing g the gravity constant, solve m.use SEE SAW put elephant on one side and on other side some men when it get balanced weighs the menPossible answers: 1. Zero. Take the elephant to space. The weight = 0. 2. I can guess it to around 150 kg ( there is fat person who lives next door and we call him an elephant his weight is 150 kg)I got asked this question. But the water displacement has gotten old. They prompted me for another answer. I said you measure the elephant and find out its volume in cubic meters. Then weigh its leg and measure it. Lets say the leg weighs 20 kgs and has a volume of 20 cubic metres. Then, each cubic metre weighs 1 kg. So if the total volume of elephant is 350 cubic meters, it will weigh 300 cubic metres.Take heavy weight gym dumbells keep start hanging with the one end of the rope an the other end to elephant and the rope goes over the pully,keep adding weight till elephant gets liftedesimate the answer to certain range and put it on a boat and if the boat shrinks it is more than the estimate weight else less else use F=MA forumula apply certain force and the calculate acceleration and then massOK guys i take a boat which can carry more than a load of an elephant i keep the elephant in that boat [ there fore designed load = load of elephant+ X load] i will add some more load by boarding some swimmers one by one into boat if it starts sinking it means it reached designed load [designed loadBy allowing him to sit on usShow more responsesFernando,Your answer is really very wierd. First of all: rise in level of water will be equal to elephant's volume not weight. There is a vast difference in volume and weight. Second: if you think that you will estimate it's density to calculate it's weight then it will be a wierd thing because you will never be able to guess it right. Third: rise in level of water of pool will indicate the volume of submerged part of elephant and not whole elephant. If you think that you will submerge whole elephant then obviously you are killing it .So your answer is scientifically and economically wrong. I might suggest that you should take a help of a strong boat to determine elephant weight. take the boat in water and elephant on the boat.the boat will obviously sink a little.mark the level. now get elephant off the boat and put some weights on the boat till it reaches same level. now measure the weights and you will get the weight of elephant THANK YOUby counting the elephant letters, 8 letters is the answer.You don’t need a weigh machine to weight the elephant. The elephant is the weightCheck the elephant has ever been weighed in near past and rely on that data

### Junior Software Engineer at EPAM was asked...

17 Apr 2018
 tell me about yourself36 AnswersHello, can you tell what type of questions they asked in 2nd coding round?Shortest path algorithm and implement a class that implements the interface and write all the methods as per their specification and reach all test cases .And what about the mcq questions?Show more responsesThey are a combination of databases , java , operating system, networking etccan you tell me about the detailed description of coding round 2 please it will help me a lot.Round 2 contains two coding questions and 10 mcqs. Mcqs based on core subjects of computer science and those two coding questions will be of level 3 - level 4 in difficulty . implementing the interfaces using inheritance , or sorting some data with some constraints , collections , algorithms implementation like shortest path , merge sort techniques etc .thanx, a lot for your time :)No mention , if you have the link of round 1, just send it to me .what are they asked in technical interview?Mostly on java typical questions about constructors, main method , oops concepts and collections and some advanced concepts like cloning , memory allocation and JVM architecture .tqwhat sites or materials are to be followed to crack can u tell usI am not sure about these online sites, its better you go and solve the previous questions of different companies only on java. That might help u a lot ....Show more responsesthanks for your quick responsewhat types of questions did they ask in 1 round?Hello, Is it necessary to code in java language?Because it has mentioned that first round is online coding on java and second round is online coding on javaFirst round u can code in your own language... But i suggest to write in java and ...second round is mandatory to write in java.hello,is second round an elimination round? Thank you !Hello, I see that you have already mentioned the questions asked in the second round, but I didn't really get the whole picture. would you please tell me which sections to focus on in the second round and for the technical part. do they ask questions on anything apart from core java and data structure? also, how is the company(assuming you joined)?what type of questions are given in coding round 1?what type of questions are given in coding round 1?there will be three programming questions,first one was displaying the particular array element whose index will be given input,but we need to use exceptional handling. the second question was finding repeated letter in a given word along with its count, and the third one was extracting string within given xml tags,ex:
hai
your output should be hai.2 nd round coding programs were on real time statements or not?Show more responsesCan you tell me what type of question answer is asked?second round coding are mostly in graphs and we will have a class diagram and need to implement code for that class diagram. one question was on list of records and we should display the particular record based on a search string they give as input.what will be the cut off criteria for clearing coding round 2? what areas are needed to be focused in order to clear the round 2?After how much time did you receive your joining letter/offer letter when you got selected. Actually i was also selected in the recent drive in July but haven't received the joining letter/offer letter although I have submitted all the docs they asked for.? Please answer i am quite nervous about my selection.Congratulations and Don't worry, you will get your offer ..it will take quite some time ...Thanks a lot for answering. I was not expecting anyone to reply but you did. ThanksHello Duraivel, check your mail please.In second round how many coding questions will be der?In the first round I cleared two out of three questions will all test cases passed. I got 50/100. Can anybody tell me what are my chances for the second round?.Show more responsesI got 58 in first round...will i qualify for second round?Hey, can I know if I am eligible for the second round? In the first round I got 95.5 out of 100(only one test case in 2nd question went wrong and rest all are correct). Also, can you please tell me how did you prepare for your second round(Because you mentioned that there will be a class diagram given and we have to implement it in java and also some graph questions). So how did you prepare for such questions? and also what about GD, is it moderate? What topics are generally asked(is it on current affairs or general topics)? In techincal interview is it ok if we have good logical skills and know concepts of OOPS thoroughly? This would help me a lot if get a response, I will soon start preparing so I wanted to know where to start and how to start.@Vyshnavi you must have cleared the first round. Have you already attended the drive or not? how was it? I will be attending on 2nd Aug. Please do answer One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.

### Software Engineer at Josh Technology Group was asked...

16 Feb 2016
 write a program in c/c++/java to print the pattern 1 2*2 3*3*3 4*4*4*4 4*4*4*4 3*3*3 2*2 134 Answers#include int main() { int i,j,n; scanf("%d",&n); for(i=1;i=1;i--) { for(j=1;j<=i;j++) { printf("%d",i); if(jhi atul your answer is wrong it only printing 1 infinite time. i was able to solve that problem in exam and my program was working for all the test cases.#include void printPattern(int n) { int i,j; for(i=1;i=1;i--) { j=1; if(i==0) printf("%d",i); else { printf("%d",i); while(jShow more responses#include int main() { int n; int i, j; for(i = 1;i = 1;i--) { for(j = 1; j <= i; j++ ) { printf("%d",i); if(j!=i) { printf("*"); } } printf("\n"); } }#include int main() { int n; int i, j; for(i = 1;i = 1;i--) { for(j = 1; j <= i; j++ ) { printf("%d",i); if(j!=i) { printf("*"); } } printf("\n"); } }public class JavaApplication4 { public static void main(String[] args) { // TODO code application logic here for(int i = 1; i 0) { System.out.print("*"); } } System.out.println(); } for(int i = 4; i >= 1; i--){ for(int j =1; j 0) { System.out.print("*"); } } System.out.println(); } } }#include void printPattren(int n); int main(){ int n; scanf("%d", &n); printPattren(n); return 0; } void printPattren(int n){ int i, j; for(i = 1; i = 1; i--){ j = 1; printf("%d", i); while(j < i){ printf("*"); printf("%d", i); j++; } printf("\n"); } }#include void printPattren(int n); int main(){ int n; scanf("%d", &n); printPattren(n); return 0; } void printPattren(int n){ int i, j; for(i = 1; i = 1; i--){ j = 1; printf("%d", i); while(j < i){ printf("*"); printf("%d", i); j++; } printf("\n"); } }this code is running successfully and giving the output #include int main(void) { // your code goes here int i,j,k=0,l; for(i=1;i=1;i--) { l=i; for(j=1;j<=i;j++) { printf("%d",i); if(k#include int main(void) { // your code goes here int i,j,k=0,l; for(i=1;i=1;i--) { l=i; for(j=1;j<=i;j++) { printf("%d",i); if(kthere is a problem that only half of my code is getting displayedimport java.util.*; public class qus1 { public static void main(String argc[]) { int i,j; int n; Scanner sc=new Scanner(System.in); System.out.print("Enter value of n : "); n=sc.nextInt(); for(i=1;i=1;i--) { for(j=i;j>=1;j--) { if(j==1) System.out.print(i); else System.out.print(i+"*"); } System.out.println(); } } }import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String [] args) throws Exception{ int i , j , k=1 , n; BufferedReader bufferedReader= new BufferedReader(new InputStreamReader(System.in)); n=Integer.parseInt(bufferedReader.readLine()); for (i=1;i<=n*2;i++){ if (i<=n) { for (j = 1; j <= i * 2 - 1; j++) { if (j % 2 == 0) { System.out.print("*"); } else { System.out.print("" + i); } } } else { for (j = 1; j <= 2*(i-k)-1; j++) { if (j % 2 == 0) { System.out.print("*"); } else { System.out.print("" + (i-k)); } } k+=2; } System.out.println(""); } } }Show more responses#include void print_pattern(int); int main() { int n; scanf("%d",&n); print_pattern(n); return 0; } void print_pattern(int n) { for(int i=1;i0;i--) { for(int j=1;j<=i;j++) { if(i==1) { printf("%d",i); } else { printf("%d",i); if(j!=i) { printf("*"); } } } printf("\n"); } }#include void print_pattern(int); int main() { int n; scanf("%d",&n); print_pattern(n); return 0; } void print_pattern(int n) { for(int i=1;i0;i--) { for(int j=1;j<=i;j++) { if(i==1) { printf("%d",i); } else { printf("%d",i); if(j!=i) { printf("*"); } } } printf("\n"); } }#include int main() { // your code goes here int i,j,k=0,l; for(i=1;i1&&j=1;i--) { for(j=1;j1&&j#include //THIS CODE WORKS void main() { int i,n; for (n=1;n=1;n--) { for(i=1;i<=n;i++) { printf("%d",n); if(i!=n) printf("*"); else printf("\n"); }} }for(int i = 1;i0;i--) { for(int j=0;j#include int main() { int i,j,k; k=0; for(i=1;i=1;i--) { for(j=(i+k);j>=1;j--) { if(j%2==0) printf("*"); else printf("%d",i); } k--; printf("\n"); } return 0; }#include int main() { int i,j,k; k=0; for(i=1;i=1;i--) { for(j=(i+k);j>=1;j--) { if(j%2==0) printf("*"); else printf("%d",i); } k--; printf("\n"); } return 0; }//THIS IS VERIFIED AND CORRECT CODE import java.util.Scanner; public class MyClass { public static void main(String[] args) { int i,j; int n; Scanner sc=new Scanner(System.in); System.out.print("Enter value of n : "); n=sc.nextInt(); for(i=1;i=1;i--) { for(j=i;j>=1;j--) { while(j>1){ System.out.print(i+"*"); j--; } System.out.print(i); } System.out.println(); } }//THE SAME CODE IN C #include void main(){ int n; printf ("Enter the value of n"); scan ("%d",&n); void printPattern(n); } void printPattern(int k){ int i,j; for(i=1;i=1;i--) { for(j=i;j>=1;j--) { while(j>1) { printf ("%d",i); printf ("*"); j--; } printf ("%d",i); } printf ("\n"); }//Pattern Solution import java.util.*; import java.lang.*; import java.io.*; class Pattern { public static void main (String[] args) throws java.lang.Exception { for(int j=1;j=1;k--) { for(int l=1;l<=k;l++) { if(l==1) System.out.print(k); else System.out.print("*"+k); } System.out.println(); } }}Show more responsesAll codes are giving wrong output *** this is the correct one***** #include int main(void) { int i,j; for(i=1;i=1;i--){ for(j=1;j<=(i*2)-1;j++){ if(j%2==0){ printf("*");} else{printf("%d",i);} } printf("\n"); } return 0; }#include int main(void) { int i,j; for(i=1;i=1;i--){ for(j=1;j<=(i*2)-1;j++){ if(j%2==0){ printf("*");} else{printf("%d",i);} } printf("\n"); } return 0; }int main() { int i, j, rows, k, x; printf("Enter number of rows: "); scanf("%d",&rows); for(i=1; i 0; i--) { k = i - 1; for(j = 1; j <= i; j++) { printf("%d", i); if(k != 0 && j != i) { printf("*"); } } printf("\n"); } return 0; }int main() { int i, j, rows, k, x; printf("Enter number of rows: "); scanf("%d",&rows); for(i=1; i 0; i--) { k = i - 1; for(j = 1; j <= i; j++) { printf("%d", i); if(k != 0 && j != i) { printf("*"); } } printf("\n"); } return 0; }there is problem in the interface of this website, complete answer is not getting pasted#n is the maximum number which would occur in the pattern. n = int(input()) for i in range(1,n+1): s = [] for j in range(i-1): s.append(str(i)) s.append('*') s.append(str(i)) print(''.join(s)) for i in range(n, 0, -1): s = [] for j in range(i-1): s.append(str(i)) s.append('*') s.append(str(i)) print(''.join(s))#include #include void main() { int i,j,k; for(i=1;i=i;j--) { printf(" "); } for(k=1;k<=i;k++) { if(k==1) { printf(" %d",i); } else(printf("*%d",i)); } printf("\n"); } }#include #include void main() { int i,j,k; for(i=1;i=i;j--) { printf(" "); } for(k=1;k<=i;k++) { if(k==1) { // Notice the space before %d printf(" %d",i); } //Notice the* before %d else(printf("*%d",i)); } printf("\n"); } }Show more responseswhat is lt meaning One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.

### Junior Software Engineer at EPAM was asked...

4 Oct 2017
 implement the dynamic polymorphism23 AnswersDid you qualify for round 3 ?what were the questions asked in round 2 and 3?Is it hackerrank test in round 2 ? What were the mcq s about ?how many mcqs were there ? Help me out mate ! Do we have to code in java alone ? Or any other languages?Nope , I wasn't . mcqs like what exception do we get when a file is write protected , what protocols are used to create an online chatting web application , almost all subjects in gate . there were 10 mcqs and we need to write the code only in java ....Could you please answer me .what are the 2 coding questions you were asked in the round 2 so that we have an idea of what kind of questions they were expecting ? Hope a reply from you.Thank YouShow more responses1) to implement the dynamic polymorphism using method overriding in child classes with an example of cars 2) implement the merge sort algorithm using either java or c . Try not to leave any test cases ...you will be shortlisted on if you can accomplish all the test cases .Thanks for your reply. I have cleared the 1st coding round and I have interview within few days. So I just want to know your experience in detail which will help me a lot. Reply if you have any suggestions to crack the interview. Thank you.Congratulations for clearing the first round , go on practising the algorithms of DAA , writing your own code for all sorting and searching techniques . solve some problems in hacker rank of medium level ...that's all you need . be clear with your basic concepts in what ever the language you have opted for programming .Is it the same type of questions asked as he mentioned? or different set of questions. Is it through epam test portal?Hey can u plz explain what questions they asked in 1 st round what type of mcq they asked and is only mcq in 1st round and any other asked plz reply anyone plz share experienceI am not qualified in round 2 and I don't know about round 3 . its not hacker rank , its code ground ....the mcqs were very tough for a normal student unless he is brilliant and have depth in concepts . there were 10 mcqs for 20 marks I think ...and regarding the coding ..you need to do it only in java ...bcz epam is particular about coding in java ...What about linked list sorting algo can we write in c or c++ and can u plz share 1 st round coding question plzI don't have either link or the data of the first round coding , but they gave all the interfaces to be developed with some constraints ...and u can write the linked list both in c or c++Ok Thanks bro for helping this all helps me a lot ..😊 But still u remember some program or unimplemented method that will help me lot .. Thanx in advance..😊 And once again thank you bro ..👍When I can expect interview call after first round of code ground. Last date to submit code for round 1 was on Friday 12 Jan. I got approx 65-70/100 should I wait for round 2. Please reply I will really appreciate it. ThanksShow more responsesIf you written 2 programs correctly in the first round you will qualify for the further rounds. In the second round they are going to ask 2 programs mainly on sortings and interfaces. Later in the 3 round they will ask technical questions on oops concepts, serilization and collections so more what you have written in your resume. In the HR they will ask general questions to you.Thanks for the reply . Really appreciate it. i had answered 2 programs correctly but the third one i couldn't get all the test cases correct. Hoping i would be called for 2nd Round . and again thanks .Already they have sent the mail's for second round for some people. Tommorow they have second round with following others roundsI didn't got any mail don't know why? Did 2 programs correct with all test cases correct . And the third on 3/6 test cases were correct. Really was expecting their call. Thanks bro for replying .Hey can you tell me what kind of programming questions they ask in first round..Its easy or difficult? Please reply..should we really have a web cam for first round.?can anyone tell me please from which website they have given programs to us for solving, anyone have clue. please reply fast its urgentWe need to have webcam in order to open the test , without it ..it may not open it at all ...and regarding the questions ..they make it from other questions ...not exactly the same as it is ...so be a problem solver ...to solve those problems ....Please answer what type of questions asked in 1st round?Pretty much on c and java ...simple questions to expect output of a program.

### Software Engineer at Shell was asked...

24 Dec 2015
 The final round of interview was challenging in terms of how you pick scenarios from your career.21 AnswersOut of the 4 scenarios - I realized its better to show both sides of the coin and treaded one positive experience followed by negative experience. It was fulfilling to mention that a mistake was made due to XYZ reasons and was corrected in future assignments.Hi could you please share your contact numberHi, I have recently attended an interview with Shell last week and awaiting for my results. I also got through the first round i.e. the functional competency round on the F2F interview and also completed my behavioral round as well. My interview went very well as I had prepared as per there site and I was very positive and confident. Within 15mins, I got to know that I have made it to the 2nd round I.e. the behavioral round.They collected my photograph and had already taken my salary slips before the F2F interview. SO, can you tell me how much chances are there that I would get through Shell ? Results are expected this week.Show more responsesHello, given that they had collected your photograph and salary slips, I would say you have a real good chance of receiving an offer with Shell. All the best!Hi ABC can u share what kind of techincal question they have asked, r they asked to write program or only oral with usecases? as i am having my interview on next week for java developer.Hi, I understand they are checking the background as part of enhanced screening via a 3rd party agency? How long does this process take? What to expect? And does the status of the application in the Shell portal change regularly? I see it as Completed Assessment. Thanks for a reply.For me, they obtained declaration to carry out BG check 10 days prior to joining and I was not contacted further in this regard. For some colleagues, third party requested for additional docs. Am not sure on the status of my application on shell portal.Hi I have been scheduled for F2F interview for QA position on June 6th. Can anyone help me in knowing what kind of questions might come on my way in both Professional Assessment and Structured Assessment If anyone from QA had experience with Shell interviews please do reply.Hi there XYZ, I suppose your interview is already done, could you please assist me in Professional and Structural interview. what scenarios were asked and what all technical questions were put across. Any tip that i should keep in mind. Thanks in advance.Being low paid, will it damage my case if i ask for a 50% hike in case selected? I am awaiting result of final round in a week's time.Usually, Shell has a lower and upper salary limit for a specific salary group. No matter how low your current salary is, you ll be mapped to atleast the lower limit. In my case, I did not have to negotiate, but you may do so based on your requierments.i completed my final assessment on 8 th August. Dint receive any updated till now. please guide.Hi, I also attended interview in Shell this Wednesday, everything went fine.. but after all the rounds Hr didn't collect photograph or any Documents.. She just told me that within 2 weeks you will be getting result? Can you tell me, is that any chance that they will select me?Show more responsesSame here, 2 rounds f2f completed, hr said they will get back to me within 2week, but they didn't collected any doc or photo, will I have chance of getting offer?Hi, Did you get ur call letter after your process was done.Hii, did u get ur offer letter?After final round of interview how many weeks they will take to tell the result?Did you get the offer and how long it took?Hi XYZ, did you get your interview feedback. How long they are taking to tell the feedback after attending the final assessment.Hi there, How long they take to give the feedback after the final assessment. I finished the final assessment on Oct 8, it's been a month now, still no update on it.Does shell confirm the outcome of interview or do we just need to wait for some indefinite time for a call from HR otherwise assume rejection? If this is the policy then how long should we wait?

### Software Developer at Zoho was asked...

20 Aug 2017
 Aptitude questions were from the topics like Discounts, Profit or loss, Boats and streams, Work ,Pipes,Finding X and Y, Numbers, Ratio and Proportion. And all the programming questions were only from C language.16 AnswersGeek for geeks will help you crack this round for sure.Hy bro Result came ah ?I also attended the interview that was quite easy....result came or not...i didn't get any mail....anyone received mail or call..Show more responsesProgramming questions from c...These were the questions we faced on round 1. You are supposed to predict the output for the given program... 1. preprocessor some thing like #define sqt(x) x*x main(){ i=64/sqt(4)} 2. various form of array notation like s[ i ], *(s+i), *(i+s), i[s] 3. based on increment operation on pointer. eg. char *s="asdf"; s++; print s++; print s; 4. string.h based ques. eg. char s1[]="asdfasdf",s2; strncpy(s2,s1,3); 5. print char array from n th position to 0. ie. consider previous ques s1[] now just print char from s1 to s1 using for loop. 6. switch statement with no break except in default statement, enclosed within a for loop, some thing like the below one main(){ int i=1; for (i=1;i<20;i++) { switch(i) { case 1: i+=2; case 2: i+=3; case 3; i+=4; default: i+=5; break; } } printf ("%d",i); } 7. nested function with a static int variable. it has 2 return statement in it one executed on a condition. 8. print sizeof(++i + ++i) considering i as a int of size 2bytes, as sizeof() will perform no arithmetic operation in it, it just print 2. 9. struct base question which as some thing like struct{ int a1:1; int a2:2} and it goes on something like that... 10. bitwice operation performed on int.. i dont remember the question but the result ended up as 1,1,0If results came please share...Hy what will be the qualifying mark ? Any guesses ?Did any one of you got any updates for the drive held on 20th Aug 2017 at Madurai Velammal Engg Coll ? If so, please share here..Guys result is out.when is round 2..?Someone, named Sibi had said result was out. Is it true? Did anyone receive email communication reg further rounds based on performance ?Yeah its true 29th 2nd roundIs the results out or notShow more responsesyes, but i got mail 2day only and the 2nd round is on september 1stOk guys :-) Thank you Sibi and all others who had intimated us about the selection. Do well in the next round. It is a very good company.Do your best and leave the rest.Can you navigate the test window during online test-round 1?

### PHP Developer at WebKul was asked...

11 Sep 2016
 Q1. Draw star pattern like. n=1. * n=2. ** * n=3. *** ** * n=4 **** *** ** * n=5. ***** **** *** ** *16 Answers#include int main() { int n=10,i,j,s,sum=1,l,k; for(k=1;k=1;i--){ l=sum-i; for(s=1;s<=l;s++){ printf(" "); } for(j=1;j<=i;j++){ printf("*"); } l=l+1; sum=l; printf("\n"); } return 0; }#include int main() { int n,i,j,k,l=1; for(n=1;n=1;i--) { if(n==3) {for(k=i-1;k>=1;k--) printf(" "); } if(n==4) { if(i>2) {for (k=i-1;k>=l;k--) printf(" "); } l++; } if(n==5) { if(i>2) { for(k=i+2;k>=l-2;k--) { printf(" "); } l++; } } for(j=i; j>=1;j--) { printf("*"); } printf("\n"); } printf("\n"); } }import java.util.Scanner; class New { public static void main(String ... args) { Scanner sc =new Scanner(System.in); int n=sc.nextInt(); int p=n-2; for(int i=1;i<=n;i++) { for(int j=1;j<=(p*(p+1))/2;j++) System.out.print(" "); p--; for(int k=1;k<=n-i+1;k++) System.out.print("*"); System.out.println(""); } } }Show more responsesspace is 1+2+3+...(n-2) Code is as follow: public class Pattern { public static void main(String ...args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=n;i>=1;i--) { for(int j=1;j<=(i-1)*(i-2)/2;j++) System.out.print(" "); for(int j=1;j<=i;j++) System.out.print("*"); System.out.println(); } } }public class Pattern11 { public static void main(String[] args) { int number = 6, count = number; for (int i = 1; i <= number; i++) { for (int j = 1; j <= (number - i) + count; j++) { if (j <= number - i) { System.out.print(" "); } else { System.out.print("*"); } } count = count - 1; System.out.println(); } } }int main() { int i,j,s,n; scanf("%d",&n); for(i=1;i<=n;i++) { for(s=1;s<=n-i;s++) { printf(" "); } for(j=1;j<=(n+1)-i;j++) { printf("*"); } printf("\n"); } }x=int(input()) for i in range(x,0,-1): for k in range(i-1,0,-1): print(" ",end="") for j in range(i,0,-1): print("*",end="") print()#include int main() { // Input n from user and make h,s,n all equal // Input 5 is taken randomly it can be any thing int h = 5; int n = 5; int s ; s=n; for(int u = 0; u 0 ; s-- ) { printf(" "); } for(int s = h ; h>0 ; s-- ) { printf("*"); h--; } printf("\n"); h = n - 1; }import java.util.*; import java.io.*; class Starpattern5 { public static void pattern(int n) { int i,j; for (i=n;i>=1;i--) { for (j=1;j<=((2*i)-1);j++ ) { if (jimport java.util.*; import java.io.*; class Starpattern5 { public static void pattern(int n) { int i,j; for (i=n;i>=1;i--) { for (j=1;j<=((2*i)-1);j++ ) { if (j2){ for(\$j=3;\$j= 2){ echo " "; } \$count--; for(\$k=\$val;\$k>=\$i;\$k--){ echo "*"; } echo "
"; } } ?>Import java.util.Scanner; Class web { Static void web(int n) { for(int i=n;i>=1;i--) { for(int j=0;j<=n;j++) System.out.print("*"); } System.out.println("\t"); } } Public static void main(String args[]) { Scanner sc =new Scanner(System.in); Int n=sc.nextInt(); Web(n); } }#in python n= int(input('enter the max no.')) for i in range(n): print('*'*(n-i), end=' ')Show more responsesn=int(input("")) for i in range(n+1): print(" "*(n-i-1 )+"*"*(n-i))=(\$n+1-\$i) && \$j One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.

### Software Engineer at Google was asked...

19 Mar 2009
 Come out with an algorithm for getting the column number provided the column name in a excel sheet and vice versa. Excel has a naming convention of A,B..Z,AA,AB,AC..ZZ,AAA... This had to be converted to the column numbers. A will be 1 and AA will 27.. Also the algorithm to find the name provided column number.13 AnswersIts conversion from decimal to base 26 with some exception like there is nothing maps to zero. There might be a better way to do it.void printColumn(uint32_t col) { col --; int div = 26; int add = 26; while( col / div ) { div *= 26; } div /= 26; while( div != 1) { printf("%c", (col / div) + 'a' - 1); col = col % div; div /= 26; } printf("%c\n", col + 'a'); }Opps above does not work after ZZ. The correct one is void printColumn(uint32_t col) { int a = 26; int denominator = 1; while(a 0; i /= 26) low += i; // if value is lower than lower bound, decrease quotient by one if( denominator != 1 && col < (quotient * denominator + low) ) { quotient --; } printf("%c", quotient - 1 + 'A'); col = col - denominator * quotient; denominator /= 26; } }Show more responsesLet the size of the string asked is 3 e.g GHD . The formula to this : [ 26+26^2+...+ 26^(size-1) + (LetterIndex-1)*{26^(size-1)+....+(LetterIndex-1)*26}+Index ]In the code the above formula will use recursion to find the column number.The answer can be as simple as finding the first combination of number * i such that it is less then xcelcolvalue; ie repeat this till xcelColValue >= 26 ( 0 = 26){ int i = 1, num = 1; while((num * (i + 1)) 26){ i = 1; num++;} else i++; xcelNum -= num*i; sb.append((char) i); } if (xcelNum > 0) sb.append((char) xcelNum); return sb.toString(); }Also the above code is rough idea and not tested but gives enough idea on simplifying the solution. The code does not use lot of / and % calcuations but could elegantly find the solution. Note the Gaurd if(i > 26){ i = 1; num++;} else i++; which is important in finding the combination of num and i which multiples at least to xcelNum.I think the above is incorrect and it should be : public static String xcelString(int xcelNum) { StringBuffer sb = new StringBuffer(); while(xcelNum >= 26){ int i = 1; for(;(26 * (i + 1)) 0) sb.append((char) xcelNum); return sb.toString(); }Edge conditions aside, the program would be /* inputString - the column name. For e.g. "BZC" */ char [] columnName = inputString.toUpperCase().toCharArray(); int columnNumber = 0; for(int i = 0; i < columnName.length - 1; i++){ columnNumber = columnNumber + (int) Math.pow(26, (columnName.length - 1 - i)) * (columnName[i] - 64) ; } columnNumber = columnNumber + (columnName[columnName.length - 1] - 64); System.out.println("Column number is " + columnNumber);Edge conditions aside, the program would be /* inputString - the column name. For e.g. "BZC" */ char [] columnName = inputString.toUpperCase().toCharArray(); int columnNumber = 0; for(int i = 0; i < columnName.length - 1; i++){ columnNumber = columnNumber + (int) Math.pow(26, (columnName.length - 1 - i)) * (columnName[i] - 64) ; } columnNumber = columnNumber + (columnName[columnName.length - 1] - 64); System.out.println("Column number is " + columnNumber);int columnNumber(String col) { result = 0; for(i = 0;i< strlen(col) ; i++) { result *= 26; result + = col[i] - 'A' +1; } }int columnNumber(String col) { result = 0; for(i = 0;i< strlen(col) ; i++) { result *= 26; result + = col[i] - 'A' +1; } }public static String numToExcel(int n) { if(n 0) { int remainder = n%26; char newChar = (char) ('Z' - (26 -remainder)%26); result = newChar + result; n = (n-1)/26; } return result; }

### Software Developer at Knab was asked...

27 Aug 2016
 Scan an integer and print the alphabet so that: 1-A; 2-B...26-Z; 27-AA,28-AB,29-AC...52-AZ; 53-AAA,54-AAB,55-AAC...78-AAZ...etc.. If you provide an integer, say 28-it should print AB. If you scan another integer say 55, it should show AAC13 AnswersI was not able to complete within 20 minutes, hence got rejected.#include #include int main() { int n=0,ap=0; printf("Enter no - "); scanf("%d",&n); ap=n%26; while(n>26) { printf("A"); n-=26;; } switch(ap) { case 1 : printf("A"); break; case 2 : printf("B"); break; case 3 : printf("C"); break; case 4 : printf("D"); break; case 5 : printf("E"); break; case 6 : printf("F"); break; case 7 : printf("G"); break; case 8 : printf("H"); break; case 9 : printf("I"); break; case 10 : printf("J"); break; case 11 : printf("K"); break; case 12 : printf("L"); break; case 13 : printf("M"); break; case 14 : printf("N"); break; case 15 : printf("O"); break; case 16 : printf("P"); break; case 17 : printf("Q"); break; case 18 : printf("R"); break; case 19 : printf("S"); break; case 20 : printf("T"); break; case 21 : printf("U"); break; case 22 : printf("V"); break; case 23 : printf("W"); break; case 24 : printf("X"); break; case 25 : printf("Y"); break; case 0 : printf("Z"); break; default : break; } }#include #define N 26 int main(){ int i,no,no1; printf("\n Enter number : "); scanf("%d",&no); if(no 26){ printf("A"); no1 -= 26; } if(no == 0) no = 26; // code for finding the particular alphabet from A-Z for(i = no; i <=no; i++){ printf("%c",'@'+i); } } return 0; }Show more responses#include int main(){ int i,no,no1; printf("\n Enter number : "); scanf("%d",&no); if(no 26){ printf("A"); no1 -= 26; } if(no == 0) no = 26; // code for finding the particular alphabet from A-Z for(i = no; i <=no; i++){ printf("%c",'@'+i); } } return 0; }import java.util.Scanner; public class Alpha { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(),temp=0, count = 0,rem=0; String alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if(n26){ count = n/26; rem = n%26; if(rem != 0){ for (int i = 0; i < count; i++) { System.out.print("A"); } temp = n - count*26; System.out.print(alpha.charAt(temp-1)); } else{ for (int i = 0; i < count-1; i++) { System.out.print("A"); } System.out.println("Z"); } } } }#include int main() { int num; printf("enter a number\n"); scanf("%d",&num); while(num>26) { printf("A"); num=num-26; } if(num<=26) { printf("%c",num+64); } return 0; }#include int main() { int n; printf("Enter a Number ::: "); scanf("%d",&n); int tmp =n/26; int val=0; while (tmp>0) { tmp--; if (tmp==0 && n%26==0) { printf("Z"); val++; break; } if (!(tmp<0)) { printf("%c",65); } } if (val!=1) { printf("%c", (n%26)+64); } printf("\n"); }By mistake I pressed down vote. Nice code - > PoornimaBimport java.util.*; public class Program3 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n26)&&(n52)&&(n<78||n<=78)) { int a=n%26; a--; int b=65+a; char ch=(char)b; if(n==78) ch='Z'; System.out.println("AA"+ch); } } }import java.util.*; public class Program3 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n26)&&(n52)&&(n<78||n<=78)) { int a=n%26; a--; int b=65+a; char ch=(char)b; if(n==78) ch='Z'; System.out.println("AA"+ch); } } }LANGUAGE OF MY CODE IS JAVA BUT IT WILL HELP YOU TO GET LOGIC public class part2 { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("enter a number"); int n=scan.nextInt(); int fact; fact=n/26; if(n%26==0){ fact=fact-1; } for(int i=0;iLEFT PORTION OF ABOVE CODE IS HERE for(int i=0;istatic string Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static void numToString(int num) { if(num<=26) { Console.Write(Alpha[num - 1]); return; } Console.Write('A'); numToString2(num - 26); }

### Software Engineer at Google was asked...

17 Jun 2010
 How many rotations does earth make on its axis while going around the sun for one year.12 AnswersDepends on the Leap Year or non Leap Year 365 for Non Leap Year 366 for Leap YearThe question is flawed. It should either ask how many days earth takes in one revolution around sun, or how many days are in a year. The leap year is something imaginary humans have concocted to make the calendars look good. You can't say once is 4 years earth takes an extra day to go around the sun.It's to get you thinking about casting... the calender is a double casted to an int!Show more responses365.25 / yr I wouldn't say 365/ 366 leap year. Jain has a point.^It's either 364.25 or 366.25 depending on whether the earth spins in the same direction as it goes around the sun or not (I don't remember which it is and can't deduce it from the information that's available to me without looking it up). Imagine if the Earth did not spin at all on its axis so it would seem as if a year was equivalent to one day. It will take the Earth rotating either 264.24 or 366.25 times depending on the direction to seem like the 365.25 days that it does take.Every year it takes 365.25 rotations but while making calendar we ignore that 0.25 for 3 years and add an extra day in 4th year.365.25 is WRONG!!! Actually Anonymous is right! Just think about this (lay it out on your desk):
• How many days would there be if the earth would not revolve around its axis?
• How many days would there be if it turned once around it's axis?
• Now do again one, change the direction the earth revolves it's axis, but keep going the same direction around the sun ...
The concrete right answer is 366.25 Here you find details on the exact number (with other proof): :)This question makes no sense.It's other way around, only when earth complete one round, we call it a year. To make human calculations easy, we introduced leap yrs.366 rotations per year with respect to a distinct star.366 rotations in a no leap year with respect to distinct star. One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.
110 of 94,557 Interview Questions