Skip to main content

Wipro Sample Algebraic Problems

Below are three model problems dealing with the formulae (x+y)2 = x2 + y2 + 2xy and (x-y)2 = x2 + y2 - 2xy
Question 1
Find X when X - Y = 3 and X2 + Y2 = 89 where X and Y are integers.
a)10 b)-5 c)-10 d)-3
Answer : b)-5.
Solution :
We know that (x - y)2 = x2 + y2 - 2xy
Sub. the given values,
32 = 89 - 2XY
9 - 89 = -2XY
80 = 2XY
XY = 40
Since X and Y are integers and XY = 40,the possibilities of X and Y are as follows:
(1,40), (2,20), (4,10), (5,8), (-1,-40), (-2,-20), (-4,-10) and (-5,-8)
X - Y is a positive integer(3), so X will be greater than Y.
By checking the given condition X - Y = 3, we have X = 8, Y = 5 or X = -5, Y = -8.
i.e., X is either 8 or -5.
From the given options we can conclude that X = -5.
Question 2
If the summation and multiplication of two integer is 24 and 143 respectively then the difference of them is:
a)2 b)1 c)12 d)4
Answer : a)2
Solution :
Let A and B be two integers.
Then A + B = 24 and AB = 143.
We know that (x+y)2 = x2 + y2 + 2xy
Here, 242 = A2 + B2 + 2(143)
576 - 286 = A2 + B2
A2 + B2 = 290.
i.e., Summation of the square of two integers is 290.
i.e., A2 or B2 is < or = 290.
Since A and B are integers, the possibilities are {1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289}.
From the above set of square numbers, the values may be
A2 + B2 = 1 + 289 or 121 + 169 = 290
A2 + B2 = 12 + 172 or 112 + 132 = 290
The condition A + B = 24 and AB = 143, is satisfied by A = 11, B = 13 or A = 13, B = 11
We have to find the difference of A and B.
Hence the difference is 2.
Question 3
If X - Y = 9, X2 + Y2 = 257 and X,Y are integers then what will be the value of X and Y ?
a)21,12 b)15,6 c)none of these d)cannot be determined
Answer : d)cannot be determined
Solution :
Here we use the formula, (x-y)2 = x2 + y2 - 2xy
92 = 257 - 2XY
XY = (257-81)/2 = 176/2 = 88
XY = 88
Since X and Y are integers and XY = 88 then the possibilities of X and Y are (1,88), (2,44), (4,22), (8,11), (-1,-88), (-2,-44), (-4,-22) and (-8,-11).
By observing, none of the above possibility of X and Y satisfies X - Y = 9.
Hence, the values of X and Y cannot be determined by given conditions.

Comments

Popular posts from this blog

Cognizant Company Profile and it's information for Interview

Website: www.cognizant.com HQ Teaneck, NJ Industry Information Technology Services Size 130K+ Employees, $6B+ Revenue NASDAQ CTSH Competitors Infosys, Wipro, Tata Consultancy Services   About cognizant Cognizant Corporate view: Cognizant is an American multinational IT services and consulting corporation headquartered in Teaneck, New Jersey, United States. Cognizant has been named to the 2010 Fortune 100 Fastest-Growing Companies List for the eighth consecutive year. Cognizant has also been named to the Fortune 1000 and Forbes Global 2000 lists. It has consistently ranked among the fastest growing companies including the 2010 Business Week 50 list of the top-performing U.S. companies, the Business Week Hottest Tech Companies 2010, and the Forbes Fast Tech 2010 list of 25 Fastest Growing Technology Companies In America. Founded: 1994 Headquarters: Teaneck, New Jersey, U.S. Key people:  Francisco D'Souza (President & CEO) Lakshmi Naray...

Introduction to JavaScript- Basics

JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari. What You Should Already Know Before you continue you should have a basic understanding of the following: HTML and CSS If you want to study these subjects first, find the tutorials on our Languages page . What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language JavaScript is usually embedded directly into HTML pages JavaScript is an interpreted language (means that scripts execute without preliminary compilation) Everyone can use JavaScript without purchasing a license Are Java and JavaScript the same? NO! Java and JavaScript are two completely different languages in both concept and design! Java (developed by Sun Microsystems) is a powerful and much more complex programming language ...

Two sticks and matchbox, measure exactly 45 minutes by burning these sticks

Question: You have two sticks and matchbox. Each stick takes exactly an hour to burn from one end to the other. The sticks are not identical and do not burn at a constant rate. As a result, two equal lengths of the stick would not necessarily burn in the same amount of time.  How would you measure exactly 45 minutes by burning these sticks? Answer: This puzzle used to be asked in Wall Street interviews long time ago. It is very rare for this question to be asked now but it is a very good question to help you think a little outside the normal thought process. The answer is really simple. Since the sticks do not burn at a constant rate, we can not use the length of the stick as any sort of measurement of time. If we light a stick, it takes 60 minutes to burn completely. What if we light the stick from both sides? It will take exactly half the original time, i.e. 30 minutes to burn completely. 0 minutes – Light stick 1 on both sides and stick 2 on one s...