Junior associate Interview Questions
2K
Junior Associate interview questions shared by candidates
program to print nos. btween 293 and 393 that ends with last digit 5
4 Answers↳
it should be divisible by 5 and not divisible by 10
↳
for(int iii=293;iii<393;iii++){ if(iii%10==5){ System.out.println(iii); } } Less
↳
for(int i=293;i<393;i++) { if(i%5==0&i%10!=0) { cout<

What makes you right for this position?
3 Answers↳
Anyone that does this job is a bigger loser than the idiots running the place
↳
I want to learn the art of lies from Vincent Dawson and the Dawson Marketing Concepts Team. Less
↳
Everything stated here is true. The people that passionately continue to work for this scam company have low self esteem and want to be losers for the rest of their lives. Average person makes $30 for an 8 hour shift. LOSER NATION. Less

You have 4 jars A, B, C, and D, each with 100 coins. The coins in jar A weigh 1g, in B weigh 2g, 3g in jar C, and 4g in jar D. You have an electronic scale. One of the jars' coins are all off by 0.1g, how can you determine which jar in the least amount of steps?
3 Answers↳
should be off by 0.1, 0.2, 0.3 or 0.4g right?
↳
yup sorry mistype!
↳
Take 1 coin from A, 2 from B, 3 from C, and 4 from D. This should total 30g. If it's off by 1g, jar A is incorrect. If by 4g, jar B, etc. Less

If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?
3 Answers↳
1) Pour 5 in take 3 out total remaining = 2 2) Pour 5 in total = 7 Take 3 out Now 4 is left total = 4 Less
↳
fill up the 3, pour it into the 5. fill up the 3 again, pour 2 into the 5 to top it off. now your 3 has 1. empty the 5. pour the 1 into the 5. fill up the 3 and pour it into the 5. Less
↳
Fill the 5 quart pail and pour it into the 3 quart pail. now there are 2 quarts remaining in the 5 quart pail. empty the 3 quart pail and pour these 2 quarts into the 3 quarts pail. now the 3 quart pail is 1 less to be filled up. now fill the 5 quarts pail and pour 1 quart into the 3 quarts pail to fill it. the 5 quarts pail has 4 quarts in it now. Less

Eps Formula..(PAT/ No. of Shares) How do u find.. no of shares in accounting period?
3 Answers↳
By weighted avg of shares over the period
↳
Generally EPS is Calculated as Total Profit after Interest & Taxes, Preference Dividend / No.of Euity Shares Less
↳
yes it is n PAT means Profit after taxes n interest n p. dividend as every body knows... the interviewer specifically asked abt No. of shares and how do u calculate.. Less

Q1. Input string : A3B2C3D4 Output string should be : AAABBCCCDDDD
3 Answers↳
int main()//INPUT: A3B2C4 OUTPUT:AAABBCCCC { int i,j,k=0; char str1[30],str2[200]; cout<<"Enter a string"< Less
↳
import java.util.Scanner; public class StringNum { public static void main(String[] args) { String s; Scanner scan=new Scanner(System.in); s=scan.nextLine(); String [] arr=s.split(""); for(int i=0;i Less
↳
String s = "A3B2C3D4"; String b = ""; for(int i=0;i

oops concept
2 Answers↳
I explained whatever I knew about oops
↳
please share the question ask in coding round

count the no of elements in a number using recursion
2 Answers↳
#include int main() { int i,a; for(i=293;i<=393;i++) { if(i%10==5) { a=i; break; } } for(i=a;i<=393;i+=5) { printf("\n%d",i); } } Less
↳
#include int countDigits(int num) { static int count=0; if(num>0) { count++; countDigits(num/10); } else { return count; } } int main() { int number; int count=0; printf("Enter a positive integer number: "); scanf("%d",&number); count=countDigits(number); printf("Total digits in number %d is: %d\n",number,count); return 0; } Less

if given string is like aaaabbbaaccccc then output must be a4b3a2c5
2 Answers↳
very simple
↳
import java.util.*; public class B { public static void main(String[] args) { Scanner inp= new Scanner(System.in); String str; char ch; int count=0; System.out.println("Enter the string:"); str=inp.nextLine(); while(str.length()>0) { ch=str.charAt(0); int i=0; count=0; while (i < str.length() && str.charAt(i) == ch) { count =count+1; i++; } str = str.substring(count); System.out.println(ch); System.out.println(count); } } } Less

Multiple brain teasers including if you had a scale and 9 marbles, 8 weigh the same, how do you find the one that doesn't in the least number of steps.
2 Answers↳
weigh half the marbles, if you see the weight as a multiple of the standard weight, take half the other half (the quarter) and weigh them, if its not a multiple, bingo, weigh half of that , you will have your answer! Less
↳
Drop them in some thick substance and see which one falls fastest. Had the same question in the interview. Less