STMicroelectronics Java Questions: KPIT Cummins Paper IndoreTab.amp

Examrace Placement Series prepares you for the toughest placement exams to top companies.

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

  1. function

  2. object

  3. 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? can't remember the ques but the ans is Virtual base class C paper How will u terminate the statement? ans: select the wrong one

    1. a + = 1

    2. a * = 2

    3. a * * = 1 (ans);

    4. 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

  1. malloc

  2. calloc

  3. new (ans)

char * ptr.

p = malloc (20).

How will u de allocate the memory?

  1. delete.

  2. 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 = ⅗ * 100 =

60% (out of 5, 3 have markses less then him) percentile of A = 0/5 * 100 = 0%.

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.

total no of 4 in betweeen 4 and 444

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.

paper was very time consuming and tough to solve ____ no negetive marking was there…