Search This Blog

Tuesday 31 January 2012

Honeywell

HONEYWELL Test pattern contains multiple choice questions divided into
a) Verbal ability (15 ques)
b) Numerical aptitude (15 )
c) Logical and analytical ability (15)
d) Elementary computer science (10)
d) Programming langauages (20)
e) Operatins systems and Data structures (25)

  1. Honeywell placement paper march 2011
  2. Honewell placement paper



3i-Infotech


  1. Aptitude Written Test (Total time: 90 Min, 150 questions) 
            Section-1 English Language Ability (50 questions)
            Section-2 Quantitative Aptitude (50 questions)
            Section-3 Logical Reasoning (50 questions)
     2. Technical Interview

HR Interview questions

Technical Interview Questions

Yahoo


Selection Procedure was
  • Written test.
  • technical interview 1
  • technical interview 2
  • programming
  • HR interview 
Written Test::
C
C++
SQL
Regular Expression
Unix commands
Data structures(trees,graphs)

Wipro


Number of Rounds : 3

(1) Aptitude Paper , Essay Writing
2) Technical Interview
3) HR Rounds
In Aptitude Paper :
Pattern: English(20 ques.) , Maths(20 ques.) , C & C++(10 Ques.)

Latest wipro placement paper 2012

Virtusa


1)aptitude:- It was not multiple choice but fill in
the blank along with a reasoning for your answer.
2) Essay Writing :-to testyour communication skills.
3)Open-Ended Problem Solving: only one question
4)Programming: 4 programs-2 programs r to be written,1
to findthe bugs given ina pseudo code,1 to find what a
program does and its limitations.
Technical Interview

Tech mahindra/Mahindra satyam


This consits of 3 rounds.
1) Online  test (aptitude + english)
2) Technical Interview
3) HR Inteview

Sample placement paper

TCS


TCS pattern consits of 3 rounds.
1) Online aptitude test.
2) Technical Interview
3) HR Inteview


  1. TCS 71 Patterns
  2. TCS placement Paper june 2011
  3. TCS placement paper 1
  4. TCS placement paper 2

Syntel


Syntel pattern consits of 3 rounds.
1) Online aptitude test.
2) Technical Interview
3) HR Inteview


  1. Syntel placement paper 1
  2. Syntel placement paper 2


Sasken


  1. Written(aptitude + Technical) 
  2. Technical Interview 
  3. HR Interview 

Robert Bosch


Robert bosch pattern consists of 3 rounds.
1) Written (Technical + Aptitude)
2) Technical Interview
3) HR Interview


  1. Robert bosch placement paper 1
  2. Robert bosch placement paper 2


Redpine Signals

Polaris


The selection process will be
1. Written test
2. group discussion
3. technical
4. hr
written aptitude(cProg+microprocessor+verbal+reasoning+logical)the main topics are
1.pipes
2.blood relations
3.distances
4.percentages etc....

Persistent Systems


Number of Rounds-3
1 . Online Test ( Technical + Quantitative )
2 . Technical Interview -1
3. Technical Interview -2
4. HR Interview


  1. Persistent Placement Paper 1
  2. Persistent Placement Paper 2

Oracle


Oracle

Here is the pattern of Oracle written text.
Section 1:Aptitude: 30 questions. concentration is more on the English part.
a) There will be a sentence and two fill ups. Choice were given to fill the blanks.
b) Analogy
c) There will be 4 sentences. You have to arrange them in order.
d) Only 6-7 questions from apti.
Section 2:Technical: 30 questions.
a) C questions. around 8.
b) C++ questions around 2.
c) Java 2 questions.
d) Reaming were SQL.

Note: No negative marking.
Time 1 hr


  1. Oracle placement paper 1
  2. Oracle placement paper 2
  3. Oracle placement paper 3
  4. Oracle Placement paper 4


Oracle Paper Conducted by PAC

http://www.ziddu.com/download/16804335/oraclePAC.rar.html

Oracle Mock Test

http://www.mediafire.com/?qe213rz235r2b01

Mphasis


There were 4 rounds.
  1. Aptitude
  2. GD ( they may go for it or may not)
  3. Technical & HR
  4. Communication
The first phase was Online Aptitude test conducted by Aspiring minds.
The test consisted of several modules such as
  • Analytical, Logical
  • Computer fundamentals
  • Programming basics ( Java, C++, C, DS).

Mind Tree


The selection procedure of mindtree was as follows:
1- Written Test
2- Group discussion
3- Technical interview
4- HR interview


  1. Mindtree placement paper 1
  2. Mindtree placement paper 2
  3. Mindtree placement paper 3

Microsoft


Section I : English language test -25 Qstns.-20 Mints.
 It contained usual & easy english language qustns.
like prepositions, articles, antonyms-synonyms etc.
There were two paragraphs. One was about types of
networks & another was about CGI scripting. There were
some easy qstns. asking info. from the para.
Section II : Mental ability -25 Qstns.-30 Mints.
 It contained qstns. related to union & intersection
like there r N no. of students in a class, S no. of
them passed in 3 subjects, T no. of them passed in 2
subjects & U no. of them passes in all subjects, what
no. of students failed in all subjects.
Another type of qstns. were related to cubes, like
there is a cube, one side of it is painted with blue
color, the opposite side is painted with yellow color,
now it is cut into 16 cubes of equal size, now how
many cubes r having blue color at one side & no color
at its adjucent side, how many cubes r having no color
at any side etc.
Then there were qstns. like if + means -, * means /,
means *, / means +, then which of the following is
true ; there were four options. Each having some
calculation like 12+8-3*5/32=13. We have to select the
option having the correct calculation.
Most of the questions were similar to the above
mentioned patterns.
Section III : Aptitude test -20 Qstns.-20 Mins.
 This section contained qstns. exactly like those asked
in the Bank PO, Railways & UPSC exams. Its different
from usual apti. qstns.
E.g. which two of the following are same : 11225689 :
11225986 : 11225689.
Then Data sufficiency qstns. like statement 1 is
sufficient to get the answer, both 1 & 2 needed,
neither 1 nor 2 can give the answer etc.
Then Condition checking qstns. like there is a
recruitment of clerk. Some conditions r given like the
candidate should be graduate with 60%, his age should
be less then 30 years, typing speed should be atleast
45 wpm. etc.
Based on this we have to answer a perticular candidate
will be selected or not given his details.
Then Some simple & usual riddles like Ram goes to 5 km
east, then 5 km south, then west, now in which
direction he is. Then a man pointing to a photo says
he is the son of my grandmothers' son like that.
Section IV : Programming -C & DFS OR VB -40 Qstns.30 Mins.
U can choose either C & DFS paper or VB paper. I chose
C & DFS.
This was the toughest part bcoz qstns. were lengthy &
time was very short. Both C & DFS qstns. were almost
equal. Most of the C qstns. were asking about the
output of the given code. The DFS qstns. were about
link list, array, queue & also the graph theory.
This section demands a thorough preparation of C & DFS
& Graph theory.
  • Group Discussion
  • Technical Interview
  • HR Interview

L & T Infotech


There Were Total 4 Rounds For Selection.
 1st Round Was The Aptitude Test. It Had Total 90 Question Distributed In 3 Section.
 Section 1 Was Of Logical Reasoning. In That There Was Question Of Series, Picture Insertion Etc. Every       Section Has 30 Question & 30 Marks. There Was Also A Cut-of For Each Section.
 2nd Section Was Of Verbal Section. In That There Was Question Related To English Grammer, One Word Substitution, Find The Wrong Part Of The Sentences Etc.
 And 3rd Section Was Of Non-verbal Means Aptitude. In That There Was A Question Based On Time & distance, Time & work, Age. Blood Relation, Number Series, Direction Sense Test Etc.
Technical Interview 
HR Interview




  1. L & T placement paper 1
  2. L & T placement paper 2


Intergraph


There will be 3 rounds
  1. Written(Analytical + C skills) 
  2. Technical Interview 
  3. HR Interview

Intel


Number of rounds are 3
  1. Written Test
  2. Technical Interview
  3. HR Inteview
Written Test consists of 3 sections.
Section I - General Aptitude - 10 questions
Section II - System Concepts - 20 Questions
Section III - Programming Skills - C,C++, RDBMS - 20 Questions

iGate


1.WRITTEN TEST
    VERBAL-20
    QUANTITATIVE-30(REASONING AND NUMERICAL ABILITY)
    TIME: 1hour
    CUT OFF:30(10+20)
2.TECHNICAL INTERVIEW
3. HR Round

IBM


Number of Rounds are 3:
  1. Aptitude
  2. GD
  3. Technical Interview
  4.  Manager Interview
1. Aptitude
Dear Friends Please Go Through The Quantitative Aptitude N Reasoning Book Written By R.S. Aggarwal. These Books Are More Than Enough To Prepare For Aptitude Round.
2.GD
They Can Ask Any Topic In This Round. This Round Is Not Much Difficult Clear I Think. Speak Confidentially About Whatever You Speak.
3. Technical
For CSE and Is Students: Go Through The Subjects Such As Data Structure, Oops, Networks, C, C++, Operating System For This Round. They Will Check Your Basic Knowledge.
4. Manager Interview
This Round Is Totally Casual Round. They Just Check Your Communication Skill Here. Be Confident In Whatever You Speak And Speak Fluently.

HP


There are total 3 Rounds:
  1. Aptitude Round. 
  2. Technical Round. 
  3. HR Round. 
Aptitude:
RS. Agarwal Aptitude and Reasoning Books are more than enough to clear the first round (example sums are enough). There were the usual sections in Aptitude such as Analytical, Data Structures, C, OS and UNIX, DBMS. In Analytical (Section 1) questions from probability, Time and distance, reasoning, English. Regarding Technical sections (sections 2 to 6) you can clear easily if you learn the basics. In c they had given questions like output to the given program, program using increment and decrement, pointers. In DS questions are from sorting, Heap sort, in order, pre order n post order forms. In OS questions about Virtual memory, scheduling, etc, In UXIN you should be getting questions from UNIX commands like CHOWN, etc.

Hindustan Aeronautics Limited


There will be 4 rounds
  1. Written Test
  2. Group Discussion
  3. Technical Interview
  4. HR Interview

HCL


HCL pattern will be
  • Online aptitude test
  • Communication Skills Check Round
  • Technical interview
  • HR round
While coming to the pattern test consists of 4 modules.
  • In 1st module they will ask analytical questions like probability, age, speed, time and distance ,time and work.
  • In second module it will be from Verbal and nonverbal reasoning
  • They will give one long paragraph and till be quite confusing. they will ask questions from that. For this what you hav2 do is u first read the question and then you search answer i think u can save more time by doing this.
  • In 3rd module they will give sequence of numbers and they ll ask which is correct sequence . They will give sequence of numbers and they ll ask 2 fill the missing numbers. They will also ask questions from encoding and decoding.
  • In 4th module they will ask questions from languages like C, data structures (sorting). for this you have 2 study from Ehwanth Kanethkar. If you execute all the questions given n that bulk you can easily score more marks in this module. this is common for al the company.
  • They may also give paragraph and you will b asked 2 pick which sentence is correct by reading that paragraph u should pick rite sentence
  • Then they will give a word and they will ask exact meaning sometimes they will ask opposite also so b careful. for this you can read the words already given n the HCL question papers it will be quite enough.

Google


The online test consists of 4 modules.
For each module a timer is set (at the right hand side bottom of the screen).Total time given is 40 minutes.
Module 1:English (duration 5 min).
It consists of a single passage followed by 5 questions.
Module 2:General aptitude(duration 10 min)
It consists of 6 questions based on simple logics. For eg:1),Z, was invited by his brother ,A, to attend his daughter ,B,s birthday party who was busy dancing with her brother ,C,.
What is ,Z, to ,C,?
a)Uncle
b)Nephew
c)Cousin
d)No relation at all
ANS:- a, Uncle.
In a similar way questions based on relations,cost etc etc were asked.
Module 3:-Technical questions(duration 15 min)
It consists of 15 questions where some are web based, html, protocals etc etc.
For this section going through COMPUTER NETWORKS subject will be helpful to a great extent.
Module 4:-Test on Analysis(duration 10 min)
This section is the most time consuming one.Here we are asked to Rate certain sites along with an explanation. The images of these sites are also provided to us for a clear view and better understanding.
The completion of this section(on time)is entirely based on your typing speed and at the same time you have to be good at assesing.
  • Group Discussion
  • Technical Interview
  • HR Interview

Gen Pact


The recruitment process (four round) is quite a long. It goes as follows:--
I.    Written Test 1 Hrs
II.   GD
III.  HR
IV.  Technical.
Written Test consist of Three Section:
1) Verbal 10 Questions
2) Logical Reasoning 10 Questions  
3) Analytical 10 Questions

CTS


Aptitude was consisted of 2 sets
 1. Verbal (25 questions-30 minutes)
 2. Analytical (30 questions-30 minutes)
Verbal section was quite tough. It has 2 long paragraphs. Also Identify correct & Incorrect statement.rearrange sentances ie parajumbling. etc.
You should be good in English. please ensure that you have answered around 20 questions correctly. because they have sectional cut-off for verbal.
Time management is key thing. First start with correct statement & at the end go for Paragraphs. Keep your nerves, keep in mind that you dont have to asnwer all the questions, just answering around 20 questions will do. So dont be in so hurry. take your time.
Analytical:-
This section was easy. It had
 1) syllolism
 2)Picture perception
 3)Data sufficiency
 4)Data Interpretation
 5)Logical Interpretation

CSC


Round 1. Aptitude Test
Round 2. Technical Written
Round 3. Group Discussion
Round 4. Technical HR




  1. CSC Paper 1
  2. CSC Paper 2
  3. CSC Paper 3
  4. CSC Paper 4


CapGemini


There Were 3 Rounds Conducted By Capgemini
· Written Test
· Group Discussion
· Technical & HR Interview
Part-1
Written Test Was Conducted By Merit Track People
It Consisted Of Sections
· Quantitative Aptitude
· Verbal Reasoning
· Logical Reasoning


CapGemini Paper

ADP


1) Written:
It consist of two sections

  • Section A(Aptitude)
            Verbal ability:- 20 question, 20 minutes
            Quantitative:- 20 questions, 10 minutes
  • Section B(Technical) and Logical questions.
             .   20 questions to answer in 20 minutes.
             .  All questions are based on c programming
             .   Questions are something like find the output of the program, compilation errors,
                Find which line of the given program has an error. You ought to be thorouth with
                data structure in C to answer them. You will not find simple C programming
                questions be thorough with data structures using C.
  • Section C:- Essay writting:- 10 minutes
2)   Technical Interview

Accenture

  1. Written Test : duration 1hr 50 mins
  2.  Technical Interview (can be more than 1)
  3.  HR
 In written test there are 7 section of each 10-20 minuts duration:
 1. Verbal( English)
2. Aptitude
3. Mental Ability.
4. Data Structures and OS(20 questions,20 mins)
5. C or C++ (20 questions,20 mins)
6. Comprehension( 15minute reading time +10minutes,10 questions)
7. E-mail writing (5 minutes)
  1. Accenture Paper
  2. Accenture Placement Paper April 2011


Monday 23 January 2012

Complete ADP Paper 2012

Analytical & Computer Consepts

Question 1

Study the code giv~n below for 'ESTABLISHMENT' and based on the same code, draw up codes
for the follo'wing words -
EMBELLISH?

Choose one answer.
a. MYLMGGHRN
b. MYLMGGHRM
c. MYPMGGHRN
d. MYLMGGIRN


Question 2

NESTLES?

Choose one answer.
a. TMSEGMS
b. TMREHMR
c. TMREGMR
d. None of these

Question 3

Sudha walks 20 m south from her house, turns left and walks 50 m, again turns left and walks
80 m, then turns right and walks 10m to reach her school. In which directionls the school
from her house?
Choose one answer.
a. North-east
b. South-west
c. North
d. East

Question 4

What will be the middle digit of the number that comes in the middle after arranging tho
following number in descending order? 7~5, 743, 649, 517, 703, 791, 679.
Choose one answer.
a. 0
b. 7
c. 9
d. 4


Which of the following .will come in place of the question mark (?) in the following sequence?
'688, 9E12, 13117, 18N23, ?

Choose one answer.
a. 24S29
b. 24S30
c. 24T29
d. 24T30


Question 6

6. Naresh is taller than Prakash but not as tall as Manish. Reema is taller than Nitin but not as
tall as Prakash. Who among them is the tallest?
Choose one answer.
a. Prakash
b. Manish
c. Reama
d. Nitin



Saturday 21 January 2012

IEEE Technical Seminar Topics With Pdf's


1. Enhancing Service Federation Trustworthiness through Online Testing 


2. Are Our Online "Friends" Really Friends? 


3. Rural Outsourcing: Delivering ITO and BPO Services from Remote Domestic Locations 


4. Using Process Mining to Bridge the Gap between BI and BPM 


5. Are Password Requirements too Difficult? 



6. Turning on the Lights for Wireless Communications 

7. The iPlant Collaborative: Cyberinfrastructure to Feed the World 


8. Defending against Buffer-Overflow Vulnerabilities 


9. Human Ear Recognition 


10. Securing the Internet of Things 


11. OpenFlow: The Next Generation of the Network?



12. Using Data Mining to Help Design Sustainable Products


13. Biomedical Visual Computing: Case Studies and Challenges

14. Motivation, Awareness, and Perceptions of Computational Science


15. XML Management for Bioinformatics Applications


16. Climate Change Modeling: Computational Opportunities and Challenges


17. Improving Face Recognition Performance Using RBPCA MaxLike and Information Fusion


18. Video-Based Distance Traffic Analysis: Application to Vehicle Tracking and Counting


19. Buying a House, Then and Now


20. Mentoring and Making a Difference: What Can One Person Do?


21. NaturaSketch: Modeling from Images and Natural Sketches


22. Photosketcher: Interactive Sketch-Based Image Synthesis


23. 3D Rotations

24. The Third Wave in Computer Graphics and Interactive Techniques


25. Computer Graphics: From Desktop to Mobile and Web


26. How the Ocean Personality Model Affects the Perception of Crowds


27. Enabling Web Services to Consume and Produce Large Datasets


28. Changing the World


29. Public Sector Clouds Beginning to Blossom: Efficiency, New Culture Trumping Security Fears


30. A Framework for Integrating, Exploring, and Searching Location-Based Web Data


31. Toward Lossless Video Transport


32. Securing Database as a Service: Issues and Compromises


33. Operations with Degraded Security


34. Cloud Computing: A Records and Information Management Perspective


35. Small Is Beautiful, Big Is Inevitable


36. Detecting Fraud on Websites


37. Understanding Cloud Computing Vulnerabilities


38. Verification, Validation, and Evaluation in Information Security Risk Management


39. Monitoring Cloud Computing by Layer, Part 1


40. Securing E-passports with Elliptic Curves


41. Model-Based Testing


42. Access Control in JavaScript


43. Requirements Analysis: The Next Generation









Tuesday 17 January 2012

PL/SQL Programs for Interview


PL / SQL PROGRAMS

P1. WRITE A NESTED PROGRAM TO ADD AND TO MULTIPLY TWO NUMBERS.
DECLARE
N1 number;
N2 number;
Sum number ;
BEGIN
Sum := N1+N2 ;
<< inner_block >>
DECLARE
Prod number;
BEGIN
Prod := N1 * N2 ;
Dbms_output.put_line( "Product Value ="|| prod );
END inner_block ;
Dbms_output.put_line( "Sum Value ="||sum);
END;

P2. WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST AND COMPUND INTEREST ,
IF P, N, R ARE GIVEN.
declare
p number(9,2) ;
n number(9,2) ;
r number(9,2) ;
si number(9,2) := 0;
ci number(9,2) := 0;
begin
p := &principal_amount;
n := &no_of_years;
r := &rate_of_interest;
si := p*n*r/100;
ci := p*(1+r/100)**n;
dbms_output.put_line("simple interset ="||si);
dbms_output.put_line("compound interset ="||ci);
end;

SQL> /
Enter value for principal_amount: 10000
old 8: p:=&principal_amount;
new 8: p:=10000;
Enter value for no_of_years: 5
old 9: n:=&no_of_years;
new 9: n:=5;
Enter value for rate_of_interest: 10.5
old 10: r:=&rate_of_interest;
new 10: r:=10.5;
simple interset =5250
compound interset =16474.47
PL/SQL procedure successfully completed.
PROGRAM BASED ON IF LOOP

P3 . Write a program to check greatest of two numbers :
declare
a number(3) :=20;
b number(3) :=10;
begin
if a>b then
dbms_output.put_line("a is the greatest :"||a);
else
dbms_output.put_line("B is the greatest :"||b);
end if;
end;

SQL> /
a is the greatest : 20
PL/SQL procedure successfully completed.

P4. Given 2 sides of a rectangle .Write a program to find out its area is gr
eater than its perimeter or not .
declare
l number;
b number;
ar number;
pr number;
begin
l := &l;
b := &b;
ar := l*b;
pr := 2*(l+b);
if ar > pr then
dbms_output.put_line("the area iS > its perimeter"|| "area = "||ar||"perimeter ="||pr);
else
dbms_output.put_line("the area iS < its perimeter"||"area ="||ar||"perimeter ="||pr);
end if;
end;

Enter value for l: 10
old 7: l:=&l;
new 7: l:=10;
Enter value for b: 6
old 8: b:=&b;
new 8: b:=6;
the area is > its perimeter area = 60 perimeter = 32
PL/SQL procedure successfully completed.

P5. WRITE A PROGRAM TO INPUT A SINGLE DIGIT NO: CONVERT IT INTO WORDS.
Declare
a number;
t varchar2(10);
begin
a :=&a;
if a=1 then
t := 'one';
elsif a=2 then
t := 'two';
elsif a= 3 then
t := 'three';
elsif a= then
t := 'four';
elsif a=5 then
t := 'five';
elsif a=6 then
t := 'six';
elsif a=7 then
t := 'seven';
elsif a=8 then
t := 'eight';
elsif a=9 then
t := 'nine';
else
t := 'zero';
end if;
dbms_output.put_line(a||"="||t);
end;

Enter value for a: 2
old 5: a:=&a;
new 5: a:=2;
2 = two
PL/SQL procedure successfully completed



Friday 13 January 2012

Oracle Corporation Coding Skills Part

Coding skills
Question 1
Marks: 1
The subject of these questions is an unusually simple kind of binary tree, defined by these properties:
Terminal nodes contain a string.
Internal nodes have one or two children, called "left" and "right".
Either child of an internal node may be null, but not both.
Internal nodes contain no other information.
By "tree" we simply mean a node and all of its descendants.
A tree rooted at a node having left child A and right child B is a different tree than one rooted at a node having left child B and right child A.
Here's an example, with plus signs (+) used to indicate internal nodes:
+
/ \
/   \
/     \
+       +
/       / \
/       /   \
/       /     \
"A"      +      "D"
/ \
/   \
/     \
"B"     "C"
class InternalNode extends Node {
Node left, right;
}
What constructors could InternalNode have according to the specifications for the tree structure (potentially in addition to others)?

InternalNode()

InternalNode(String)

InternalNode(Node)

Choose one answer.
a. B only

b. A or C but not B

c. none of them are legitimate possibilities 

d. C only

Question 2
Marks: 1
Given the following code snippet answer the following question.
struct AVLTree
{
AVLTree * left;
AVLTree * right;
int element;
int height;
};
int MAX(int a, int b){
if(a>=b)
return a;
if(a<b)
return b;
}
int height(AVLTree *node)
{
if (node == NULL)
{
return -1;
}
else
{
return node->height;
}
}
AVLTree * single_rotation_with_left(AVLTree *k2)
{
AVLTree *k1;
k1 = k2->left;
k2->left = k1->right;
k1->right = k2;
k2->height = MAX(height(k2->left), height(k2->right)) + 1;
k1->height = MAX(height(k1->left), height(k2->right)) + 1;
return k1;
}

AVLTree * single_rotation_with_right(AVLTree *k2)
{
AVLTree *k1;
k1 = k2->right;
k2->right = k1->left;
k1->left = k2;
k2->height = MAX(height(k2->left), height(k2->right)) + 1;
k1->height = MAX(height(k1->right), height(k2->left)) + 1;
return k1;
}
AVLTree *double_rotation_with_left(AVLTree *k3)
{
k3->left = single_rotation_with_right(k3->left);
return single_rotation_with_left(k3);
}
AVLTree *double_rotation_with_right(AVLTree *k3)
{
k3->right = single_rotation_with_left(k3->right);
return single_rotation_with_right(k3);
}
void insert(int value, AVLTree **node)
{
if (*node == NULL)
{
*node = new AVLTree;
if (*node == NULL)
{
return;
}
(*node)->element = value;
(*node)->height = 0;
(*node)->left = (*node)->right = NULL;
return;
}
else if (value < (*node)->element)
{
insert(value, &((*node)->left));
if (height((*node)->left) - height((*node)->right) == 2)
{
if (value < (*node)->left->element)
{
*node = single_rotation_with_left(*node);
}
else
{
*node = double_rotation_with_left(*node);
}
}
}
else if (value > (*node)->element)
{
insert(value, &((*node)->right));
if (height((*node)->right) - height((*node)->left) == 2)
{
if (value > (*node)->right->element)
{
*node = single_rotation_with_right(*node);
}
else
{
*node = double_rotation_with_right(*node);
}
}
}

(*node)->height = MAX(height((*node)->left), height((*node)->right)) + 1;
}
Consider an input sequence that is provided as an input to the insert method
20,5,15,9,13,2,6,12,14,15,16,17,18,19
In the process of inserting the above nodes how many times double_rotation_with_left is being called?
Choose one answer.
a. 0 

b. 5 

c. 3 

d. 2 

Question 3
Marks: 1
Following is the array representation of a Binary search tree:

Consider that the binary tree specified above id given as input to the following function.
int numofleaves(tNode *p)
{
if (p==0)
return 0;
if (p->left==0 && p->right ==0)
return 1;
else
return numofleaves(p->right)+numofleaves(p->left);
}
Choose one answer.
a. 10 

b. 9

c. 4

d. 8

Question 4
Marks: 1
Following is the array representation of a Binary search tree:

Consider that the binary tree specified above id given as input to the following function.
int func1(tNode *p)
{
if (p!=0)
return func1 (p->left) + func1 (p->right) + 1;
else
return 0;
}
Choose one answer.
a. 10

b. 9

c. 4

d. None of these 

Question 5
Marks: 1
Following is the array representation of a Binary search tree:

What would be the output of the following code snippet for the above mentioned binary search tree?
void func() {
std::queue q;
q.push(root);
while( q.size() != NULL ) {
Node *cur = q.front();
std::cout << cur->data << std::endl;
q.pop();
if (cur->left)  q.push(cur->left);
if (cur->right) q.push(cur->right);
}
}
Choose one answer.
a. 5 10 15 20 78 98 99 100 105 110   

b. 99 20 100 10 78 105 5 15 98 110   

c. 99 20 10 5 15 78 98 100 105 110   

d. 5 15 10 98 78 20 110 105 100 99