Skip to main content

Accenture Sample Logical Equation Questions

Question 1
If 11 + 21 = 3, 34 + 45 = 32 and 42 + 53 = 23 then 64 + 75 = ?
a)59 b)43 c)69 d)53
Answer : a)59
Solution :
Let AB be the first number of the addition and CD be the second one. By closely observing, we can conclude that questions are in the general form AB + CD = (A x B) + (C x D).
i.e.,11 + 21 = 1 x 1 + 2 x 1 = 1 + 2 = 3
34 + 45 = 3 x 4 + 4 x 5 = 12 + 20 = 32
42 + 53 = 4 x 2 + 5 x 3 = 8 + 15 = 23.
Therefore, the result for 64 + 75 = 6 x 4 + 7 x 5 =24 + 35 = 59.
Question 2
If 15 + 22 = 32, 19 + 35 = 62 and 23 + 49 = 101 then 34 + 52 = ?
a)91 b)101 c)172 d)72
Answer : c)172
Solution:
By observing the question we can generalize the equations to, AB + CD = (AB x C) + D
Then,
15 + 22 = (15 x 2)+ 2 = 30 + 2 = 32
19 + 35 = (19 x 3)+ 5 = 57 + 5 = 62
23 + 49 = (23 x 4)+ 9 = 92 + 9 = 101
Similarly,34 + 52 = (34 x 5)+ 2 = 170 + 2 = 172
Hence 172 is the required answer.
Question 3
If 3 + 5 = 19, 5 + 9 = 61 and 9 + 12 = 117 then 13 + 14 = ?
a)128 b)152 c)124 d)183
Answer : d)183
Solution:
The above question seems to be in the general form A + B = (A x B)+(A - B)2
3 + 5 = (3 x 5)+(3 - 5)2 = 15 + 4 = 19
5 + 9 = (5 x 9)+(5 - 9)2 = 45 + 16 = 61
9 + 12 = (9 x 12)+(9 - 12)2 = 108 + 9 = 117
Similarly, 13 + 14 = (13 x 14)+(13 - 14)2 = 182 + 1 = 183.
Hence the answer is 183.

Comments

Popular posts from this blog

CIVIL SERVICES' (I.A.S.) EXAMINATION

The Union Public Service Commission (U.P.S.C.)  conducts Civil Services' Examination once a year in two stages. The Preliminary Examination (Objective Type) for selection of candidates for the Main Examination is held in the month of May. The Civil Services Main Examination  is held in the months of October/November. Blank application forms and other particulars are published in the Employment News, generally in the month of December. The last date for the submission of applications to the Secretary, Union Public Service Commission, Dholpur House, Shahjahan Road, NewDelhi-11001 1 is usually the last week of January of the year of examination. The Combined Civil Services Examination is conducted for Recruitment to the following Services/Posts: 1. Indian Administrative Service. 2. Indian Foreign Service. 3. Indian Police Service. 4. Indian P & T Accounts & Finance Service, Group 'A'. 5. Indian Audit and Accounts Service, Group 'A'. 6. Indian Customs and Centr...

Predict the output or error(s) for the following:

1 . void main(){ int const * p=5; printf("%d",++(*p)); } Answer: Compiler error: Cannot modify a constant value. Explanation: p is a pointer to a "constant integer". But we tried tochange the value of the "constant integer". 2. main() {  char s[ ]="man"; int i;  for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[i],*(s+i),*(i+s),i[s]); } Answer: mmmm aaaa nnnn Explanation: s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i]. 3 . main(){  float me = 1.1;  double you = 1.1;  if(me==you) printf("I love U"); else printf("I hate U"); } Answer: I hate U Explanation : For floating point numbers (float, double, long double) ...

How do I "get" a null pointer in my programs?

Answer : According to the language definition, a constant 0 in a pointer context is converted into a null pointer at compile time. That is, in an initialization, assignment, or comparison when one side is a variable or expression of pointer type, the compiler can tell that a constant 0 on the other side requests a null pointer, and generate the correctly-typed null pointer value. Therefore, the following fragments are perfectly legal: char *p = 0; if(p != 0) However, an argument being passed to a function is not necessarily recognizable as a pointer context, and the compiler may not be able to tell that an unadorned 0 "means" a null pointer. For instance, the Unix system call "execl" takes a variable-length, null-pointer-terminated list of character pointer arguments. To generate a null pointer in a function call context, an explicit cast is typically required: execl("/bin/sh", "sh", "-c", "ls", (char *)0); If the (c...