Go Back   2022-2023 StudyChaCha > StudyChaCha Discussion Forum > General Topics

  #1  
Old May 8th, 2014, 06:27 PM
Sashwat's Avatar
Super Moderator
 
Join Date: Jun 2011
Default

Can you please give me the Sapient placement exam previous year question papers as it is very urgent for me?

As you want to get the Sapient placement exam previous year question papers so here is the information of the same for you:

SAPIENT PAPER

Instructions:
Write appropriate comments for your code wherever required.
Focus on the approach & demonstrate problem comprehension & logic.
Assume anything required & clearly indicate your assumptions. Note: Don’t write any input functions such as main().

Program1. Reservation
There are 67 seats in train. There are only 5 seats in a row and in last row there are only 2 seats. One person can reserve only 5 seats at a time. If person reserving seat , the care is taken that he may get all in row. If seats are not available in row then the arrangement is so that person group gets nearby seats.
The following class is given
public class seat
{
char name; int seat; boolean is Seatempty
}

1. Draw require class diagram and object diagram.
2. Write function seatallot (int noofperson) to allocate seat with seat number printed for the each name.

Program 2. Stringreplace
The forum is going on and administrator find that some people use abusing or bad language in discussion.so he decided that when he uses such language it was replaced with beap.
question:
1. draw class diagram,and use appropriate data structure.
2. write function replacestring()

1) Write a program for the problem: the array of integers indicating the marks of the students is given, U have to calculate the percentile of the students according 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 marks less then him)
percentile of A = 0/5*100 = 0%.

2) The code was given for a problem and u has to identify the logical error in it. That was simple. The code was to merge the Danagrams of 2 words. The denagram of a word is the letters of word arranged 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)you have to write a program to calculate the sales price of the product for a given conditions. it is very simple. (20 minutes)

4) You need to create a class diagram or data model for the given requirements. The requirement is as follows:-
In a village there are only few families and there were only one newspaper/magazine agent.
there are lot of news paper and magazine available and every month a new magazine or newspaper it introduced. Every family is getting at least one newspaper or magazine.
Every month at the end the cost is calculated and collected. Suppose if a family wants to cancel the subscription, they should be able to do it at any day of the month. The family should be billed only for the days which they got the newspaper or Magazine. The agent plans to buy a computer and proceed. Please create a class diagram or data model which helps him in developing a new software for it. Do not write the code or Flowchart.(25 minutes)

5) . Design a class diagram or data model for this problem:-
A company has some clients and some officers. Also it has some rooms to be used for meetings between client and officers. One officer is responsible for each room. And room has unique room id. A meeting will be arranged only when the officer and client are free and room is also free. The officer and clients must be registered to the system which will give them unique email ids. Arrange the meetings. Don’t write code.

6) Write a program to find the occurrence of characters '!', '$' '?' '.' ',' etc. Also write a function to replace all odd occurrence of '?' to ' . ' .

7) There was a given program to insert a value at the proper position in a doubly linked list. There was some logical error in that due to which it was not working properly. Find out that error. It was easy.

Java Program to convert the numeric to Words, and there was a bug in it. we have to solve it and give the comments. There is no Syntax error but only the logical error. The program compiles without errors and runs, but the desired output is not got. for example
Input: 456
Output : four hundred and fifty six (correct)
Input :14000
Output : hundred and fourteen thousand. (wrong)
Desired output : fourteen hundred thousand.
Input :235126
output : hundred and two hundred and thirty five thousand hundred and one hundred and twenty six (wrong)
I am not much clear about the question but frame it out.(15 minutes)

Additional 2 programs to search an element immediately gr8r then all present in an array without sorting and a modified version of it to handle all error conditions

Instructions:
1. Write appropriate comments for your code wherever required.
2. Focus on the approach & demonstrate problem comprehension & logic.
3. Assume anything required & clearly indicate your assumptions.

Qs.1: A company has many employees & each employee is led by only 1 person except for the CEO (who has no boss). The cost to the company of an employee is the sum of his salary plus the cost to the company of all the people led by him. Given is the following structure :
Employee
Data members:
Name
Salary
isBoss
nameOfBoss

Methods:
getSalary
getName

a) Define the class/structure
b) Write a function get Cost To Company() to calculate the cost to the company of an employee whose name is passed as a parameter to the function get Cost To Company()
public float get Cost To Company (String name)

Note: Don’t write any input functions such as main() & assume that the data structures have already been defined.

Qs. 2: Generate an ordered sequence of 4 unique alphabets, where an ordered sequence is one which is arranged in ascending alphabetic order.
Eg. Ordered : ABCD, BCHU, KRXZ
Unordered : DCBA, BNMA

Technical interview: 50 minutes technical interview .
10 min: Debugging
q1 .They had given me one program for debugging. The program is in java .and don’t have any syntax error. Just logical error.
10 min : Then told me to correct the mistake I had done in 2nd round answer paper.
10 min :About My project
10 min :curriculum /academic subjects .
10 min :Extra activity – like IEEE membership / achievements / seminars / paper presentation / competitions etc.

Sapient Placement Paper

Questions:
Round1:
1) Abusive Words
A message was given in which we have to replace abusive words like (stupid, fool) with # or with other letter. No. of # depends on conditions like it can be equal to the length of the word like stupid is to be replaced with ###### but in my question an abusive word has to be replaced by ### (3 #) only. The word is listed in some look up table in Max_list_word.
Logic will remain same but there will be slight variations, so read the questions carefully.
2)Train Reservation
There are 67 seats in a train in which there are rows of five seats and last row contain only two seats. A person can allocate maximum 5 seats on his name. Also last 2 seats are to be allocated first if reservation for 2 seats is demanded. Also customer should be allocated seats in a row or nearby seats if not possible.
The following class is given
public class seat
{
char name;
int seat;
boolean isSeatempty
}

Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

Round2:
1) Compression of a string
Take any string and we have to compress it so it can be passed over a congested network easily. If string is AASSGGTHMMEG then compressed string will be A2S2G2THM2EG. But in my question compressed string should be 2A2S2GTH2MEG. So again read the problem carefully. If compressed string contains letters other than alphabets or digits i.e. if compressed string is like 2A3DY(3!%#^*2@)A2S then all these non alphanumeric characters should be cleaned off.
We have to make functions:
Compress()
Clean()
) Post mail Question
Conditions are given like if you cover some distance you have to pay this amount, if postal weight is this then u have to pay this amount.
Thus five to six conditions are given, you have to write the program FPRIVATE "TYPE=PICT;ALT=[^]" to get the cost of post-mail per company depending upon its destination and weight.
Very simple program just use if and else loop.
Given: getdistance() is function which gives you the distance between two cities.
Conditions are:
Weight<15 gm and Distance<100 km then cost=Rs. 5
Additional cost of mail should be calculated according to the following slab
Weight 15-50 gm = Rs. 2/gm
>50 gm = Rs. 3.5/gm
Distance 100-500 km = Rs. 1/km
>500 km = Rs. 2/km
(Here charges are factious to just give you an idea of the question)
If the cost of the mails exceed Rs. 1000 then 20% discount is offered to the company.
Report has to be generated per company displaying there mail details for a single day.
Mails with weight less than 15 gm and distance less than 100 km are :
Mails with weight 15-50 gm are:
Mails with distance 100-500 km are:
Mails with weight greater than 50 gm are:
Mails with distance greater than 500 km are:
Total cost due to mails to company:
Also mail reports should be printed in sorted order for each company.

SAPIENT PAPER
The test was on 11th Aug 2007, in Vidya Vardhaka College of Engineering, Mysore
There were two rounds.
1) Code a problem
2) Tech Interview - this was after a week in Bangalore JSS college
I hope you will find help from this info. sharing…!!
Problem(1 hour duration)
There are three ICFAI exam centers, candidate can choose online these exam centers with preference. Ex like:
1st preferernce EC-B
2nd preference EC-A
3rd preference EC-C
There are two classes
Class candidate
{
1st preference
2nd preference
3rd preference
Exam_date
}
Class Avail_seat
{
Seat_avail_in_A
Seat_avail_in_B
Seat_avail_in_C
}
Allocate the seat as per 1st preference, if not available, then allocate 2nd preference.
WAP to implement the concept. (You can avoid the main and not important codes).
I coded like this
Class candidate
{
1st preference
2nd preference
3rd preference
Exam_date
Public :
Int Get_first_preference()
{
(char) Return 1st preference;
}
\
Int Get_second_preference()
Int Get_THIRD_preference()
Date GET_DATE()
{ }
}
Class Avail_seat
{
Seat_avail_in_A
Seat_avail_in_B
Seat_avail_in_C
Public :
void set_seat_A()
{
Seat_avail_in_A = Seat_avail_in_A – 1 ;
/* so one seat will reduce from the total seat available in the ecam center A */
}
void set_seat_B()
void set_seat_C()
int get_seat_A()
{
Will return the seat available in the EC- A
}
Int get_seat_B();
Int get_seat_C()
}
Other than the above classes, I took one more class, which is
Class alloc_seat : inheritence candidate /* I used inheritance in my program also, so a syntax error…!!
{
char seat_allocated;
public :
void seat_allocated(candidate_list[]) /* This is the main function they are explicitly asked */
}
void alloc_seat :: seat_allocated(candidate_list[])
{
/* program flow
if date is the required date
{
If(Get_first_preference() = ‘A’)
{
If(get_seat > 0)
Set_preference(); /* So the EC-A seat will will be deducted by one;
Seat_allocated = A ;
}
elseIf(Get_first_preference() = ‘B’)
else If(Get_first_preference() = ‘C’)
If(seat_allocated == NULL) /* If seat is not selected */
If(Get_second_preference() = ‘A’)
If(Get_second_preference() = ‘B’)
If(Get_second_preference() = ‘C’)
If(seat_allocated == null)
If(Get_third_preference() = ‘A’)
If(Get_third_preference() = ‘B’)
If(Get_third_preference() = ‘C’)
Else
Cout<< “Seat is not available on this date.”
}
}
Above code is only for a particular day. To do it for all dates which is in calendar…??

Contact Details:
Sapient
Sector 21,
Gurgaon,
Haryana 122016 ‎
India

Map Location:

Last edited by GaganD; June 29th, 2019 at 12:35 PM.
Reply With Quote
Other Discussions related to this topic
Thread
Microsoft recruitment previous year placement question papers
Mastek placement previous year question papers
BEL Placement Exam Previous Years Question Papers
Wipro Placement Aptitude Question Papers of Previous Year
Oil and Natural Gas Corporation placement previous year question papers free downloa
Previous year placement and written exam papers of Infosys
HCL placement previous year question papers free download
IBM previous year placement question papers
Placement previous year question papers of Wipro
Steel Authority of India placement previous year question papers free download
National Thermal Power Corporation placement previous year question papers free downl
Placement entrance test of Deloitte previous year question papers
AMI Placement Exam Previous Years Question Papers
Placement previous year question papers of Infosys
Previous Year Question paper for TCS Placement Exam
Philips Previous Year Placement Exam Question Papers
L&T Infotech placement previous year question papers
Previous year placement question papers of Tech Mahindra
Infosys previous year placement question papers
Birlasoft Limited previous year placement question papers






  #2  
Old January 20th, 2015, 10:40 AM
Super Moderator
 
Join Date: Nov 2011
Default Re: Sapient placement exam previous year question papers

As you want to get Sapient placement exam previous year question paper here I am giving you some questions of that paper:

How to capture data from images in QTP and produce them in Excel sheet ?

How will you call a different vuser script from another vuser script? Note: Former
vuser script is already created and needs to be called as the first thing before other
code in second vuser script is executed.

How to add two numbers without using arithmetic operators?

How does accounting occured in Expense Reporting?

how do u do integration testing supose u ar in hotmail login page 2nd is mailing page
how do u do integration testing for this kind

how to validate the pop up window Example :assume there is an webpage in that
webpage we had a button to browser or file to upload . how to validate this button if
we click on that botton window should appear else back to the page i need in VB
Script Code since i am using QTP for testing

in how many ways you perform batchtesting?

What are the new page events added in Asp.net 2.0 ?

do u know abt configuration management tool,what is the purpose of maintaining all
the documents in configuration manage ment tool?

What is Test scenario and what's the relation between Test scenario and Test case.

here i am giving kink Sapient Placement Exam Previous Year Question Paper

entrance-exam.net/forum/attachments/question-papers/10432d1296582709-sapient-placement-exam-download-previous-years-question-papers-sapient-placement-sample-paper-1.pdf
__________________
Answered By StudyChaCha Member
Reply With Quote
Reply


Tags
Job Placement

Reply to this Question / Ask Another Question
Your Username: Click here to log in

Message:
Options



All times are GMT +6.5. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2

1 2 3 4 5 6 7 8