# 2K

Junior Associate interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date
Junior Associate Trainee was asked...December 20, 2015

### program to print nos. btween 293 and 393 that ends with last digit 5

it should be divisible by 5 and not divisible by 10

for(int iii=293;iii&lt;393;iii++){ if(iii%10==5){ System.out.println(iii); } } Less

for(int i=293;i&lt;393;i++) { if(i%5==0&amp;i%10!=0) { cout&lt;

### What makes you right for this position?

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?

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?

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?

By weighted avg of shares over the period

Generally EPS is Calculated as Total Profit after Interest &amp; 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

int main()//INPUT: A3B2C4 OUTPUT:AAABBCCCC { int i,j,k=0; char str1[30],str2[200]; cout&lt;&lt;"Enter a string"&lt; 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

I explained whatever I knew about oops

### count the no of elements in a number using recursion

#include int main() { int i,a; for(i=293;i&lt;=393;i++) { if(i%10==5) { a=i; break; } } for(i=a;i&lt;=393;i+=5) { printf("\n%d",i); } } Less

#include int countDigits(int num) { static int count=0; if(num&gt;0) { count++; countDigits(num/10); } else { return count; } } int main() { int number; int count=0; printf("Enter a positive integer number: "); scanf("%d",&amp;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

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()&gt;0) { ch=str.charAt(0); int i=0; count=0; while (i &lt; str.length() &amp;&amp; str.charAt(i) == ch) { count =count+1; i++; } str = str.substring(count); System.out.println(ch); System.out.println(count); } } } Less