You are on page 1of 3

3/10/2014 Capgemini-Placement-Paper-Technical-Java-44696

http://placement.freshersworld.com/placement-papers/Capgemini/Placement-Paper-Technical-Java-44696 1/3
Home > Capgemini > Capgemini Technical-Java previously asked questions
Go Google on presentation
www.google.com/gonegoogle
Create a presentation with one link that everyone can work from.
Capgemini Placement-Paper : 44696
Views : 293
Rating :
Share
Paper Type : Technical-Java
Posted By : sourav singh
Updated Date : Feb 25, 2014
Capgemi ni Techni cal -Java pl acement paper
Questi on and answers
Capgemini recruitment process and aptitude test
experiences
Capgemini previously asked questions

1 Three pipes, A, B, & C are attached to a tank. A & B can fill it in 20 & 30 minutes
respectively while C can empty it in 15 minutes. If A, B & C are kept open successively for 1
minute each, how soon will the tank be filled?

Ans.167 minutes.
2 Output of the following program is
main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a) 0,5,9,13,17
b) 5,9,13,17
c) 12,17,22
d) 16,21
e) Syntax error
Ans. (d)

3 What is the output in the following program
main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf("pass1,");
if(c
printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1);
if(i
printf("pass2");
else
printf("Fail2")
}
a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these
Ans. (c)

4 Two trains are traveling from point A to point B such that the speed of first train is 65 kmps
and the speed of 2 train is 29 kmph. Where is the distance b/w A&B such that the slower train
reached 5 hrs late compared to the faster.

5 if a row dominated two dimensional array in the following which one is advantage and why?
0 Like
Most viewed papers of Capgemini
Category : Whole-Testpaper Capgemini
46 views ,
View Paper
Capgemini Whole-Testpaper
Category : Aptitude-Numerical Capgemini
14136 views ,
View Paper
Capgemini Aptitude-Numerical Question papers
of latest placement drive
Category : Technical-Java Capgemini
1293 views ,
View Paper
Capgemini Technical-Java previously asked
questions
Category : Technical-Java Capgemini
1903 views ,
View Paper
Capgemini Technical-Java new placement
papers with answers
Category : English-Language Capgemini
9676 views ,
View Paper
Capgemini new latest pattern placement
papers of English-Language
View All
Most Viewed Practice Tests
Level1 Quantitative practice Test 6
paid
30 questions 30 min 7167 students taken
TCS Placement Paper
f ree
35 questions 80 min 13164 students taken
Wipro Placement Paper
f ree
50 questions 60 min 3976 students taken
Cognizant (CTS) Placement Paper
f ree
55 questions 60 min 4606 students taken
Employability Assessment Test
f ree
25 questions 25 min 4104 students taken
Placement Papers Aptitude Prep Interview Prep General Knowledge Online Test Buy Now
3/10/2014 Capgemini-Placement-Paper-Technical-Java-44696
http://placement.freshersworld.com/placement-papers/Capgemini/Placement-Paper-Technical-Java-44696 2/3
Jobs
JOBS BY CATEGORY
IT / Software Jobs
Core Technical Jobs
JOBS BY COURSES
BE / B.Tech Jobs
MCA Jobs
Placement Preparation
SAMPLE PLACEMENT PAPERS
Placement Papers
Selection Procedure
5 if a row dominated two dimensional array in the following which one is advantage and why?
a) for(i=0;i<1000;i++)
for(j=0;j<1000;j++)
temp=temp+a[i][j];
b) for(j=0;j<1000;j++)
for(i=0;i<1000;i++)
temp=temp+a[i][j]
Consider the prog and select answer
#include<stdio.h>
void main ( )
{
int k=4,j=0:
switch (k)
{
case 3;
j=300;
case 4:
j=400:
case 5:
j=500;
}
printf (%d ,j);
}
A. 300
B. 400
C. 500
D. 0

6 If Log2 x - 5 Log x + 6 = 0, then what would the value / values of x be?
Ans.. x = e2 or e3.

7 What is HQL ?
HQL stands for Hibernate Query Language. Hibernate allows the user to express queries in its
own portable SQL extension and this is called as HQL. It also allows the user to express in
native SQL.
JSP is used mainly for presentation only. A JSP can only be HttpServlet that means the only
supported protocol in JSP is HTTP. But a servlet can support any protocol like HTTP, FTP,
SMTP etc.

8 What is Struts Validator Framework ?
Struts Framework provides the functionality to validate the form data. It can be use to
validate the data on the users browser as well as on the server side. Struts Framework emits
the java scripts and it can be used validate the form data on the client browser. Server side
validation of form can be accomplished by sub classing your From Bean with
DynaValidatorForm class.

9 How many types of literals are there in JAVA ?
There are four types of literals they are Integer literals, Floating point literals, Boolean literals
and character literals.

10 What is ActionServlet ?
The class org.apache.struts.action.ActionServlet is the called the ActionServlet. In the the
Jakarta Struts Framework this class plays the role of controller. All the requests to the server
goes through the controller. Controller is responsible for handling all the requests.
Found the similar paper in recruitment ? : Yes No
Previous Papers Next Papers
Capgemini/Placement-Paper-Candidate-Expe... Capgemini Placement-Paper-Whole-Testpape...
You might also be interested in :Capgemini Placement Papers , Technical-Java , Placement Papers By Company
Get help on Admission
from HTCampus
I agree to T&C and allow
htcampus to contact me
Student Name
Email
Mobile Number
Select Current Location
Select Highest Qualification
Select Course Category
Select Sub Category
Select Course Type
Select Year Of Entrance
Select Will Student Need Loan
Career & Courses
HIGHER STUDIES IN INDIA
M.Tech
MBA
TRAINING COURSES
Java / J2EE
PHP / MySQL
3/10/2014 Capgemini-Placement-Paper-Technical-Java-44696
http://placement.freshersworld.com/placement-papers/Capgemini/Placement-Paper-Technical-Java-44696 3/3
Government Sector Jobs
Defence Jobs
Research Jobs
BPO Jobs
Bank Jobs
Dream Jobs> 5 lpa
Walk-ins Jobs
Manpower Consultants
Teaching Jobs
1-3 Years Exp.Jobs
Archived Job
Job Results
Jobs by Company
Internships
Scholarships
Success Stories
MBA / PGDM Jobs
ME / M.Tech Jobs
M.Sc Jobs
B.Com Jobs
BBA / BBM Jobs
BCA Jobs
B.Sc Jobs
Diploma Jobs
JOBS BY CITIES
Jobs in Ahmedabad
Jobs in Bangalore
Jobs in Chennai
Jobs in Delhi / NCR
Jobs in Hyderabad
Jobs in Kolkata
Jobs in Mumbai
Jobs in Pune
Jobs in Gurgaon
Jobs in Noida
Company Profiles
Latest Papers
IT Companies
Non IT Companies
Bank Papers
POWER PLACEMENT PREPARATION
Aptitude Preparation
General Knowledge
Interview Preparation
Online Tests
IT Companies Preparation
GATE Preparation
CAT Preparation
Bank Exam Preparation
PSU Companies Preparation
MCA
TEST PREPARATION
GRE
GMAT
CAT / MAT
IELTS / TOEFL
GATE
Defence
Civil Services
STUDIES ABROAD
USA
Australia
UK
New Zealand
Canada
Singapore
SEO / Web Designing
Assembly Language
Android Development
BlackBerry Development
iPhone Development
Mobile Testing
Wireless Technology
MicroSoft(MS) SQL
Microsoft(MS) Access
HTML / JavaSript / CSS / Ajax
Joomla / Drupal / Wordpress
ASP
ASP.NET / C#
C
C++
List your Institute here
Candidate Services
Freshersworld.com : The No.1 Jobsite for Freshers in India
Freshersworld.com is the No.1 Jobsite for freshers in India with more than 3500+ top companies hiring through Freshersworld.com.
Freshersworld is a one-stop shop for all your career needs, right from your campus interview preparation till the final selection in your dream
company.
Get in Touch
About Us | Blog | FAQs | Advertise With Us | Recruitment Solutions | Contact Us
Terms of Use | Pri vacy Pol i cy | Copyri ght | Si temap 2000 - 2013 Freshersworl d.com

You might also like