HOME         WALKINS         CORE JOBS          GOVT JOBS          TESTING JOBS          BPO JOBS amity niit hp idea nokia religare samsung max_new_york_life naukri

Sunday, February 28, 2010

C++ Interview Questions

In C++, what is the difference between method overloading and method overriding?
Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of the inherited class rewriting the virtual method of the base class.

What methods can be overridden in Java?
In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static, and private.

What are the defining traits of an object-oriented language?
The defining traits of an object-oriented langauge are:
* encapsulation
* inheritance
* polymorphism

Write a program that ask for user input from 5 to 9 then calculate the average

int main()
{
int MAX=4;
int total =0;
int average=0;
int numb;
cout<<"Please enter your input from 5 to 9";
cin>>numb;
if((numb <5)&&(numb>9))
cout<<"please re type your input";
else
for(i=0;i<=MAX; i++)
{
total = total + numb;
average= total /MAX;
}
cout<<"The average number is"<<

return 0;
}


Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over?
Straight-through is type of wiring that is one to connection, Cross- over is type of wiring which those wires are got switched
We use Straight-through cable when we connect between NIC Adapter and Hub. Using Cross-over cable when connect between two NIC Adapters or sometime between two hubs.

If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor screen. What would you do to find out what is going wrong?
I would use the ping command to check whether the machine is still alive(connect to the network) or it is dead.

Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?
Answer1.
In assignment operator, you are assigning a value to an existing object. But in copy constructor, you are creating a new object and then assigning a value to that object. For example:
complex c1,c2;
c1=c2; //this is assignment
complex c3=c2; //copy constructor

Answer2.
A copy constructor is used to initialize a newly declared variable from an existing variable. This makes a deep copy like assignment, but it is somewhat simpler:

There is no need to test to see if it is being initialized from itself.
There is no need to clean up (eg, delete) an existing value (there is none).
A reference to itself is not returned.

"mutable" Keyword - What is "mutable"?
Answer1.
"mutable" is a C++ keyword. When we declare const, none of its data members can change. When we want one of its members to change, we declare it as mutable.

Answer2.
A "mutable" keyword is useful when we want to force a "logical const" data member to have its value modified. A logical const can happen when we declare a data member as non-const, but we have a const member function attempting to modify that data member. For example:
class Dummy {
public:
bool isValid() const;
private:
mutable int size_ = 0;
mutable bool validStatus_ = FALSE;
// logical const issue resolved
};

bool Dummy::isValid() const
// data members become bitwise const
{
if (size > 10) {
validStatus_ = TRUE; // fine to assign
size = 0; // fine to assign
}
}

Answer2.
"mutable" keyword in C++ is used to specify that the member may be updated or modified even if it is member of constant object. Example:
class Animal {
private:
string name;
string food;
mutable int age;
public:
void set_age(int a);
};

void main() {
const Animal Tiger(’Fulffy’,'antelope’,1);
Tiger.set_age(2);
// the age can be changed since its mutable
}

RTTI - What is RTTI?
Answer1.
RTTI stands for "Run Time Type Identification". In an inheritance hierarchy, we can find out the exact type of the objet of which it is member. It can be done by using:

1) dynamic id operator
2) typecast operator

Answer2.
RTTI is defined as follows: Run Time Type Information, a facility that allows an object to be queried at runtime to determine its type. One of the fundamental principles of object technology is polymorphism, which is the ability of an object to dynamically change at runtime.

STL Containers - What are the types of STL containers?
There are 3 types of STL containers:

1. Adaptive containers like queue, stack
2. Associative containers like set, map
3. Sequence containers like vector, deque

Bitwise Operations - Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively), what is output equal to in?
output = (X & Y) | (X & Z) | (Y & Z);
What is the difference between char a[] = “string”; and char *p = “string”;?
In the first case 6 bytes are allocated to the variable a which is fixed, where as in the second case if *p is assigned to some other value the allocate memory can change.

What’s the auto keyword good for?
Answer1
Not much. It declares an object with automatic storage duration. Which means the object will be destroyed at the end of the objects scope. All variables in functions that are not declared as static and not dynamically allocated have automatic storage duration by default.

For example
int main()
{
int a; //this is the same as writing “auto int a;”
}

Answer2
Local variables occur within a scope; they are “local” to a function. They are often called automatic variables because they automatically come into being when the scope is entered and automatically go away when the scope closes. The keyword auto makes this explicit, but local variables default to auto auto auto auto so it is never necessary to declare something as an auto auto auto auto.

What is the difference between char a[] = “string”; and char *p = “string”; ?
Answer1
a[] = “string”;
char *p = “string”;

The difference is this:
p is pointing to a constant string, you can never safely say
p[3]=’x';
however you can always say a[3]=’x';

char a[]=”string”; - character array initialization.
char *p=”string” ; - non-const pointer to a const-string.( this is permitted only in the case of char pointer in C++ to preserve backward compatibility with C.)

Answer2
a[] = “string”;
char *p = “string”;

a[] will have 7 bytes. However, p is only 4 bytes. P is pointing to an adress is either BSS or the data section (depending on which compiler — GNU for the former and CC for the latter).

Answer3
char a[] = “string”;
char *p = “string”;

for char a[]…….using the array notation 7 bytes of storage in the static memory block are taken up, one for each character and one for the terminating nul character.

But, in the pointer notation char *p………….the same 7 bytes required, plus N bytes to store the pointer variable “p” (where N depends on the system but is usually a minimum of 2 bytes and can be 4 or more)……

How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Answer1
If you want the code to be even slightly readable, you will use typedefs.
typedef char* (*functiontype_one)(void);
typedef functiontype_one (*functiontype_two)(void);
functiontype_two myarray[N]; //assuming N is a const integral

Answer2
char* (* (*a[N])())()
Here a is that array. And according to question no function will not take any parameter value.

What does extern mean in a function declaration?
It tells the compiler that a variable or a function exists, even if the compiler hasn’t yet seen it in the file currently being compiled. This variable or function may be defined in another file or further down in the current file.

How do I initialize a pointer to a function?

This is the way to initialize a pointer to a function
void fun(int a)
{

}

void main()
{
void (*fp)(int);
fp=fun;
fp(1);

}

How do you link a C++ program to C functions?
By using the extern "C" linkage specification around the C function declarations.

Explain the scope resolution operator.
It permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.

What are the differences between a C++ struct and C++ class?
The default member and base-class access specifiers are different.

How many ways are there to initialize an int with a constant?
Two.
There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.
int foo = 123;
int bar (123)
How does throwing and catching exceptions differ from using setjmp and longjmp?
The throw operation calls the destructors for automatic objects instantiated since entry to the try block.

What is a default constructor?
Default constructor WITH arguments class B { public: B (int m = 0) : n (m) {} int n; }; int main(int argc, char *argv[]) { B b; return 0; }

What is a conversion constructor?
A constructor that accepts one argument of a different type.

What is the difference between a copy constructor and an overloaded assignment operator?
A copy constructor constructs a new object by using the content of the argument object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class.

When should you use multiple inheritance?
There are three acceptable answers: "Never," "Rarely," and "When the problem domain cannot be accurately modeled any other way."

Explain the ISA and HASA class relationships. How would you implement each in a class design?
A specialized class "is" a specialization of another class and, therefore, has the ISA relationship with the other class. An Employee ISA Person. This relationship is best implemented with inheritance. Employee is derived from Person. A class may have an instance of another class. For example, an employee "has" a salary, therefore the Employee class has the HASA relationship with the Salary class. This relationship is best implemented by embedding an object of the Salary class in the Employee class.

When is a template a better solution than a base class?
When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the genericity) to the designer of the container or manager class.

What is a mutable member?
One that can be modified by the class even when the object of the class or the member function doing the modification is const.

What is an explicit constructor?
A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It’s purpose is reserved explicitly for construction.

What is the Standard Template Library (STL)?
A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification.
A programmer who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher than average understanding of the new technology that STL brings to C++ programming.
What is a scope resolution operator?
A scope resolution operator (::), can be used to define the member functions of a class outside the class.

What do you mean by pure virtual functions?
A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero.
class Shape { public: virtual void draw() = 0; };

What is polymorphism? Explain with an example?
"Poly" means "many" and "morph" means "form". Polymorphism is the ability of an object (or reference) to assume (be replaced by) or become many different forms of object.
Example: function overloading, function overriding, virtual functions. Another example can be a plus ‘+’ sign, used for adding two integers or for using it to concatenate two strings.

How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
Why is it difficult to store linked list in an array?
How can you find the nodes with repetetive data in a linked list?
Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable but aac or bcd are unacceptable.
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.

What’s the output of the following program? Why?
#include
main()
{
typedef union
{
int a;
char b[10];
float c;
}
Union;

Union x,y = {100};
x.a = 50;
strcpy(x.b,\"hello\");
x.c = 21.50;

printf(\"Union x : %d %s %f \n\",x.a,x.b,x.c );
printf(\"Union y :%d %s%f \n\",y.a,y.b,y.c);
}

Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively)
What is output equal to in
output = (X & Y) | (X & Z) | (Y & Z)

Why are arrays usually processed with for loop?
The real power of arrays comes from their facility of using an index variable to traverse the array, accessing each element with the same expression a[i]. All the is needed to make this work is a iterated statement in which the variable i serves as a counter, incrementing from 0 to a.length -1. That is exactly what a loop does.

What is an HTML tag?
Answer: An HTML tag is a syntactical construct in the HTML language that abbreviates specific instructions to be executed when the HTML script is loaded into a Web browser. It is like a method in Java, a function in C++, a procedure in Pascal, or a subroutine in FORTRAN.

Explain which of the following declarations will compile and what will be constant - a pointer or the value pointed at: * const char *
* char const *
* char * const
Note: Ask the candidate whether the first declaration is pointing to a string or a single character. Both explanations are correct, but if he says that it’s a single character pointer, ask why a whole string is initialized as char* in C++. If he says this is a string declaration, ask him to declare a pointer to a single character. Competent candidates should not have problems pointing out why const char* can be both a character and a string declaration, incompetent ones will come up with invalid reasons.

You’re given a simple code for the class BankCustomer. Write the following functions:
* Copy constructor
* = operator overload
* == operator overload
* + operator overload (customers’ balances should be added up, as an example of joint account between husband and wife)
Note:Anyone confusing assignment and equality operators should be dismissed from the interview. The applicant might make a mistake of passing by value, not by reference. The candidate might also want to return a pointer, not a new object, from the addition operator. Slightly hint that you’d like the value to be changed outside the function, too, in the first case. Ask him whether the statement customer3 = customer1 + customer2 would work in the second case.

What problems might the following macro bring to the application?
#define sq(x) x*x

Anything wrong with this code?
T *p = new T[10];
delete p;
Everything is correct, Only the first element of the array will be deleted”, The entire array will be deleted, but only the first element destructor will be called.

Anything wrong with this code?
T *p = 0;
delete p;
Yes, the program will crash in an attempt to delete a null pointer.

How do you decide which integer type to use?
It depends on our requirement. When we are required an integer to be stored in 1 byte (means less than or equal to 255) we use short int, for 2 bytes we use int, for 8 bytes we use long int.

A char is for 1-byte integers, a short is for 2-byte integers, an int is generally a 2-byte or 4-byte integer (though not necessarily), a long is a 4-byte integer, and a long long is a 8-byte integer.

What’s the best way to declare and define global variables?
The best way to declare global variables is to declare them after including all the files so that it can be used in all the functions.

What does extern mean in a function declaration?
Using extern in a function declaration we can make a function such that it can used outside the file in which it is defined.

An extern variable, function definition, or declaration also makes the described variable or function usable by the succeeding part of the current source file. This declaration does not replace the definition. The declaration is used to describe the variable that is externally defined.

If a declaration for an identifier already exists at file scope, any extern declaration of the same identifier found within a block refers to that same object. If no other declaration for the identifier exists at file scope, the identifier has external linkage.

What can I safely assume about the initial values of variables which are not explicitly initialized?
It depends on complier which may assign any garbage value to a variable if it is not initialized.
What is the difference between an object and a class?
Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects.
- A Class is static. All of the attributes of a class are fixed before, during, and after the execution of a program. The attributes of a class don't change.
- The class to which an object belongs is also (usually) static. If a particular object belongs to a certain class at the time that it is created then it almost certainly will still belong to that class right up until the time that it is destroyed.
- An Object on the other hand has a limited lifespan. Objects are created and eventually destroyed. Also during that lifetime, the attributes of the object may undergo significant change.

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
quicksort ((data + 222), 100);

What is a class?
Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.

What is friend function?
As the name suggests, the function acts as a friend to a class. As a friend of a class, it can access its private and protected members. A friend function is not a member of the class. But it must be listed in the class definition.

Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Mergesort always makes recursive calls to sort subarrays that are about half size of the original array, resulting in O(n log n) time.

What is abstraction?
Abstraction is of the process of hiding unwanted details from the user.

What are virtual functions?
A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacement is always called whenever the object in question is actually of the derived class, even if the object is accessed by a base pointer rather than a derived pointer. This allows algorithms in the base class to be replaced in the derived class, even if users don't know about the derived class.

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.
An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be "attach" to the object that has items to step through. .An external iterator has the advantage that many difference iterators can be active simultaneously on the same object.

Important Interview Questions

1. There is an array A[N] of N numbers. You have to compose an array Output[N] such that Output[i] will be equal to multiplication of all the elements of A[N] except A[i]. For example Output[0] will be multiplication of A[1] to A[N-1] and Output[1] will be multiplication of A[0] and from A[2] to A[N-1].

Solve it without division operator and in O(n).
2. There is a linked list of numbers of length N. N is very large and you don’t know N. You have to write a function that will return k random numbers from the list. Numbers should be completely random.

Hint:

1. Use random function rand() (returns a number between 0 and 1) and irand()
(return either 0 or 1)
2. It should be done in O(n).
3. Find or determine non existence of a number in a sorted list of N numbers where the numbers range over M, M >> N and N large enough to span multiple disks. Algorithm to beat O(log n) bonus points for constant time algorithm.
4. You are given a game of Tic Tac Toe. You have to write a function in which you pass the whole game and name of a player. The function will return whether the player has won the game or not. First you to decide which data structure you will use for the game.You need to tell the algorithm first and then need to write the code.

Note: Some position may be blank in the game। So your data structure should
consider this condition also.
5. You are given an array [a1 To an] and we have to construct another array [b1 To bn] where bi = a1*a2*...*an/ai. you are allowed to use only constant space and the time complexity is O(n). No divisions are allowed.
6. How do you put a Binary Search Tree in an array in a efficient manner.


Hint :: If the node is stored at the ith position and its children are at
2i and 2i+1(I mean level order wise)Its not the most efficient way.

7. How do you find out the fifth maximum element in an Binary Search Tree in efficient manner.

Note :: You should not use use any extra space. i.e sorting Binary Search Tree
and storing the results in an array and listing out the fifth element.
8. Given a Data Structure having first n integers and next n chars. A = i1 i2 i3 ... iN c1 c2 c3 ... cN.Write an in-place algorithm to rearrange the elements of the array ass A = i1 c1 i2 c2 ... in cn
9. Given two sequences of items, find the items whose absolute number increases or decreases the most when comparing one sequence with the other by reading the sequence only once.
10. Given That One of the strings is very very long , and the other one could be of various sizes. Windowing will result in O(N+M) solution but could it be better? May be NlogM or even better?
11. How many lines can be drawn in a 2D plane such that they are equidistant from 3 non-collinear points ?
12. Lets say you have to construct Google maps from scratch and guide a person standing on Gateway of India (Mumbai) to India Gate(Delhi).How do you do the same ?
13. Given that you have one string of length N and M small strings of length L . How do you efficiently find the occurrence of each small string in the larger one ?
14. Given a Binary Tree, Programmatically you need to Prove it is a Binary Search Tree
Hint: Some kind of pointer handling with In Order Traversal - anybody in for
writing some code
15. You are given a small sorted list of numbers, and a very very long sorted list of numbers - so long that it had to be put on a disk in different blocks. How would you find those short list numbers in the bigger one?
16. Suppose you have given N companies, and we want to eventually merge them into one big company. How many ways are theres to merge?
17. Given a file of 4 billion 32-bit integers, how to find one that appears at least twice?
18. Write a program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.
19. Design a stack. We want to push, pop, and also, retrieve the minimum element in constant time.
20. Given a set of coin denominators, find the minimum number of coins to give a certain amount of change.
21. Given an array,

i) find the longest continuous increasing subsequence.

ii) find the longest increasing subsequence.
22. Suppose we have N companies, and we want to eventually merge them into one big company. How many ways are there to merge?
23. Write a function to find the middle node of a single link list.
24. Given two binary trees, write a compare function to check if they are equal or not. Being equal means that they have the same value and same structure.
25. Implement put/get methods of a fixed size cache with LRU replacement algorithm.
26. You are given with three sorted arrays ( in ascending order), you are required to find a triplet ( one element from each array) such that distance is minimum.

Distance is defined like this :

If a[i], b[j] and c[k] are three elements then

distance=max(abs(a[i]-b[j]),abs(a[i]-c[k]),abs(b[j]-c[k]))"

Please give a solution in O(n) time complexity
27. Classic - Egg Problem

You are given 2 eggs.You have access to a 100-storey building.

Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical.You need to figure out the highest floor of a 100-storey building an egg can be dropped without breaking.

Now the question is how many drops you need to make. You are allowed to break 2 eggs in the process.

Monday, February 22, 2010

HCL Testpaper

1) In a murder case there are four suspects P,Q,R,S. Each of them makes a statement. They are p: "I had gone to the theatre with S at the time of the murder". q: "I was playing cards with P at the time of the murder". r: "Q didn't commit the murder". s: "R is not the murderer".
Assuming the only one of the above statement is false and that one of them is the murderer, who is the murderer?
a) P
b) Q
c) R
d) Cann't be concluded
e) S
and: E.) r and s are true as first two statements are contradictory. thus either P or S is murederer. as q is not murderer, he is tellinjg truth that P was with him. hence S is murderer.

2) Mohan earned twice as much as Deep. Yogesh earned rs.3/- more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts?
a) M < D < Y
b) M < Y < D
c) D < M < Y
d) It cann't be determined from the information given
e) D < Y < M
ans d)

03) Statistics indicate that men drivers are involved in more accidents than women drivers.
Hence it may be concluded that...
a) sufficiently information is not there to conclude anything
b) Men are actually better drivers but drive more frequently
c) Women Certainly drive more cautiously than Men
d) Men chauvinists are wrong about women's abilties.
e) Statistics sometimes present a wrong picture of things

04) What does the hex number E78 correspond to in radix 7 ?
a) 12455
b) 14153
c) 14256
d) 13541
e) 13112
Ans: d

5)Given that A,B,C,D,E each represent one of the digits between 1 and 9 and that the following multiplication holds:
A B C D E
X 4
E D C B A
what digit does E represent ?
a) 4
b) 6
c) 8
d) 7
Ans: c

6) HCL prototyping machine can make 10 copies every 4 seconds. At this rate, How many copies can the machine make in 6 min.?
a) 900
b) 600
c) 360
d) 240
e) 150
Ans: a

7) if a=2,b=4,c=5 then a+b c c a+b
a) 1
b) 11/30
c) 0
d) -11/30
e) -1
Ans: b

8) 10^2(10^8+10^8) = 10^4
a) 2(10)^4
b) 2(10)^6
c) 10^8
d) 2(10)^8
e) 10^10
Ans: b

9) Worker W produces n units in 5 hours. Workers V and W, workers independently but at the same time, produce n units in 2 hours. how long would it take V alone to produce n units?
a) 1 hr 26 min
b) 1 hr 53 min
c) 2 hr 30 min
d) 3 hr 30 min
e) 3 hr 20 min
Ans: d (e)

11-15 is the reasoning Questions: Occurs and Causes available in placement papers.com

Six knights - P,Q,R,S,T and U - assemble for a long journey in two travelling parties. For security, each travelling party consists of at least two knights. The two parties travel by separate routes, northern and southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point he knights can, if they wish, rearrange their travelling parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of travelling parties must be in accord with the following conditions

P and R are deadly enemies and, although they may meet briefly, can never travel together.
p must travel in the same party with s
Q cann't travel by the southern route
U cann't change routes

16) If one of the two parties of knights consists of P and U and two other knights and travels by the southern route, the other members of this party besides P and U must be.
a) Q and S
b) Q and T
c) R and S
d) R and T
e) S and T
Ans: e

17) If each of the two parties of knights consists of exactly three members, which of the following is not a possible travelling party and route?
a) P,S,U by the northern route
b) P,S,T by the northern route
c) P,S,T by the southern route
d) P,S,U by the southern route
e) Q,R,T by the southern route
Ans: b

18) If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other memnbers of this party besides U must be
a) P and S
b) P and T
c) Q and R
d) Q and T
e) R and T
Ans: c

19) If each of the two parties of knights consists of exactly three members of different pX-Mozilla-Status: 0009by the northern route, then T must travel by the
a) southern route with P and S
b) southern route with Q and R
c) southern route with R and U
d) northern route with Q and R
e) northern route with R and U
Ans: a

20) If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling party to the other travelling party, that knight must be
a) P
b) Q
c) R
d) S
e) T
Ans: e

IBM testpaper Dec 2009

1: Data Matrix Questions (no negative marking)
15 questions in 12 minutes
2: Number Series (1/4th negative)
20 questions in 4 minutes
3: Arithmetic Questions (1/4 negative)
12 questions 15 minutes
I have not remembered the exact question but i can give you the sample type that will certainly help you.
DATA MATRIX
Col 1 Col 2 Col3 Col4

Row 1 @ % $ #

Row 2 % + # &

Row 3 @ & % #

Row 4 * + $ &

Interchange Row3 with col3 , Row1 with Row4 and reverse the diagonal elements from top left to bottom right:
Quest; which is the 4th element of row2;
Quest; which is the second diagonal element from top;
NOTE: change in the matrix is applied only for the particular questions only , it is not reflected in to another question.
SERIES:
Series questions are very very simple. You must manage your time in such a way that you can go across all the questions in 4 minutes.
1: 11,22,23,11,24,25, ?
2: 1,4,9.64, ?
3: 2,3,5,7, ? (prime numbers)
and so on....
MATHEMATICS;
It has been observed that no one can solve more that 6 questions in the given time. So don't waste your time and solve at least 2 to 3 questions correctly. and don't be disappointed because you may be the top scorer if you have done well in other sections. This section questions are lengthy and requires long calculation.
Friends,
According to the global assessment it has been found that no one can solve all the questions within the stipulated time.The best way to get through the written is perform well in first 2 sections. I think there is no sectional cut off because even i had solved only 5 questions in which one may be wrong.
After the Written Test , There is a GD round in which they mainly concentrate on your communication skills. Our GD was around 15 minutes and we were in the group of 11 members. My GD topic was "MONEY MAKES PEOPLE IRRESPONSIBLE".
Once the GD round is over you have to go through the TECHNICAL AND HR ROUND which is combined. This round is simple, you must be good in your basics and your "area of interest" subject. I was asked about my academics background, and few basic questions from DBMS, my project. My interview went around 25 min. but my interviewer was very friendly and i didn't even realize that 25 minutes.
It is my personnel advice to concentrate more on your series and data matrix questions . One you are qualified in the first round then 70% of your work in done. Rest depends on your GD and your luck that you can't change it. isn't it?
Thats all about my experience with IBM, for any clearification you can mail me at (ashumku7@gmail.com). Hope to see you in IBM.
.......................................................... Wishing You All The Best.......... ............

Accenture test 2010

1)APTITUDE TEST:
Questions = 55 ; time limit = 60 minutes...along with that an essay to write in the same sheet in another 10 minutes. No sectional cut off , no negative marking. Offline (paper & pen) test

Directions for Questions 1-3 : Choose the option which will correctly fill the blank.
1. I will be here __________- Thursday and Friday.
A. During
B. for
C. until
D. after
Ans: A
2. I have been here ______ three years
A. since
B. from
C. for
D. none of the above
Ans: C
3. The sun rose ______the horizon.
A. below
B. over
C. in
D. above
Ans: D
Directions for Questions 4-6 : Choose the word nearest in meaning to the word in ITALICS from the given options.
4. Now the fury of the demonstrators turned against the machines.
A. Range
B. Acrimony
C. Asperity
D. Passion
Ans: A
5. Malice is a feeling that we should always avoid.
A. Spite
B. Envy
C. Hatred
D. Cruelty
Ans: A
6. He was punished for shirking his official work
A. Delegating
B. Slowing
C. avoiding
D. Postponding
Ans: C
Directions for Questions 7-10: Choose the answer option which will correctly fill the blank.
7. Seiko is______ practicing Buddhist
A. an
B. the
C. a
D. none of these
Ans:C
8. ___________ awards ceremony at Kremlin would not normally have attracted so much attention .
A. A
B. An
C. The
D. All the above
Ans: B
9.He spilled ___________ milk all over the floor
A. A
B. An
C. The
D. none of these
10. I saw _________ movie last night. _____ movie was entertaining.
A. the,A
B. A,the
C. An,A
D. the,the
Directions for Questions 11-14: Read the passage and answer the questions that follow on the basis of the information provided in the passage.
Disequilibrium at the interface of water and air is a factor on which the transfer of heat and water vapor from the ocean to the air depends. The air within about a millimeter of the water is almost saturated with water vapor and the temperature of the air is close to that of the surface water. Irrespective of how small these differences might be, they are crucial, and the disequilibrium is maintained by air near the surface mixing with air higher up, which is typically appreciably cooler and lower in water vapor content. The turbulence, which takes its energy from the wind mixes the air. As the speed of wind increases, so does the turbulence, and consequently the rate of heat and moisture transfer. We can arrive at a detailed understanding of this phenomenon after further study. The transfer of momentum from wind to water, which occurs when waves are formed is an interacting-and complicated phenomenon. When waves are made by the wind, it transfers important amounts of energy-energy, which is consequently not available for the production of turbulence.
11. This passage principally intends to:
A. resolve a controversy
B. attempt a description of a phenomenon
C. sketch a theory
D. reinforce certain research findings
E. tabulate various observations
Answer : B
12. The wind over the ocean usually does which of the following according to the given passage?
I. Leads to cool, dry air coming in proximity with the ocean surface.
II. Maintains a steady rate of heat and moisture transfer between the ocean and the air.
III. Results in frequent changes in the ocean surface temperature.
A. I only
B. II only
C. I and II only
D. II and III only
E. I, II, and III
Answer : A
13. According to the author the present knowledge regarding heat and moisture transfer from the ocean to air as
A. revolutionary
B. inconsequential
C. outdated
D. derivative
E. incomplete
Answer : E
14. According to the given passage, in case the wind was to decrease until there was no wind at all, which of the following would occur?
A. The air, which is closest to the ocean surface would get saturated with water vapor.
B. The water would be cooler than the air closest to the ocean surface.
C. There would be a decrease in the amount of moisture in the air closest to the ocean surface.
D. There would be an increase in the rate of heat and moisture transfer.
E. The temperature of the air closest to the ocean and that of the air higher up would be the same.
Answer : A
Directions for Questions 15-20: Read the passage and answer the questions that follow on the basis of the information provided in the passage.
Roger Rosenblatt's book Black Fiction, manages to alter the approach taken in many previous studies by making an attempt to apply literary rather than sociopolitical criteria to its subject. Rosenblatt points out that criticism of Black writing has very often served as a pretext for an expounding on Black history. The recent work of Addison Gayle's passes a judgement on the value of Black fiction by clearly political standards, rating each work according to the ideas of Black identity, which it propounds.
Though fiction results from political circumstances, its author react not in ideological ways to those circumstances, and talking about novels and stories primarily as instruments of ideology circumvents much of the fictional enterprise. Affinities and connections are revealed in the works of Black fiction in Rosenblatt's literary analysis; these affinities and connections have been overlooked and ignored by solely political studies.
The writing of acceptable criticism of Black fiction, however, presumes giving satisfactory answers to a quite a few questions. The most important of all, is there a sufficient reason, apart from the racial identity of the authors, for the grouping together of Black authors? Secondly, what is the distinction of Black fiction from other modern fiction with which it is largely contemporaneous? In the work Rosenblatt demonstrates that Black fiction is a distinct body of writing, which has an identifiable, coherent literary tradition. He highlights recurring concerns and designs, which are independent of chronology in Black fiction written over the past eighty years. These concerns and designs are thematic, and they come form the central fact of the predominant white culture, where the Black characters in the novel are situated irrespective of whether they attempt to conform to that culture or they rebel against it.
Rosenblatt's work does leave certain aesthetic questions open. His thematic analysis allows considerable objectivity; he even clearly states that he does not intend to judge the merit of the various works yet his reluctance seems misplaced, especially since an attempt to appraise might have led to interesting results. For example, certain novels have an appearance of structural diffusion. Is this a defeat, or are the authors working out of, or attempting to forge, a different kind of aesthetic? Apart from this, the style of certain Black novels, like Jean Toomer's Cane, verges on expressionism or surrealism; does this technique provide a counterpoint to the prevalent theme that portrays the fate against which Black heroes are pitted, a theme usually conveyed by more naturalistic modes of expressions?
Irrespective of such omissions, what Rosenblatt talks about in his work makes for an astute and worthwhile study. His book very effectively surveys a variety of novels, highlighting certain fascinating and little-known works like James Weldon Johnson's Autobiography of an Ex-Coloured Man. Black Fiction is tightly constructed, and levelheaded and penetrating criticism is exemplified in its forthright and lucid style.
15. The author of the passage raises and objection to criticism of Black fiction like that by Addison Gayle as it:
A. Highlights only the purely literary aspects of such works
B. Misconceive the ideological content of such fiction
C. Miscalculate the notions of Black identity presented in such fiction
D. Replaces political for literary criteria in evaluating such fiction
E. Disregards the reciprocation between Black history and Black identity exhibited in such fiction.
Answer : D
16. The primary concern of the author in the above passage is:
A. Reviewing the validity of a work of criticism
B. Comparing various critical approaches to a subject
C. Talking of the limitations of a particular kind of criticism
D. Recapitulation of the major points in a work of criticism
E. Illustrating the theoretical background of a certain kind of criticism.
Answer : A
17. The author is of the opinion that Black Fiction would have been improved had Rosenblatt:
A. Undertaken a more careful evaluation of the ideological and historical aspects of Black Fiction
B. Been more objective in his approach to novels and stories by Black authors
C. Attempted a more detailed exploration of the recurring themes in Black fiction throughout its history
D. Established a basis for placing Black fiction within its own unique literary tradition
E. Calculated the relative literary merit of the novels he analyzed thematically.
Answer : E
18. Rosenblatt's discussion of Black Fiction is :
A. Pedantic and contentious
B. Critical but admiring
C. Ironic and deprecating
D. Argumentative but unfocused
E. Stilted and insincere.
Answer : B
19. According to the given passage the author would be LEAST likely to approve of which among the following?
A. Analyzing the influence of political events on the personal ideology of Black writers
B. Attempting a critical study, which applies sociopolitical criteria to the autobiographies of Black authors
C. A literary study of Black poetry that appraises the merits of poems according to the political acceptability of their themes
D. Studying the growth of a distinct Black literary tradition within the context of Black history
E. Undertaking a literary study, which attempts to isolate aesthetic qualities unique to Black fiction.
Answer : C
20. From the following options, which does the author not make use of while discussing Black Fiction?
A. Rhetorical questions
B. Specific examples
C. Comparison and contrast
D. Definition of terms
E. Personal opinion.
Answer : D

Section 2 -Analytical Ability
No. of Questions: 20
Duration in Minutes: 20
21. 10 men can complete a piece of work in 15 days and 15 women can complete the same work in 12 days. If all
the 10 men and 15 women work together , in how many days will the work get completed?
A. 6
B. 6 1/3
C. 6 2/3
D. 7 2/3
Ans: C
22. if Kamal says ," Ravi's mother is the only daughter of my mother", how is Kamal related to Ravi ?
A. grandfather
B. father
C. brother
D. none of these
Ans: D
23. If Ramola ranks 14th in a class of 26, what is her rank from the last?
A. 13
B. 14
C. 15
D. 12
Ans: A
24. If Kalpana remembers that her mother's birthday is after 11th August but before 15th August and her brother
Ramesh remembers that the birthday is before 20th August but after 13th August. If both of them are correct,
when does the birthday of their mother fall?
A. 14th August
B. 15th August
C. 13th August
D. 16th August
Ans: A
25. A fort has enough food for 45 days for 175 soldiers. If after 15 days 100 soldiers leave the fort, for how many
more days the food will last?
A. 60
B. 70
C. 80
D. 75
Ans: B
26. The price of petrol is increased by 10%. By how much percent the consumption be reduced so that the
expenditure remains the same?
A. 8.5
B. 7
C. 10
D. 9
Ans:D
27 A train 120 meters long passes an electric pole in 12 seconds and another train of same length traveling in
opposite direction in 8 seconds. The speed of the second train is
A. 60 Km
B. 66 Km
C. 72 Km
D. 80 Km
Ans: C
28.A person travels through 5 cities - A, B, C, D, E. Cities E is 2 km west of D. D is 3 km north-east of A. C is 5
km north of B and 4 km west of A. If this person visits these citiesin the sequence B - C - A - E - D, what is
the effective distance between cities B and D?
A. 13 km
B. 9 km
C. 10 km
D. 11 km
Ans: A
29. Two identical taps fill 2/5 of a tank in 20 minutes. When one of the taps goes dry in how many minutes will the
remaining one tap fill the rest of the tank ?
A. 5 minutes
B. 10 minutes
C. 15 minutes
D. 20 minutes
E. None of the above
Ans : C
30. If r = (3p + q)/2 and s = p - q, for which of the following values of p would r2 = s2?
A. 1q/5
B. 10 - 3q/2
C. q - 1
D. 3q
E. 9q/2 - 9
Ans : A
Direction(31-34): In each question below are given three statement followed by 4 conclusions-I,II,III and IV. You have to take the given statements to be true even if they seem to be at variance with commonly known facts. Read all the conclusion and then decide which of the given conclusions logically follows from the given statements disregarding commonly known facts.
31. Statements
Some books are pens.
all pens are chairs
some chairs are tables
Conclusions
I. some books are chairs
II. Some chairs are books
III. all tables are chairs
IV. Some tables are chairs
A. All follow
B. Only I,II, and III follow
C. Only I,II, and IV follow
D. Only I,III, and IV follow
Ans: C
32. Statements
All cars are jeeps
All jeeps are buses
All buses are trucks
Conclusions
I. All trucks are buses
II. All buses are jeeps
III. All jeeps are cars
IV. All cars are trucks
A. None follows
B. all follow
C. Only III and IV follow
D. Only IV follow
Ans: D
33. Statements
Some trees are flowers
Some flowers are pencils
Some pencils are tables
Conclusions
I. Some tables are flowers
II. Some pencils are trees
III. Some tables are trees
IV. Some trees are pencils
A. All follow
B. Only I and III follow
C. Only IIand IV follow
D. None follows
Ans: D
34. Statement
All towns are villeges
No village is forest
Some forests are rivers
Conclusions
I. Some forests are villages
II. Some forests are not villages
III. Some rivers are not towns
IV. All villages are town
A. all follow
B. Only either I or II follow
C. Only either I or II or III follow
D. none of these
Ans: D
35. A rectangular tank 10" by 8" by 4" is filled with water. If all of the water is to be transferred to cube-shaped
tanks, each one 3 inches on a side, how many of these smaller tanks are needed?
A. 9
B. 12
C. 16
D. 21
E. 39
Ans : B
36. The average weight of a class of 24 students is 36 years. When the weight of the teacher is also included, the
average weight increases by 1kg. What is the weight of the teacher?
A. 60 kgs
B. 61 kgs
C. 37 kgs
D. None of these
Ans : B
37. The proportion of milk and water in 3 samples is 2:1, 3:2 and 5:3. A mixture comprising of equal quantities of
all 3 samples is made. The proportion of milk and water in the mixture is
A. 2:1
B. 5:1
C. 99:61
D. 227:133
Ans : D
38. A 20 litre mixture of milk and water contains milk and water in the ratio 3 : 2. 10 litres of the mixture is removed
and replaced with pure milk and the operation is repeated once more. At the end of the two removal and
replacement, what is the ratio of milk and water in the resultant mixture?
A. 17 : 3
B. 9 : 1
C. 3 : 17
D. 5 : 3
Ans : B
39. A team of 8 students goes on an excursion, in two cars, of which one can seat 5 and the other only 4. In how
many ways can they travel?
A. 9
B. 26
C. 126
D. 3920
Ans : C
40. One year payment to the servant is Rs. 200 plus one shirt. The servant leaves after 9 months and recieves Rs.
120 and a shirt.Then find the price of the shirt.
A. Rs. 80
B. Rs. 100
C. Rs. 120
D. Cannot be determined
Ans :C
Directions for Questions 41-45: Follow the directions given below to answer the questions that follow. Your answer for each question below would be: A, if ALL THREE items given in the question are exactly ALIKE. B, if only the FIRST and SECOND items are exactly ALIKE. C, if only the FIRST and THIRD items are exactly ALIKE. D, if only the SECOND and THIRD items are exactly ALIKE. E, if ALL THREE items are DIFFERENT.
41)LLMLLLKLMPUU, LLMLLLKLMPUU, LLMLLLKLMPUU

A) A
B)B
C)C
D)D
E)E
Ans: A
42) 0452-9858762, 0452-9858762, 0452-9858762
A) A
B) B
C) C
D) D
E) E
Ans: A
43) NIINIININN, NIININNINN ,NIINIININN
A) A
B)B
C)C
D)D
E)E
Ans:C
44) 4665.8009291, 4665.7999291, 4665.8009291
A) A
B) B
C)C
D)D
E)E
Ans:C
45)808088080.8080, 808008080.8080, 808088080.8080
A) A
B)B
C)C
D)D
E)E
Ans:C
46) If * stands for /, / stands for -,+ stands for * and -stands for +, then 9/8*7+5-10=?
A) 13.3
B) 10.8
C) 10.7
D) 11.4
47) If* stands for /, / stands for -,+ stands for * and -stands for +, then 9/15*9+2-9=?
A) 14.7
B) 15.3
C) 14.1
D) 16.2
48) If * stands for /, / stands for -, + stands for * and - stands for +, then which of the following is TRUE?
A) 36/12*4+50-8 =-106
B) 12*8/4+50-8 =45.5
C) 36*4/12+36-8 = 4.7
D) 8*36/4+50-8 = 300
49. If x, y, and z are consecutive negative integers, and if x > y > z, which of the following must be a positive odd integer?
A. xyz
B. (x - y) (y - z)
C. x - yz
D. x(y + z)
E. x + y + z
Ans : B
50. The average age of a group of 12 students is 20years. If 4 more students join the group, the average age increases by 1 year. The average age of the new students is
A. 24
B. 26
C. 23
D. 22
Ans : A
Directions for Questions 51-55: Nine individuals - Z, Y, X, W, V, U, T, S and R - are the only candidates, who can serve on three committees-- A, B and C, and each candidate should serve on exactly one of the committees.Committee A should consist of exactly one member more than committee B.
It is possible that there are no members of committee C.
Among Z, Y and X none can serve on committee A.
Among W, V and U none can serve on committee G.
Among T, S and R none can serve on committee C.
51. In case T and Z are the individuals serving on committee B, how many of the nine individuals should serve on committee C?
A. 3
B. 4
C. 5
D. 6
E. 7
Ans : B
52. Of the nine individuals, the largest number that can serve together on committee C is
A. 9
B. 8
C. 7
D. 6
E. 5
Ans : D
53. In case R is the only individual serving on committee B, which among the following should serve on committee A?
A. W and S
B. V and U
C. V and T
D. U and S
E. T and S
Ans : E
54. In case any of the nine individuals serves on committee C, which among the following should be the candidate to serve on committee A?
A. Z
B. Y
C. W
D. T
E. S
Ans : C
55. In case T, S and X are the only individuals serving on committee B, the total membership of committee C should be:
A. Z and Y
B. Z and W
C. Y and V
D. Y and U
E. X and V
Ans : A