Barclays Capital Interview Questions
- 0of 0 votes
AnswersSuppose an Archeologist is visiting Africa, who don't know the native language. There are two tribe, one of those always speaks the "Truth" and another one always speaks "Lie". Suppose you are in front of three such people, of course you don't know them as truth/lie speaking tribe. You asked a question, and the 1st one replies in his native language, which you don't know, then 2nd tells that the 1st person is lying(in english) and the third person tells that 2nd person is lying(in english).
- rms792 June 02, 2014 in India
Which tribe does the 3rd person belongs?| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Problem Solving - 0of 0 votes
AnswersHaving the following interface
interface CharStream { boolean hasNext(); char next(); }
implement bracket string validation, e.g. "()(([]))" is valid and "(]" is not.
Recursive implementation is required and you have the following signature:
- Zjor November 27, 2013public boolean isValid(CharStream in) { // your code here }
| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDesign the below scenario in Java.
- cCAACc May 31, 2013 in United States
In an Olympic event there is a running track and it is used for 100m,200m,400m. You have 10 participants.
When the event start , capture the time taken by each participants. Determine who is the winner in each event.| Report Duplicate | Flag | PURGE
Barclays Capital Solutions Architect Object Oriented Design - 0of 0 votes
AnswersDesign the below scenario in Java.
- cCAACc May 31, 2013 in United States
You have to maintain the family tree of 10 generation. For a family you have to store father, mother and their children.
You have do the following operation.
When you search by a particular name of father/children, It will print whole 10 generation.
Calculate the time and space efficiency of your search operation.| Report Duplicate | Flag | PURGE
Barclays Capital Solutions Architect Object Oriented Design - 0of 0 votes
AnswersHow could you make sure that thread A ,B and C run sequentially without using join method?
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Threads - 0of 0 votes
AnswersYou have a string str = "I love you".
- cCAACc May 04, 2013 in United States
Write a program to print the output as "you love I". Calculate the efficiency of your coding.| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer String Manipulation - 0of 0 votes
AnswersWhat design pattern does AOP use?
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Java - 0of 0 votes
AnswersYou have two class A and B in a jar file and you have no source code with you. Write a class C which will rewrite the behaviour of the methods in A and B. You are not allowed to write any other class or interface.
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Java - 0of 0 votes
AnswersWrite program of thread pool.
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Java - 0of 0 votes
AnswersYou have an array Char[] chArray = {'a','a','b','c','a','b','d','c','c','d','a','a'}
- cCAACc May 04, 2013 in United States
Write a program to remove the duplicate and the output should be as per the below:
{'a','b','c','d','','','','','','',''} . You should not use any collection api| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Arrays - 0of 0 votes
AnswersWhat design pattern does Exception handling use and why?
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer - 0of 0 votes
AnswersWhy do we have both checked exception and Runtime Exception? What will happen if we have only one of a kind?
- cCAACc May 04, 2013 in United States| Report Duplicate | Flag | PURGE
Barclays Capital Senior Software Development Engineer Java - 0of 0 votes
AnswersA transaction involves transferring amount from one account to another account.There is one queue being populated with transaction requests . Use 4 threads to process requests. Ensure data consistency and fastest way to process the requests .
- skt March 17, 2013 in India
Given:
1. request will contain fromAccount, toAccount, amount 2. list of n account which are involved in transactions.| Report Duplicate | Flag | PURGE
Barclays Capital - 0of 0 votes
AnswersYou have 100 coins, 29 of them are heads, rest are tails. You are BLINDFOLDED. You can reverse any coin. Your task is to divide this 100 coins into two groups in which there will be the same number of heads.
- njoy89 November 17, 2010| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Brain Teasers - 0of 0 votes
AnswersIn the attached Excel file there is a list of 500 posts taken from an online community. Write a program that finds the 100 most popular one, two, three, and four-word phrases when the “Run!” button is clicked. Please, take into account the following:
- Anony April 26, 2010
1. All words in a phrase must belong to the same sentence in the post.
2. The following characters must be used to separate one sentence from another within the same post:
1. . (Period)
2. ! (Exclamation mark)
3. ? (Question mark)
4. ; (Semicolon)
5. : (Colon)
6. Line feed
7. Carriage return
3. At least one word in any phrase must not be from the “Excluded Word List.”
4. The program must return the phrases ranked in descending order according their frequency.
5. Execution time is very important, so the program should run as fast as possible (run time will be taken into consideration when grading the assignment).| Report Duplicate | Flag | PURGE
Barclays Capital Financial Software Developer - 0of 0 votes
AnswersHow to find the maximum rectangle in a histogram, and write C++ to implement it.
- zijiantan March 21, 2010| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Algorithm - 0of 0 votes
AnswersCan you serialze the following class
- Michael Gorenburg January 31, 2010
public class{
String st='mansoor-shaikh';
String int = 90;
Thread myThread;
}
Explain why and why not?| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Threads - 0of 0 votes
AnswersHow will you handle multhithreading issues in Servlets
- Michael Gorenburg January 31, 2010
public MyServlet extends httpServelt}
private String = 'jackass-gorenberg'
private int counter=0;
doget(){
dopost()
service(){
//now access these global variables
}
}
Can you override service() method, and what you do when you access variables in service method, with respect to global variables| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Threads - 0of 0 votes
AnswersWrite Java code to reverse a
- Michael Gorenburg January 31, 2010
char[] ar = {'A','R','G','E','N','T','I','N','A'}
without using any other array or creating objects| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Algorithm - 2of 0 votes
AnswersA big cube is made of 1000 small cubes. How many small cubes are there at the surface?
- Barcap September 17, 2008| Report Duplicate | Flag | PURGE
Barclays Capital Software Engineer / Developer Brain Teasers - 0of 0 votes
AnswersWhat would you say is your weakness?
- Mallika.I. February 19, 2008| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Behavioral - 0of 0 votes
AnswerHow do compilers work?
- Mallika.I. February 19, 2008| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Computer Architecture & Low Level - 0of 0 votes
AnswerExplain Hashtable
- Mallika.I. February 19, 2008| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Data Structures - 0of 0 votes
Answers2 interviewers. One presumably HR and the other definitely tech oriented.
- Lee October 04, 2006| Report Duplicate | Flag | PURGE
Barclays Capital Analyst General Questions and Comments - 0of 0 votes
Answersdescribe a project you worked on. How did you go about designing it. Why do you use stored procedures.
- Lee October 04, 2006| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Database Experience - 0of 0 votes
AnswersWhat are differences between java and C#
- Lee October 04, 2006| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Terminology & Trivia - 0of 0 votes
Answerswhat is polymorphism
- Lee October 04, 2006| Report Duplicate | Flag | PURGE
Barclays Capital Analyst Terminology & Trivia