Programmer Trainee Interview Questions

2,759 programmer trainee interview questions shared by candidates

Technical:Introduce Yourself,Why do your want to join cognizant?,Questions about projects,I was given to write a java code on computing factorial of a number by skipping a digit in between(For eg.-6!=6*4*2).I was asked to design an user defined exception when the input is <=0.Then the interviewer asked me about the output if he enters a string instead of a number.Then,he asked me two puzzles: 1.There are 9 jars.Each jar contains 100 medicine pills.Each pill weighs 1 gm.In one of the jar there are pills which weigh 1.1 gm.All pills have the same size and shape.You are given a weight balance.Using it only once,how will you find out which jar contains the 1.1 gm pills? 2.You are travelling in a helipcopter.The helicopter meets with an accident and crashes. You drop into the middle of a desert during daytime(No one lives or is present in the desert).You have 5 objects with you:Mirror,Parachute(which you used during landing in the desert),Siren,Compass,Drinking Water.In which order would you use these items in order to escape from the desert and save yourself? HR interview:What is your unique skill due to which we should hire you?Will you like it if you are given a testing job(which doesnt require extensive coding)?What are your strengths and weaknesses?What changes do you want to make in the BTech curriculum in order to make students industry ready?Then we need to sign a document stating we can be posted anywhere and deployed according to project requirements.
avatar

Programmer Analyst Trainee

Interviewed at Cognizant

3.6
Apr 12, 2019

Technical:Introduce Yourself,Why do your want to join cognizant?,Questions about projects,I was given to write a java code on computing factorial of a number by skipping a digit in between(For eg.-6!=6*4*2).I was asked to design an user defined exception when the input is <=0.Then the interviewer asked me about the output if he enters a string instead of a number.Then,he asked me two puzzles: 1.There are 9 jars.Each jar contains 100 medicine pills.Each pill weighs 1 gm.In one of the jar there are pills which weigh 1.1 gm.All pills have the same size and shape.You are given a weight balance.Using it only once,how will you find out which jar contains the 1.1 gm pills? 2.You are travelling in a helipcopter.The helicopter meets with an accident and crashes. You drop into the middle of a desert during daytime(No one lives or is present in the desert).You have 5 objects with you:Mirror,Parachute(which you used during landing in the desert),Siren,Compass,Drinking Water.In which order would you use these items in order to escape from the desert and save yourself? HR interview:What is your unique skill due to which we should hire you?Will you like it if you are given a testing job(which doesnt require extensive coding)?What are your strengths and weaknesses?What changes do you want to make in the BTech curriculum in order to make students industry ready?Then we need to sign a document stating we can be posted anywhere and deployed according to project requirements.

Viewing 2331 - 2340 interview questions

Glassdoor has 2,759 interview questions and reports from Programmer trainee interviews. Prepare for your interview. Get hired. Love your job.