You are on page 1of 5

auaReccurrence Joee

da Jums
calat
d*m alhun by svUy Jo
a see
inly sum h
uels
uask done a al
Compiler error
2.

None
Not Attempt Correct Answer Option2
Max Marks 1.00 Time Taken : -
Marks Scored:

Solutionn
Anay sbscipting is commutative in C.

s =3str]

Bookmark
Max Marks: 2.000 Marks Scored

Solution:
I An example of implicit conversion
#include<stdio.h>
int main()

intx =
10; // integer x

chary 'a'; l character c

ly implicitly converted to int. ASCII

I value of 'a' is 97

X =X+ y:

IIx is implicitiy converted tofloat


floatz x+ 1.0;

printf("%d. %f" x. Z): lIx=107 y=108.000000

retum U
3.

:Px] s Q[y]
: x<i

4.

I:Qx]<P[yI
: ysi

Correct Answer:Option3
Not Attempt
T i m e Taken: -

Max Marks: 2.000 Marks Scored:

R which is formed by
in order to produce array
Solution {9,7,6,5}, size of P is 4, size of Q is 4, forms R=
Q =
and
example P[4] {1,2,3,4}, Il: x <i will satisfy the
condition,
=

Let us consider o n e P[X] <


Q[y],
=
the only optionI:
Q in non decreasing
order, substitute each and every option.
merging array P
and
is there you need to
For this no shortcut
size of an array is 8.
{1,2,3,4,5,6,7,9} and

Bookmark
Next
Prev
Question: 10
The movement needed for 6 disks in Tower of Hanoi problem is?

Not Attempt Corect Answer: 63

Max Marks: 2.00 Marks Scored Time Taken

Solution
This answer can be easily remembered.

For one disk one movement is needed.

For two disk:

(1) TTa(smaller piece)


TT2(bigger piece)
TT2(smaller or bigger piece)

3 movement.

For n movement 2"-1movement is required

Prev Next Bookmark

You might also like