Sunday, March 15, 2009

KPIT Paper


Paper Type : Technical - Java
Test Location : Indore
Posted By : Unknown

KPIT CUMMINS PAPER - INDORE
I have given the test at INDORE in KPIT current walkin.....
Requirement: about 450 freshers

most of the question are same as below

C++ paper:

cin is an
a.function
b.object
c.class.

what is the use of scope resolution operator?

advantage of inline function?

copy constructor is ans:call by value.

ques on vertual destructor?

inautix one ques?

one q' on container class?

con't remember the ques but the ans is Virtual base class

C paper

How will u terminate the statement? ans: ;

select the wrong one
a.a+=1;
b.a*=2;
c.a**=1;(ans)
d.a>>=1;

main()
{
int n,i=1;
switch(n)
{
case 1:
some stuff;
case 2:
some stuff;
default:
i=10;
}
printf("i=%d",i);
}
what will be value of i; ans:non of the above

4.pick ut the wrong one
#typedef some stuff
{
---
};

pick ut the wrong one
#typedef some stuff
{
---
};

one q's on do loop?

pick the odd one
a.malloc
b.calloc
c.new(ans)

char *ptr;
p=malloc(20);
How will u de allocate the memory?
a.delete.
b.free.

main()
{
char **p=="Hello";
printf("%s",**p);
}Ans: Garbage or nothing

main()
{
printf("%d%c ");
printf("%d%c ");
}Ans: Garbage Value

main()
{
int x==5;
printf("%d%d",x++,++x);
}Ans==6 6

Write a program for the problem: the array of inetegers indicating the marks of the students is given, U have to
calculate the percentile of the students aaccording to this rule: the percentile of a student is the %of no of student
having marks less then him. For eg: suppose
Student Marks
A 12 B 60 C 80 D 71 E 30 F 45
percentile of C = 5/5 *100 = 100 (out of 5 students 5 are having marks less then him) percentile of B = 3/5*100 =
60% (out of 5, 3 have markses less then him) percentile of A = 0/5*100 = 0%.

2) The code was given for a problem and u have to midentitfy the logical error in it. That was simple. The code was to
merge the Danagrams of 2 words. The danagram of a word is the letters of word arranfed in sequential order. eg
danagram of abhinav is aabhinv. merging of danamagram is to merge the danagrams of 2 or more words such
that the highest no of occurance are coming for each alphabet.eg merging of aabhinv and abbhhixz is
aabbhhinvxz.

3) total no of 4 in betweeen 4 and 444

4)one distance travel on square edges speed was given average speeed was to calculate...

some more questions were on time and distance....like the onbe of bird and motorcylist....etc..

5)paper was very time consuming and tough to solve ....
no negetive marking was there.....

Related Articles :


Stumble
Delicious
Technorati
Twitter
Facebook

0 comments:

Post a Comment

Career Launchers!!!

Note:

This blog can be viewed using all the browsers but can be best viewed in Mozilla Browser.
 

Career Launchers!!! Copyright © 2010 LKart Theme is Designed by Lasantha