[5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree...

62
Total No. of Questions : 4] [Total No. of Pages : 2 [5421]-101 M.C.A (Commerce Faculty) (Semester - I) 101 : Fundamental of Information Technology (2013 Pattern) Time : 3 Hours] [Max. Marks : 50 Instructions to the candidates: 1) All questions are compulsory. 2) Figures to the right indicate full marks. P2897 Q1) Define and explain in brief any seven of following : [7 × 2 = 14] a) Analog Transmission. b) AND logic Gate c) System software d) Joystick e) Explain following Dos commands. i) Copy con ii) Ren f) Machine language. g) Hexadecimal Number System. h) Elements of communication system. Q2) Attempt any three : [3 × 4 = 12] a) Write an algorithm to display multiplication table of a given number. Also draw flowchart. b) Explain physical structure of co-axial cable with its application. c) Differentiate between compiler and interpreter d) Convert the following : i) (1101011) 2 to Decimal ii) (2AC) 16 to Decimal SEAT No. : P.T.O.

Transcript of [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree...

Page 1: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 4]

[Total No. of Pages : 2

[5421]-101M.C.A (Commerce Faculty) (Semester - I)

101 : Fundamental of Information Technology(2013 Pattern)

Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) All questions are compulsory.2) Figures to the right indicate full marks.

P2897

Q1) Define and explain in brief any seven of following : [7 × 2 = 14]a) Analog Transmission.b) AND logic Gatec) System softwared) Joysticke) Explain following Dos commands.

i) Copy conii) Ren

f) Machine language.g) Hexadecimal Number System.h) Elements of communication system.

Q2) Attempt any three : [3 × 4 = 12]a) Write an algorithm to display multiplication table of a given number. Also

draw flowchart.b) Explain physical structure of co-axial cable with its application.c) Differentiate between compiler and interpreterd) Convert the following :

i) (1101011)2 to Decimal

ii) (2AC)16 to Decimal

SEAT No. :

P.T.O.

Page 2: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-101 2

Q3) Write short note on (any three) : [3 × 4 = 12]a) System Busb) Decision Tablec) Plottersd) Scheduling

Q4) Attempt any three : [3 × 4 = 12]

a) Explain the working of Batch processing system.

b) What is operating system. Explain functions of operating system.

c) List inter networking tools. Explain any one in detail.

d) List input devices. Explain any one.

Page 3: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 4]

[Total No. of Pages : 2

[5421]-102M.C.A (Commerce) (Semester - I)102 : PROGRAMMING IN ‘C’(2013 Pattern) (Credit System)

Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) All questions are compulsory.2) Assume suitable data, if necessary.

P2898

Q1) Attempt any seven from following : [7 × 2 = 14]i) What is keywords?ii) Write syntax of scanf statement.iii) What is conditional operator?iv) List all storage classes.v) What is string? .vi) Define Structure.vii) What is preprocessor? .viii) Write any two character I/O functions of files.

Q2) Attempt any three from following : [3 × 4 = 12]i) Write a short note on Bitwise operator.ii) Explain while loop with suitable example.iii) What is recursion? Explain with suitable example.iv) Trace the output of the following:

main(){

static int a[5];int i;for(i=0;i<=4;i++)printf(“%d\n”, a[i]);

}

SEAT No. :

P.T.O.

Page 4: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-102 2

Q3) Attempt any three from following : [3 × 4 = 12]i) Write a program to calculate xy using recursion.ii) Write a program to accept the string and find out its length.iii) Write a 'C' program for accepting two numbers as command line

argument and find sum and difference of these numbers.iv) Trace the output.

#include<stdio.h> .main(){

char s[]="welcome";int i;for(i=0;s[i];i++)printf("\n %c ", s[i]);

}

Q4) Attempt any three from following : [3 × 4 = 12]i) What is an Array? How to represent 2-D array in memory?ii) What do you mean by nested structures? How do we access a member

of inner structure declaration? Explain with example.iii) Write syntax and explain use of following functions:

a) getc()b) fgetc()c) getw()d) fscanf()

iv) Trace the output of the following:#include<stdio.h>main(){

int n=10;while(n>0){

if(n%2==0){printf(“%d is even”,n);}n--;

}}

Page 5: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 4]

[Total No. of Pages : 3

[5421]-103M.C.A (Commerce Faculty) (Semester - I)

ELEMENTS OF STATISTICS(2013 Pattern)

Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) All Questions are compulsory.2) Figures to the right indicate full marks.3) Use of calculator and statistical table is allowed.4) Symbols and abbreviations have their usual meanings.

P2899

Q1) Attempt any two of the following : [14]a) i) Calculate the Karl Pearsons correlation coefficient for the following

data:X 23 27 28 29 30 31 33 35 36 39Y 18 22 23 24 25 26 28 29 30 32

ii) State the properties of regression coefficients.b) Calculate mean and median for the following frequency distribution:

Marks 0-20 20-40 40-60 60-80 80-100No.of students 8 12 20 10 6

c) Calculate the Quartile Deviation and its Coefficient for the following data:Income (In Rs) Less 50- 70- 90- 110- 130- Above

than 70 90 110 130 150 15050

No. of Persons 8 26 30 45 20 17 4

Q2) Attempt any two of the following : [12]a) Explain the following terms:

i) Test of Significanceii) Level of Significanceiii) Critical Region

SEAT No. :

P.T.O.

Page 6: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-103 2

b) If the correlation coefficient X and Y is 0.5, find the correlation betweeni) X and -Yii) 2X and 3Yiii) X-10 and Y+15iv) X/2 and Y/5v) (X-10)/3 and (10-Y)/5vi) 3Xand-Y/5

c) Let X be a discrete random variable with probability mass function (p.m.f)

1P(X=x)= , 0,1,2,...1

0 ,otherwise

X nn

=+

=

Calculate mean and variance of X.

Q3) Attempt any three of the following : [12]a) What do you mean by "Binomial Distribution"? What are its features?b) A car hire firm has two cars which it hires out day by day. The number

of demands for a car on each day is distributed as a Poisson variate withmean 1.5. Calculate the proportion of days on whichi) Neither car is usedii) Some demand is refused

c) Explain the procedure of small sample test.d) The following 2X2 contingency table:

Smoker Non-SmokerLiterate 83 57Illiterate 45 68

Test whether there is any relation between literacy and the smoking at5 % level of significance.

e) The mean values of birth weight with standard deviations and samplesizes are given below by socio-economic status. Is the mean differencein birth weight significant between socio-economic groups?

High- Economic Low-Socio Economicgroup group

Sample Size n1=15 n1=10Birth Weight(kg) 2.91x = 2.26y =Standard Deviation S1=0.27 S2=0.22(Given t23,0.05=1.71)

Page 7: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-103 3

Q4) Attempt any three of the following : [12]

a) Explain the test procedure of Chi-square test to test independence ofattributes.

b) A random sample of size 400 members has a mean 99. Can it be reasonablyregarded as a sample from a large population with mean 100 and standarddeviation 8 at 5% level of significance?

c) Let X→N (3, 22) Find P(X< 2) and P(2<X< 5).

d) Calculate coefficient of variation for the following observations:

5, 16, 12, 10,22,13,8

e) What are the applications of normal distribution?

Page 8: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function
Page 9: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 6]

[Total No. of Pages : 2

[5421]-105M.C.A (Commerce) (Semester - I)

105 : PRINCIPLES OF MANAGEMENT(2013 Pattern)

Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) Question 6 is compulsory.2) Attempt any 3 from questions 1 to 5.3) Figures to the right indicate full marks.

P2900

Q1) a) Define the term Management. Explain in brief the nature of Management.[7]b) Explain in detail about managerial skills needed in carrying out the business

operation. [7]

Q2) a) Explain in brief McKinsey's Framework in evaluation of managementthought. [7]

b) Explain in brief Decision Theory Approach in management thought. [7]

Q3) a) Define Forecasting. Explain in brief the need of forecasting. [7]b) What do you mean by decision making? Discuss in brief the techniques

of decision making. [7]

Q4) a) What is controlling? Explain process of Controlling. [7]b) What is Motivation? Explain Herzberg's Two Factor Theory of

Motivation. [7]

Q5) Write a note on :a) "TOWS Matrix is a variant of classical business tool of SWOT Analysis,

used in management of present business in strategic way." Comment onthe statement. [7]

b) Explain the role of strategic management in today's competitive ITbusiness world. [7]

SEAT No. :

P.T.O.

Page 10: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-105 2

Q6) Short Notes (Any Two) : [8]

a) F W Taylor's Contribution

b) Decentralization

c) Need of Hierarchy Theory

d) Stress

e) Event Management

Page 11: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 4]

[Total No. of Pages : 1

[5421]-106M.C.A (Commerce) (Semester - I)BUSINESS COMMUNICATION

(2013 Pattern)Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) All questions are compulsory.2) Figures to the right indicate full marks.

P2901

Q1) What is communication? State the importance of communication. [14]OR

State the difference between verbal and non-verbal communication.

Q2) What is listening skills? Explain the importance of listening skills. [14]OR

What is video conferencing? Describe the advantages and disadvantages ofvideo conferencing.

Q3) a) What is an interview skills? Explain the types of interview. [7]OR

Draft a reply letter to Rameh Dying, Pune on behalf of Swastik RubberWorks, New Delhi about the price and time of delivery of Raincoats,Overcoats and Gumboots.

b) Write a job application letter to Telco Company Limited, Pune in responseto an advertisement for the post of an accountant. [7]

ORList out the reasons of complaint letters.

Q4) Write short notes. (Any two) [8]a) Semantic barriers to communication.b) Layout of business letter.c) Parts of speech.d) Social media.

SEAT No. :

Page 12: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

Total No. of Questions : 4]

[Total No. of Pages : 2

[5421]-201M.C.A. (Commerce) (Semester - II)

201 : DATA STRUCTURE USING C(2013 Pattern)

Time : 3 Hours] [Max. Marks : 50Instructions to the candidates:

1) Attempt all questions.2) Draw neat diagram wherever necessary.3) Figures to the right indicate full marks.

P2902

Q1) a) Answer any three of the following : [12]i) Explain in detail push and pop operation on the stack with example.ii) Explain various types of binary tree with example.iii) Write an algorithm for insection sort.iv) Write ‘C’ function to delete node from singly linked list.

b) Answer any one of the following : [2]i) Adjacency matrix.ii) Complete binary tree

Q2) Answer any three of the following : [12]a) Write short note on priority queue.b) Explain the concept of hashing and hash table.c) Explain different terminologies used in tree.d) Explain the concept of sparse matrix.

Q3) Answer any three of the following : [12]a) Explain graph traversal method with one example of each.b) Write an algorithm for DFS.c) What is binary tree. Draw binary search tree for following data

7, 2, 0, 9, 5, 8, 6, 1d) Explain the concept of Abstract data type with example.

SEAT No. :

P.T.O.

Page 13: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

[5421]-201 2

Q4) Answer any three of the following : [12]

a) Explain the terms big O, omega and theta.

b) Convert the following expression to prefix and postfix form. Show thestack contents at each step.

Expression ((A / (B – C + D)) × (F – A) × C)

c) Write a recursive function in C for binary search.

d) What do you mean by complexity? Explain time complexity and spacecomplexity with example.

Page 14: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ������������� ������������ ������������������������������������������������������������������

��������������������������������������������������������������������������������������������� ����������� ����������������������������� !����������������� "������������������������������������#$%%%�

�� ������ ������ �������� ��� ���� ����� ������� ��������� ��� ���&�������� ������������� ������&������� ���'�� �����������

�� ������������������������������������������������������������

��� ��������������� ������������ ������������� �� �����������������(

)���� ���*��������# ����������������+�������,��-

������.��,��+��������/�0�1�-2�34��+���������1�������,5���$%+

6���,�����1�%+���*�5�+�����-

�1�������,5�+�� ��**�����/0���������**�7)7+

44

������������� �����������

��������������� �����

������� � ���� ������������ ��������������

������������������ ������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�����

��������

������

Page 15: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

�� 8���������� �� �����)���� ���*��������# ����������������+�������- ��,��

- � ��,���+49��,��- � ��,���+4'����� ��,��-

�� ��**:+�� ��**���+

4'����� �,��- � ��,��+4

4+������; �� ������-

'����� ��,��-

�� ��**5+�� ��**����+

44+�������,��-

;��+���� ,��+��� ��%+

4�� 8���������� �� �����

)���� ���*��������# ����������������+���� �,�����������-

��� �����+4�� ����� �,�����������-

��� ����<��+

Page 16: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

4�������,��-

�� ��**�� �,=�$%�+��� ��%+

4�� 8���������� � �����

)���� ���*��������# ����������������+�������,��-

�����<�����1���">�?8@7+���<����'�� ��/�0��1�-$%�$=�A%�$24+��1�'�� �+�� ��**�<���**�����**����+�������+����+�� ��**<���**�������**����+

4

��� ��������������� ������������ BC����������������������� ������'����������������������'��������

������C�������� BC����������������������� ��������������� BC�������������������������������� ��������C�������� !�������������������'��� �������������������������������������

��� �������������������,�������� ������������ ������������������ "��������� ������� 8��������������� D����������

�������

Page 17: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �������������� �������� �������� ����������

�� �������������������������������������������������������������������������������

�� ���� ���������� ������������������������������������

�� ���������� �!"����#���$�%&����#������'�������������'����#�%"����#�����'��������� ���������("����#����#���������'����������)�#����#�����'�������������#����������'���������'���

��� ���������������� �������� ������� ������������ *������������������� ���+

�$�+

��

�� �,�-�.��������������������������������(&/����������������������-�.($�%$�0$�&$�1/������2�-��.%$�&$�3$�1$�(4/

���� �����$�(A B) A B� � ��� �

�� *� ����#���������������������� ��������������������������������#� *� ����#�������

�� ���#����������� *����

������������� �����������

��������������� �����

������� � ��� ��� ��������� ��������������

�������������� ����!����� ������� ��� �� ������� ������

���������� � ���������� �����

�� ������� ��������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�����

��������

������

Page 18: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

��� ���������������� �������� �������� ������������ )�#������������ ��

3 4 5

If 1 1 2 0

1 4 2

x x x� � �� �

�� ���������������5�������������6��������������� �#������������������������� 7������������ ����� �������������������������������

�� 2�-��.������������������������������������4/��� 8��-�.����9�&�-�"/�

#� ������������������ :����#�������� 7�������

��� ���������������� �������� �������� ������������ �������;������������������;����������������#�������� *�������#���������������������������������� ����� ��������

��-�.4$�</$�2�-�.����-�4�$����0��#���=/8�-�.�����������������������������������4"/

�� ���������������#���� ����� ���������������

~

p q

q

p

#� )�#������#>���� ��

3 4 1

A 3 6 1

4 8 2

� �� � � � �� �

�������

Page 19: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ������������ ������������������������������������������������������������������������������������������������������������������������������������������������� ���������������������������������������������������������������������������������������������� ����

�� ���� ! ������"�����������������#$ �

��� �������������������%��������&�������' ����������

�� ��������������������������������������������������

�� �������()*�����������������������������������������������������������������������������������������������������

�� +��������������������������������������������������������������������%������������&+$������������������,�����������������������������������������������-�������������� ��������������������������������

��� �������������������&��������� �����������

�� .�����������������������������������������/

�� #"��������������������%����

�� #"��������������������������������������

�� #"������������������������������������

������������� �����������

��������������� �����

������� � ���� ���� � ����������������� ���������� � ������ ��� �!"���#�$ �����#%�%"��&#

������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ���� ������������ �� ������������������

�� ������ � � ��� ������ ��� �������� �������!�

�����

��������

������

Page 20: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�������� � ���

��� .�����������������&��������� �����������

�� 0�������������������������

�� $�������������������

�� +����1��%��������������

�� $�������#��������

�������

Page 21: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �� ����������� ��� ����������

�� ������������������� �

��� ���������������������

���� ���������������� ��������

��� �������� �����������

� ��� ��! �������������������!����� �������"����"���� �� ��� ��#����� �������������"�����$� �����!� � �� ��� � ���������% �� � ���� ���� ��!�� ���� �!� ������� ��� � !��� � ��� � &���' ������������� �"�#(����� ���� �������� �

��� ����������� ��� �����������

�� #)��������������!(� ����$������ ����

� #)�����������& ����� ���������

�� #)�������& ����� �������

�� � ��������� ��� ������� ��������

������������� �����������

��������������� �����

������� � ���� ���� ��������� ���������� � ���

��� ��������������� �������!���������� ��� �� ������� ������

���������� � ���������� �����

�� ������� ��������������� ��� ����� ���� �� ���� ��� ����� ��������� ����������

�� ������� ��� ���� ����� ������ ����� �����

�� ���� �� �������� ��� � �� ����������

!� ����"�������������� #�������

�����

��������

������

Page 22: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�� ���� �� ��

��� �� *����� ��������"�� �����������������"�+!� ���� ������������ �� ����������*!����� ,*!��-�.*!��-���.��� .��������,���-�.���-���.���-����.�!��-���� ��������!����� �"���������!�� ���� ������/.00.000���� �����������������!����� 12 �3�����1���� �����!����� �� ��14!�1�����

� *����� ��������"�� �����������������! +!� �����������������

5��&, �. ���.�! �������.� �����!��� ,��.����.��� � ��&-�!��� , �.����� * ������ ��+!� ��� ��&�� �� ������� ��� �&������ ���

�� ������!���� �!������ ����! ����-��� ��� � !��� ��&�� ������� ������� ��&��! ������ �1 � �! �������1���� ��� �� �"��!��� �� ����� *�����52� ��&� �����/60�

��� ����������� ��� ������������� � ������������ ������!����� � #)���� ������ !��! ������+!� �"����)�������� %����"��� ��������� ��������������������� ����

7��� �(� �������.8�97� ���(����.8

�.�./09

7*�����.8�9

7*���&����97��� �(� �������.8

�9

7� ���(����.8�.5./69

7*�����.8�97��� �(� �������.8

�9

7� ���(����.8�.5./09

7��� �(� �������.8�97� ���(����.8

�.*.:09

7� ���(����.8�.�./69��������� ���

������ ��!����������+!�"�������&������!���"���"��� ���� ����� �� ����! ��

Page 23: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�� ���� �� ��

�� *����� ��������"��� ���������

8�

8�

����,�� ����,$�

);)<=0 $;$<=0

� ���,)� � ���,$�

����,��

�;�<=0

� ���,��

>����"��(�� ��������!�������� ��� ����$� ���

�������

Page 24: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ����������� ��������������� ����

�� ��������������������� �������������������� ������������������� ���������������

� ������������������� ����!����������"���������������� �����

�� �������#$%����� ����������������#$%�

��� ����������� ��������������� ����

�� &�����'������������������� (���� �������������������� ���������������������������� ���� �����

� ������� )� � "���������� ��"� )� � ����������������� ���� ��� "��� � *� "������������)� ���������������������� ��

�� �������*� ���� ��������� ������������)� ���� �����

��� ����������� �������������� ������ &��������!��������"����� �(���������� ���!�� ����������������������!�

�� ��������!��������"����� � � ������������������������ ������!������������� �����������+���������

������������������ ��������,��������� �����������"�"�!� ������������

������������� �����������

��������������� �����

������� � ��� � ������������� ���������� � ���

��������� ���������!����"������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ��������������� ��� �������� ������ ���� ���

�� ������ � � ������ �������� ����������

�����

��������

������

Page 25: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�������� � ��

��� &���������������������� ���

�� -� ���������#$%

� .�������%��"�������������

�� %��"�����������������"�!� �����

"� $������� � ��������#$������������,��,�"�����

�������

Page 26: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �������������� ����������

�� ������������������������������������

�� ��������������������������������������������

�� �����!������

�� ������������������������"������#����

�� �����������

�� $���������������������������������#����

%� "��������������������������������������&���������������������

�� '��������������������������'��������������������

��� ��������������� ����������

�� ���#����������������������������������������(&�����������&�����

�� ��������)�������%������������������������%�������������������%������������������*����������������

�� ������������������������������������������������#����

�� ��������)�������%�����������������������������������������'"�%������������&������'�������������������������%�����

������������� �����������

��������������� �����

������� � ��� � � � ������������������� ���������� � ����

��� ��!"#�$�%������� ��� �

���������� � ���������� �����

�� ������� ��������������� ��� �������� ������ ���� ���

�� ���� ������� ����� ��� ������

�����

��������

������

Page 27: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

������������������� ������������ ����������������(&���������������������������������������� (&�������������������������������������������%���� ��������)�������%�������%����%����������������������&���&�����

����� �+�������%����������&��������������������%�����'���'���'����'�������������������������������������

�� �����������%�������������������%������������������������������������������������������������������

��� ��������������� ����������

�� ������������������+������,"-

�� (&���������������������%��������������&�������������&������

�� ��������)�������%������������������������������������������������������������������������������

�� .�������������%��'�����%�'�����������������������'�����'����'������'�����������������������/�����������������������������������/����������������������������������������������������

�������

Page 28: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� ��� ��������������

�� ����� ��� ������� ��� ������ ���

�� ����� ������������� �� �� ������ ���

�� ����� ������������� �

��� ��������������� ��� ��������������

�� ����� ��� ����� �� ������ ���� �� �

�� ����� ���!����� ������ � � �������� "!��

�� #� ��� ����$�����

��� � ����� � �

������������������� ��� ��������������

�� ����� ����� � �������

�� ����� ��%&��������� ��������� �� �� ������ ���

�� #� ���'

� ������� ���� � �

� ����������� ����

������������� �����������

��������������� �����

������� � ��� �������������� ������������������������

��� ������� ����!�"�� �����# � �!��$�! ������� ��� �

���������� � ���������� �����

�� ������� ��������������� ��� ��������� �������������

�� ������� �� �������� ������� �������

�����

��������

������

Page 29: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������� �� �

��� ��������������� ��' ���������������� ����� ���� �������(������� ����!����� ����� ������������!������!��!��� ������ ���� #� ���(���������������

��� ��������������� ��' ���������������� ����� ���������!������������ ������ ) ����������"!�� ������� ����� #� ��� �������� ��������

��� ����� ��

�� ��������������� ��' ���������������� *��������������������!��+�,�������!��� ������� ����� ��������-������ ��� ��##./���� #� ��� ����$��-���"!��

��� ����.�����"!��

�� ��������������� ��' ������������ ����� ������ � ��������� �� �����������$�0�������

��� ��������������� ��' ������������ *�� ����������� ���������'���!�����1��2�������2�� � 2�*�����

�������� 3����� ��������� ��� ��!����� ����� ��!� ��� ��� ������ �������

��'�4�* � �5�6����������6

���'�4�* � �5�6�!��6�

��'�4�* � �5�6/!��� 6

�� ������(��� ������������� �����!������� ��� (��������#�!�� 1��2� �����2� � ��� ����� 2� �� ���� ����� ��� �� ���� ��� ����"! �������' � � ���7���"! ���� ����� ����!����!���������� ���� ��!���� ��� � � ���8���"! ���� ����� ����!������� ��� ���

�������

Page 30: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������������� �����������

��������������� �����

������������������ ������������

������������� �������������� �� ��

������������������������� � ���������� �����

�� ������� ���������������� �

�� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�� ���� ������������ ����� �� ��!��������

�����

��� ��������������� ������� �� ���� ����������

�� ���������� ���� ��������������������

�� � ������������ ���������������������������� �������������������� �����������������

�� ������������ ���������������������

�� ��������������

�� ������ � ��������� ������

�� ��������� ���� ����

�� �������� ��

�� ������� ���� ��������

��� ����������� ��� ������� �� ���� ����������

�� !"�������������������� ���������������

�� ��������������������������� "��������#�� "��������

�� !"�����$%&������������������������

�� !"������ ������ �������������'�� �� ����� �������������������������

�� �������������!"���������� ����������$%&�

�����

���������

Page 31: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

���� ��� �

�� ���������������� ������� �� ���� ����������

�� �����������������������������������������

�� ������$(��!"���������$(���������������������� ����������

�� ����������������������� ���������������������������

�� ���������� ��� ��� ��)�������������� ��������������������

��� ������������� �� ���� �����������

*�����������������+������� ������ ������������� �� ����������������� ������ �����*���� ���������#����������������������������������������)��� ,�������������������������������,����#����������������,��� ������� ������������������������������ #��������������������������������������� ��������������� ����������-��� �� ������������������� ������� �,����� ��������������� ����� ��������� ��� ���� ��� ����� � � � ���� ����� � ���� ���.�������� #����������,������������������������������������� �������������

/������ ����������������������������� �� �������������0

�� ���������������

�� 1�+������������

-/

�� ������ �� ���,�-��������������������������� ��� ������������� 1�����

�� ���������� ��� ���� ������ �� ����0

�� *���������2����� ���

��� �����%��������� �� ���

���� ( �� �������

����

Page 32: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������������� �����������

��������������� �����

�������������������� ������������

���������� ����������

������������������������� � ���������� �����

�� ������� ���������������� �

�� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�����

��� ��������� ��������������������� �����������

�� ��������

�� �������

��� ������� �������� !���������������� ����������

�� "����������������� #�$%���������������������

�� ����������� ��&'(���������)�����

�� ������������������� �����������

�� '�������������"���*+ ���������������

��� ������� �������� !���������������� ����������

�� "��������������������������,�������#����%

�� "�������������������� &���!��$����-�

�� �������!��!������������������������������

�� ,������../././....������������0����1����������������������2����������������������%

����

���������

Page 33: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ �

��� ������� �������� !���������������� ����������

�� "����$����-,�������%��������$����-����������

�� ��������3�������������"������� ����������������%

�� '� ������������������������������,������������

�� ����������� ����3�������� ��������������

��� ������� �������� !���������������� ����������

�� ����������� ��&�(�4&��

�� "��������5�6(�����

�� '� �������������#�$���"�$�

�� �������'��������!��� ��������

����

Page 34: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ����������� ���������������� ����

�� ��� ������������������������������� ��������� ��� �����������

�� ��� ����� ���������������������� ����������� �� �������!

�� ��� ������ �������������������� ����"�#$��%�&'()'����� ����#����*���+���+� �������!

��� ����������� ����������������� ����

�� ��� ����������������������+� �����������,���!

�� ��� ����������� ����,����������������� ����,�������!

�� ��� ����-����������.��,������� ���������������� �!

�� ��� �������������� �����������+� �������!

��������������� ����������������� ����

�� ��� �������� �����*�������� ���������������� �!

�� ��� ��������������������������� �� �������!

�� ��� ��������������� ��� ������������������������������ ��� ���!

�� ��� �������� ���������� ����,������������� �!

������������� �����������

��������������� �����

������� � �� ������ ����������� ���������� � ����

����� ���� � �������� ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ���� �������� ���� �� ������ ������ ������

�����

��������

������

Page 35: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�������� � ��

��� /�������������������������� ����

�� /�"�����.�.������������������������ ���!

�� 0���������� ���������� ��� ����������!

�� ��+� �������� ������� �!

�� ���� ��������!

�������

Page 36: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �������������� � �������� ������������ ������� ��� ��� ������������������� ����

��� ���� ������������� ��������� ��� ������!������ ������ ���"��������� ����

������������ ���� �� ����������#$������� ������������ ��������� ������ ����

��� ������������������� �� �� ��������������������������������������� ����

��� % ���� � � ������������������������ � �������� � ���������������#$����� � �������� � � ����

�� % ���� � � ����������������������� � �����&��������� ��� �''(�����

�� ��������)#$����&������������ �����)"����������� ����

�������

������������� �����������

��������������� �����

������� � �� ������ ����������� ���������� � ����

��� �� ���� �!� ��"#$ �!�#���%�! ������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ��������������� ��� ������� �������������

�� ������ �� �������� ������� ��������

�����

��������

Page 37: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� ������� �� ���� ����������

�� ��������������� ����

�� �������������� �����

�� ����� �������������������������

�� ����������� ��� ������ ��

�� !���������������"����#

�� !�������$������� ���� #

�� $ �����������%��� ����������#

�� !������������������������#

��� ���������������� ����������

�� �������&�'(���������������������

�� ��������������������������������

�� !�������)��������� � �������#�!���������������#

�� !���������� ���� �������� �� ������������� �������� ��������%��������������� ��������%��

������������� �����������

��������������� �����

������� � ���� ���� � ��������� ���������� � ������ ����������� !�����"!

������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� ����� ���� �� ���� ��� ����� ��������� ����������

�� ������� ��� ���� ����� ������ ����� �����

�� ���� �� ����������� � �� � ����������

!� ����"�������������� #�������

�����

��������

������

Page 38: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ��

��� ���������������� ������� �� ���* ����������

�� !������������#��������������������� � ��������

�� !��������� ��� ��� ���������%���

�� �������+

�� !,�+�-� ./

��� 0��� ���� �%����

�� ����������� ���� ��� �� ����������������

��� ���������������� ������� �� ���� ����������

�� !��������� ������ �������� ���������������������� ������� ������������� ��� ������������ ����� �����������������1�����&2����� ����������

�� !������������������������������ ��� �� ��#�$ �����������������#

�� ������%���� %����!����������������������� ���-�)�,����!-�)�,������%���� %���������������#

�� ����������� �������� ���"���������������� ������������� �����

�������

Page 39: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �������������� ����������

�� ��������������������������������������������������

�� �������������������������������������������������������

�� � ���������������������������!���

�� �����"�#�����������$������������������

�� %�����������������������������������

�� %������&��������������������������������������������������

�� '����������������%�����(��� �)�������� �����

�� '�������������������������������������������������������������!�������

��� ��������������� ����������

�� %�����������������������������������!������������������ �����*�����+����(����

�� � ����������������������������

�� � ����������������������������)����������������������

�� � �����������������!�����������,���+����������������

������������� �����������

��������������� �����

������� � ��� � � � ����������� ���������� � ���

��� � ���������� !�"������ ��"��#��"������� ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�� ���� ������������ �� ��� �� ��!��������

�����

��������

������

Page 40: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ��

��� ���������������- ������������ '����������������������./�� ����������� ����� �� � �����������������������������+���������������� �� � ������������+���01#�������������������������������� �� '������������������������������������������������/�� ���������

��������

��� ���������������- ������������ ���������!���������������������������!�����������.������������

!������������������������� ���������� ����"���� ������������"����"����2��������� ���3���� ��������2 �����3�4#��5#��4������ ������67������ ������3�4�����������4������ ���3����2 ��

�� �����������������!�������8%������9���������$�����������������������������:���:�������3�4�����������4����:������3�4�����������4���������3�4����������� 4�������:������3�4����������� 4����������3�4;��4

�� $����������:��"�����"�����������������������"

����<�3�3eno "e "��

� �:����

����0�3�3eno "e "��

� �:����

$����������2�:��"�����"�������"�������������������������"1��2�<�3������������ � �:1��2�1��2�0�3��

����������� � �:1��2�

$�����������:��"��"�����"��������������������������������������2 '�������!�����������������������������������������=��

���������.

�������2�����������������>"??"???5@ �������������������������������!��������������������������������������������

Page 41: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ��

�� %�� 8�3�A!�"�!

�"�!

�B�������������!������"

��3�A��"���"���"���B��������������������������3�A�

�"��

�B����������������

�� ����� �:���������������������������������������� ����� �:��������������������������������!�����������������CD�:!.��3�<���������!.��������������������.����������� E���������������������������������������������������������������������������������������������������������

1

2

3

1 1 1 0

0 1 1 0

0 0 1 1

q

q

q

� �� �� �� �� �� �

��������

1 2

1

2

3

5 20

25 8

30 6

S S

q

q

q

� �� �� �� �� �� �

����� �:��������������������������� �:��

�������

�����

����

����

Page 42: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ����������� ������

�� ��� ���������� ��� ����� ������������� ���

�� ��� ������������ ������� ��������� ���

��� ����������� ������

�� ��� �����!����������"#$����� ���

�� ��� ����%���&���%����&���� ���

��������������� ������

�� '�������� ���������(������������� �� ���

����������������

�������������������

��������������!�

�����������������������

�� '������ ������������� �! ����!(����������������������!(���� ���

������������� �����������

��������������� �����

������� � ���� ���� � ��������� ���������� � ������������� !"#"$���

������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� ��������� �������������

��� ������� �� ��� ����� ������� ��������

�����

��������

������

Page 43: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�������� � ��

��� ����������� �������� ��� �������!�������)��� ����� '������"#$������������������� ��������������� ���

��� ����������� �������� '����������������� ����*�*� ����� ��� ����� �(����������!������)�� ���

�� ����������� �������� ��� ������ ������������� � ����� ��� ���������������������!���(��� � ���

�� ����������� �����+�� ��� ������������� ���������������(� �� ����� ��� ����)������(��� ���

��� ����������� �������� ��� ��������� ���!�!�������"#$�����������(� �� ����� ��� �������(������������ � ���

�������

Page 44: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� ���������� ����������

�� �� �������������� ���

�� ���������� ������������������� � �����������������

�� �� ���������������������

�� ����� ��!"#$

�� %�������� ������������� �&��

� �� ������ � ����������

�� ����� ���������'��� ���(�����!�����

�� �� ���# �&��� � ���

� %����� ������������������������� �����������������������

��� ��������������� ��������)�* ����������

�� "���� ����������� ��������� ���������� ��

�� � �������� ��������� ��� ������������� �������� �������������

�� ���������� ��������������� �&�����������

�� "���� ��+��� � ��������������������

������������� �����������

��������������� �����

������� � ���� ���� � ����������������� ���������� � ���

� � !� �"�#$%&' "���(�)'�'("������ ��� �

���������� � ���������� �����

�� ������� ��������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ���������

�����

��������

������

Page 45: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ��

��� ��������������� ��������)� ������������ ���������������������,��, ���������� �� "���� ��������� ��� ������������������ � �������� ������������ ���������� �� ������������ ��������������

��� ��������������� ��������)� ����������

�� "���� ����� ������������ �������� -�� ��������������

�� �������������������������� +�����������+��� ��������

�� �� �������������� ������ +����

�� "���� ��$.!�$"/�#0%1� ����$���& ���

�������

Page 46: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������������� �����������

��������������� �����

�������������������� �������������������

����������� �� ��������� ������������

����������� !"����������� � ���������� �����

�� ������� ���������������� �

�� ����� ���� �� ���� ��� ����� ��������� ����������

�� ������� ��� ���� ����� ������ ����� �����

�����

��� �������������������� �������������������������������� ����������

�� �������

� �����������������

�� ����������������

� �������������

�� �������

�� ����������������

�� ���� ���������������������������

�� !���"��#�

��� �����������������������������������$ ����������

�� %������������""�������������"����

� &��������������������������������������������

�� %��������������� ������� �����������������������'�����������������������"����

� %�������������������������������

�����

���������

Page 47: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

���� �� �

�� �����������������������������������$ ����������

�� %�������������������������� �����

� &�������������������������������

�� %����������"��������������������!����������

� (������������ ��������������������� ����#��������������"�

��� �����������������������������������$ ����������

�� %��������)�������#�����������

� %�������������"�%����������*����������

�� ��������+�����������������'������������������������"����

� %����������%������#������"���

����

Page 48: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� �� ���������������� ����� �������������������� ���� ��� ����� �������������������������� �������� ������������ �� !�� ���"#������������� ������� � ������������ $�

������������� �%��������������������������� ��&

��� ��������������� �� ���������������� '� �������������(�) ����%���*�� + ������%����� �� ����������� ��*�� ����� ����������������� ��*

��� ��������������� �� ���������������� '� �������������� ��� ����� ��������",���*�� ����� ��� �����-������%�"�-.�����*�� /� ������������ ������ ��� ������� ���"���

��� ��������������� �� ���������������� '� �����������0 ���0�����*�� '���� ����� ��� ���� ��������� �� � �������� 12���345���

�4++�6�7��� ���,� ��-���������� 8��&�� / ����������������� 0�������%*

��� ��������������� �� ���������������� �� ���������.��9������:;<5<�/5<�.,=*� �� ���� ���� ���������

� ����>�����������������������0��&�� '��������������� �������������� � �������� �����&�� /� ���?

� ��� ������ � � ���������

������������� �����������

��������������� �����

������� � ��� ��� ����������������� ���������� � ���

� � !��"��# $"�#$%&'()�#*������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� ��������� �������������

�� ������ �� ��� ���� ���� ��������� ��������

�����

��������

������

Page 49: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������� �� �

�� ��������������� �� ���������������� '� ����������������������� ���������������� '� �����������%������� � ������ ��2��&�� <�������������������������������������������� �������*

�� ��������������� �� ������������ '� ����������������@A/�������������*�� 6 0�������� ������������BCD�9�EBF*�- ������G*��9�/� �����,2�

������� �� �����*

��� ��������������� �� ������������ '������������� � ��� ���� ������&�� ����� ����������� ����������%��� �����

���

Page 50: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� ����� ����� �������� ������� ��������� ��� ����� ������ ����� ������������ ������ ����������� ������ ���� ����������! ���

��� ��������������� ����� ���� ��"���������� ��� ���#$�%��!������ �� ���&����� ����� '� ���( �������������� �������������� ����������� ����� %������(��������� ��� ����

��� ��������������� ���� ����� �� #')���&������ ����������� ������ ���� ������� ���������������'���*������+�'���#��� ������ ���� ��,&��� ��! ����

��� ��������������� ����� � ������������� ��� �� ���#$�%���������������������������-��

��( ���#����-�./0000��12���#3�'�����������������-���1� �4������4#����-�� ���

�� � ������������ ������������������������#�� ���%����� ���

�� ���� ��5#6%! ����

������������� �����������

��������������� �����

������� � ���� ���� � ��������� ���������� ���

��� ������� ������� !"#!���$�#������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������������������

�� ������ � ������� ����������

�� ��������������� ������ �� ����

�����

��������

������

Page 51: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

�������� � ��

��� ��������������� ���

�� ����� ��#��(���# ���#���������������� ���#$����� ����

�� ����� ��7�� ��� �������� ����

�� ���� �������� �� ����! ����

�� ��������������� ���

�� ����� ��5#6%�� ����������� ����

�� "������������� �� ���������%��� ���

�� ���� ��������������! ����

�� ��������������� ���

�� ���������������$����!� �-������������������$����! ���

�� ����� ���#$��%�8������) ���-���! ���

��� ��������������� ���

�� � �������������������������������� ����$����1��4�%���4�'�� ����������������'��� ��� ���$���������������' ����-�����'��� ��� ��'���"� �7 ��������� ���

�� ���� ��#6�$!������ �� ���&��� ���

�������

Page 52: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ���������

�� � �������������������������������������������������������������������

�� �������������������������������������������������� ���

�� �������!����" ���

��� ���������

�� � �����#���������������������#������$���!�%����������������� ���

�� � �������$��%���!���&����������������� ���

�� ����������$���������%�������������" ���

��� ���������

�� ������#�������������#�������$���������� ������������������ ���

�� � �����%�������$���������$��$�������������������"�� ���������#�����������������$������������������� ���

��� ���������

�� � ������������%���������������������������������������� ���

�� � ����������$���������������������������$����$��'(! ���

������������� �����������

��������������� �����

������������ �� ����������� ���������� ����� � ������������� ! "#��

���$�%&����'������������ � ���������� �����

�� ������� ���������������� �

�� �������� �������������������������

�� ����� ���� ������� �������� � �� ����

�����

���������

������

Page 53: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��������� �

��� ���������

�� � ������������������������������������$���������� �������$�������������������� ���

�� ��������������#�����������������������" ���

�� ����������#�����)���" ���

�� ���������

�� ������������*����#������+,����$����� ���

�� � ����������$�����������������%����� ���

�� ������������������" ���

�� ���������

�� �������$���������$�������"� ���������$�������������"� ���������������������������������������������������������������������" ���

�� ���������������������-!� ���

�� ����������������������������" ���

��� ���������

�� � �������%�������������������%������������������������ ���

�� � ������������������%������������������������������ ���

�� ������������#���������������������#����������$" ���

���

Page 54: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ����������� ������������������ ����������

�� ��������������� ������ �

�� ����������������������� ��������� ��������

!� "#� ����!�����������$

�� �������������������������

�� "#� ����������������%$

�� ������! ����!�%������

�� ���������������

� ���������&�������!��

�� "#� ������������'�($

��� ����������� ��������������� ����������

�� "#� ��������������!������� ��$

�� "#� �����)'���*����%������������� $

!� ��������������%���������%�!���� ��!��+�����"#� ����!�����������!���� $

�� "#� ���������������������!�����������$

������������� �����������

��������������� �����

������� � ��� � � � ������������������� ���������� ������ � !"�#$��%!#"��&�%'���()!%

������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�����

��������

������

Page 55: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

��� ����������� ���������������� ����������

�� "#� ������!�%������������!������� �!�$

�� "#� ����������,���� ����� -.�$

!� �����������������!���"#� �������������%��������!� �!��������������!�$

�� ��������������������!������%���������%�

��� ����������� ���������������� ����������

�� "#� ��������%�/����'��������� ����/���������%����$

�� -������������������-���%�����!�0�������� ���!�����%$

!� ��������������!��������� ��������%�������������������1�����

�� "#� ����'�����������!����������$

�������

Page 56: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ����������� ����� ����������

�� ����������

�� �������������� ���

�� ��������������

�� ����������������

�� ����������������������

�� ���������������������

�� ����������������������

��� ����������� ������ �������� ����������

�� !�����������������������"#� ��������������������$

�� ����������� �������������������#��"#� ���$

�� "#� ��������������������������$

�� "#� ����%��&������%�������� �����������$

������������� �����������

��������������� �����

������� � ���� ���� � ��������� ���������� ���

������� ����������� ������������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ����� ��� �������� ������ ������

�����

��������

������

Page 57: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ��

��� ����������� ������ ��������' ����������

�� ����������������������������(��� �$

�� )����������������� �#��������������������$

�� "#� ����*�����������������������������$

�� ���������������������������������������� ����������������������������� ���+�������,����������� ���������$

��� ����������� ������ ��������' ����������

�� "#� �������� ����-����#����������������� ��$

�� "#� ���������������(��� �$

�� "#� ������� ��������� ���$

�� ���������������������������������������.��������������"����������$

�������

Page 58: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� �������������� ����������

�� ������������������

�� ������������������

�� ��������������

�� ��������������������

�� ��������� ��������������

�� !�������"��������#������$�������%�&

#� '�����������������������������'()

�� �����������*���������������

��� ��������������� ����������

�� + ������������������"����,((�-��(((

�� ������������������������������#����#��������'()

�� ����� ����������%�&��'���� ������#��� ������������#������������%�&

�� ��������������������������������������

������������� �����������

��������������� �����

������� � ���� ���� � ��������� ���������� ������ ������� � ���!"� �#��"

������ ��� �

���������� � ���������� �����

�� ������� ���������������� ��� ����� ���� � ���� ���������������������������

�� ������������������� ��������

�� ������� ��� ���� ����� ��� ������ ���� ��!��

�����

��������

������

Page 59: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

��� ��������������� ����������

�� + ����������������������'()

�� ��������������������������������.�������������������'()��'��������

�� + ����������������������������������������������

�� ���������������������������������#

��� ��������������� ����������

�� + ������������������������#�������������$&

�� ����������#��������������+ �����(��"����������������%�&

�� + �����������������������������������

�� ����������)��"����(�)�

�������

Page 60: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ��������������� ����� �������� ����������

�� �� ���������������������������������������� ���������������������������������

�� �������������������������������������������� ������������

�� ��������������������������������������������

��� ����������������� � �������� ����������

�� ���������������� ���������������������������������������� ���!�����������

�� �����������������������������������������

�� �����������������������������������������

�� �������������� ���������"������ �����������

��� ����������������� � �������� ����������

�� ���������������������������� ��������������

�� #������������������������!��� ����������!���������

�� �����������������������������������������������������

�� ��������� ���������������������������������"�����

������������� �����������

��������������� �����

������� � ��� � � � ����������� ���������� ���

��� ���������� �!"�� #$��$%��#%�" $&������ ��� �� ������� ������

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�� ���� ������������ �� ��� �� ��!��������

�����

��������

������

Page 61: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

������ � ���

��� ��������������� � �������� �����������

�� ���������������� ��������������� ������ ������������������������

�� ���������������������� �������������������������������

�� ���������������������� �$���������

�������

Page 62: [5421]-101collegecirculars.unipune.ac.in/sites/examdocs...ii) Explain various types of binary tree with example. iii) Write an algorithm for insection sort. iv) Write ‘C’ function

��� ������� ������ ���� ��� �������� �� ����� ������� ���� ��������������� ��� ����

����� ���������������������� ���������������������� �������������������������

��� ��� ������������������������� ������ ������������������������������������� ���� ����

��� ����������� ���� ������������������ ���

��� ��� ����������������� ����!��������� ����� ����������� ���� ������

� ������ ���� ���� �������������������������������� ������!���� �������

��� ��� ����������������� �������������� ������������������������������ ����������

��� ���������������������� ������ �������������������������������

��� ��� ������������� ��� ����������� ������������� ������ ������ ��� ������������ ����

��� ������������������ ����������"����������������� ���

�������

������������� �����������

��������������� �����

������� � ��� � � � ����������� ���������� ���

����������� �!"#$����#��%��&�%%������� ��� �

���������� � ���������� �����

�� ������� ���������������� ��� �������� ������ ���� ���

�� ������ � � ��� ������ �������� ����������

�����

��������