# Amdocs Placement paper 01/3/2012

Posted on :13-02-2016
Q1. A 140 cm long tape is to be cut into two pieces such that one piece will be 2/5th as long as the other. Calculate the length of the shorter piece.

a) 30 cm
b) 20 cm
c) 40 cm
d) 35 cm

Q2. A boat running upstream takes 4 hours and 48 min to cover certain distance, while it takes 3 hours to cover the same distance running downstream, what is the ratio between speed of boat and speed of the water current respectively?

a) 2:1
b) 32:9
c) 39:9
d) none

Q3. Which of these numbers is divisible by 26?

a) 190554
b) 190544
c) 190552
d) 190548

Q4. (1/3) of a number is 3 more than the (1/6) of the same number?

a) 6
b)16
c)18
d)21

Q5. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of 1 liter every hour in A, it gets filled up like, 10, 20, 40,80, 160…..in tank B. 1/8 th of the tank B is filled in 22 hours. What is the time to fill the tank fully?

a) 26
b) 25
c) 5
d) 27

Q6. In a market 4 men are standing .The average age of the four before 2 years is 55, after some days one man is added and his age is 45. What is the average age of all?

a) 55
b) 54.5
c) 54.6
d) 54.7

Q7. In the reading room of a library, there are 10 tables, 4 chairs per table. In each table there are different numbers of people seated. How many tables will be left out without at least 1 person?

a) 8
b) 6
c) 2
d) 7

Q8. A person is rock climbing at an altitude of 800 m. He go up by 7 mph. and come down by 9 mph. what was his average speed?

a) 7.875 mph
b) 7.125 mph
c) 7mph
d) 7.5 mph

Q9. A lady builds 9cm length, 10cm width,3cm height box using 1 cubic cm cubes. What is the minimum number of cubes required to build the box?

a) 730
b) 270
c) 720
d) 310

Q10. x/2y = 2a,then 2x/x-2ay=?

a) 4
b) 8
c)16
d) 2

Q11. Out of 7 children, the youngest is boy. Find out the probability that all the remaining children are boys?

a)1/64
b)1/32
c)1/128
d)1/256

Q12. Sangakara and Pointing want to use a dice to select who will bat first but the dice is biased. To resolve the issue, Pointing takes out a coin. What is the probability that coin gives the right answer?

a)1/2
b)1/6
c)1/12
d)6/10

C++ Interview Questions - Amdocs. (01-3-2012)

Q13. Write a program to show string copy and concatenate in C++?

Q14. What will be the output of the program?

If switch(n)
case 1:cout<<"CASE !";
case(2):cout<<"default";
break;

a) CASE!
b) default
c) Error
d) None of the above

Q15. How to use Macros in C++?

Q16. Maintaining the state of an object is called____.

a) Serialization
b) Persistence
c) Marshalling
d) None of these options

Q17. What is the name of the java file of the given program?

import myLibrary.*;

public class ShowSomeClass
{
}

a) myLibrary.java
b) ShowSomeClass.java
c) ShowSomeClass
d) ShowSomeClass.class

Q18. Out of below mentioned options, which of the following is TRUE?

a) In java, an instance field declared public generates a compilation error.
b) int is the name of a class available in the package java.lang
c) Instance variable names may only contain letters and digits.
d) A class has always a constructor
e) The more comments in a program, the faster the program runs.

Q19. What is the output of the program given below?

String river = new String(“Columbia”);
System. out. println(river.length());

a) 6
b) 7
c) 8
d) Columbia
e) river

Q20. What is a constructor?

a) Same name as the class it is declared within.
b) is used to create objects.
c) may be declared private
d) A and B only
e) A, B and C

Q21. What is the output of the following program?

main ()
{ int x=5;
x=x--1;
cout<< x; }

a) 5
b) 4
c) 3
d) None of these

Q22. What is the output of the following program?

float a=.7
if(a=.7)
cout<<"this";
else
cout<<"that";

a) this
b) that
c) Error
d) None of the above

Q23. What is the output of the following program?

switch(n)
case 1: cout<<"hello";
case (2) : cout<<"default";
break;

a) hello
b) default
c) Garbage value
d) hello and default
e) None of the above

Cognizant
Infosys
TCS
Wipro
Microsoft