The Mandelbrot set used for the construction of beautiful images is based on the following transformation : xn + 1= x2n + z Here,
A. | Both x & z are real numbers. |
B. | Both x & z are complex numbers. |
C. | x is real & z is complex. |
D. | x is complex & z is real. |
Option: B Explanation : Click on Discuss to view users comments. |
Which of the following permutations can be obtained in the output using a stack of size 3 elements assuming that input, sequence is 1, 2, 3, 4, 5 ?
A. | 3, 2, 1, 5, 4 |
B. | 5, 4, 3, 2, 1 |
C. | 3, 4, 5, 2, 1 |
D. | 3, 4, 5, 1, 2 |
Option: C Explanation : Click on Discuss to view users comments. Anuradha said: (7:12pm on Sunday 12th January 2014)
Initially 1, 2, 3 are pushed into stack after that if you want to push 4 in stack then pop 3 then push 4. If you want to push 5 then pop 4 and push 5. After that elements are popped from stack are 5, 2, 1.Hence, the sequence is 3, 4, 5, 2, 1. Therefore, (c) is correct. In second scenario (a) is correct. Hence (a)and (c) both are correct.
|
A. | 6 |
B. | 8 |
C. | 10 |
D. | 12 |
Option: C Explanation : Click on Discuss to view users comments. Rama said: (1:32pm on Monday 10th June 2013)
number of basic solutions= <= n!/ m!(n-m)!Here, m=3 n-m=2 So, Ans=10
|