PERCENTAGE PRACTICE TEST

 1.Arun is having a % of what Mohit is having. Mohit is having 10% of what Prashant is having, Prashant is having 10% of what Arun is having. Then find out the value of a.

Ans:D)10000

2.If the surface area of a soap bubble increases by 21%, the % increase in volume will be

Ans:A)33.1%

3.The average earning of each member of the Ambani family is 20% less than the average earning of each member of the Sahara family and the total earning of Ambani’s family is 20% more than the total earning of Saharas’s family . The no of family members in the Sahara is what percent of the no of family members of Ambani 

Ans:c) 66.66%

4.An off-season discount of x% is being offered at the discount store. An additional 12.5% discount is given if the value of purchase is more than Rs.500. After the discounts person pays Rs.525 for jeans whose list price is Rs.750. What is X?

Ans:A)20%

5.Gaurav spends 40% of the amount he received from his father on hostel expenses, 20% on books and stationery and 50% of the remaining on transport. He saves Rs. 450 which is half the remaining amount after spending on hostel expenses, books etc. and transport. How much money did he get from his father?

Ans:A)4500

6.In 1970 the cost of producing a litre of milk was Rs.11.25, 66% of which was the cost of food and the remainder was wages and other expenses. By 1973, the cost of food had increased by 55% and wages and other expenses had increased by 45%. Find the cost of producing a litre of milk in 1973.

Ans:A)Rs.17.055

7.A certain sum of money at simple interest becomes Rs. 1062 in 2 years and Rs. 1183.50 in 3½ years. What is rate of interest per annum

Ans:C)9%

8.Some amount out of Rs.7000 was lent at 6% p.a. and the remaining at 4% p.a. If the total simple interest from both the fractions in 5 years was Rs.1,600, then the sum lent at 6% p.a. was

Ans:A)Rs:2000

9.In a maternity centre, 5% of all the childbirth cases result in twins. What is the approximate percentage of twins out of total children born?

Ans:C)9.5%

10.Profit% expressed as percentage of the sale price is half when expressed as percentage of the cost price. Find the Profit when expressed as percentage of cost price

Ans:C)100%

11.A man spends 75% of his income.His income increased by 20% and his expenditure also increases by 10%.The percentage of increase in his savings is 

Ans:D)50%

12.A businessman in Delhi ordered 15 ton marbles from Rajasthan & price was fixed at Rs.6,000 per ton. Transportation charges is also Rs.6,000 & octroi duty is Rs.100 per ton. Find the selling price per ton if he got a profit of 30% by selling the marble

Ans:C)Rs,8450

13.A company instead of raising the mark-up by 20% discounted the cost price by 20% while stitching the price tag on its product. Further the company offers a discount of 6.25% to its customer. In this process company incurs a loss of Rs. 37.5 on a single article. What is the selling price of that article

Ans:B)Rs.112.5

14.In an election between two candidates, one got 55% of total valid votes, 20% of the votes were invalid. If the total number of votes was 7500, the number of votes (valid) that the other candidate got was:

Ans:A)2700

15.A book was sold for a certain sum and there was a loss of 20%. Had it been sold for Rs. 12 more, there would have been a gain of 30%. What would be the profit if the book were sold for Rs. 4.8 more than what it was sold for?

Ans:A)No Profit or loss

16.Goods in a shop are marked at 15 per cent above the cost price. What is the greatest percentage which can be taken off without causing a loss to the shopkeeper

Ans:D)13%

17.Prakash is x% richer than Badal, Abhishek is x% poorer than Prakash, Ranjeet is x% richer than Abhishek. Then find out who is poorest and richest among the 4?

Ans:B)Abhishek,Prakash

18.A television manufacturing company has decided to increase the sale to beat economic slowdown. It decides to reduce the price of television sets by 25% as a result of which the sales increased by 20%. What is the effect on the total revenue of the company?

Ans:C) Decrease by 10%

19.Jaya bought a car woth Rs 3,50,000 four years ago If the value of the car depreciates overtime at a fixed rate of 10% per annum, then what will be the present woth of the car? 

Ans:A)2,29,635

20.In a mall 20% area is occupied by eateries, 60% area is open. the remaining area of 1600 sq meter. there are different showrooms, what is the total area occupied by the mall?

Ans:C) 8000 sq m

OOPS PRACTICE TEST 2

 PROGRAM:

#include<iostream>

using namespace std;


void display();

void display()

{

    int a,b;

    cin >> a;

    cin >> b;

    cout << a+b;

}

int main()

{

    

    display();

    return 0;

}


PROGRAM:

#include<iostream>

#include<stdio.h>

using namespace std;


int main()

{

    int x,y;

    float f;

    cin >> x;

    cin >> f;

    cin >> y;

    cout << "value of x is " << x << endl;

    printf("value of x is %.2f\n",f);

    

    cout << "value of x and y is " << x << ","<< y  <<endl;

}

OOPS PRACTICE TEST 1

PROGRAM:

#include<iostream>

#include<iomanip>

using namespace std;

class Shape {

protected:

double area;

public:

void computeArea() {

area =0 ;

}


public:

double getArea() {

return area;

}


public:

void setArea(double area) {

area = area;

}

};

class Circle : public Shape {

private:

double radius;


public:

double getRadius() {

return radius;

}


public:

void setRadius(double r) {

radius = r;

}

public:

void computeArea() {

area = 3.14*(radius*radius);

cout<<fixed<<setprecision(2)<<area;

}

};

class Rectangle:public Shape {

private:

double length;

private:

double breadth;

public:

double getLength() {

return length;

}

public:

void setLength(double l) {

length = l;

}

public:

double getBreadth() {

return breadth;

}

public:

void setBreadth(double b) {

breadth = b;

}

public:

void computeArea() {

area = length*breadth;

cout<<fixed<<setprecision(2)<<area;

}

};

class Triangle : public Shape {

private:

double base;

private:

double height;

public:

double getBase() {

return base;

}

public:

void setBase(double ba) {

base = ba;

}

public:

double getHeight() {

return height;

}

public:

void setHeight(double he) {

height = he;

}

public:

void computeArea() {

area = 0.5*base*height;

cout<<fixed<<setprecision(2)<<area;

}

};

int main() {


int n;

    double radius,length,breadth,base,height;

cin>>n;

Circle c ;

Rectangle r;

Triangle t;

if(n == 1) {

cin>>radius;

c.setRadius(radius);

//cout<< c.getRadius();

c.computeArea();

}

if(n == 2) {

cin>>length;

cin>>breadth;

r.setLength(length);

r.setBreadth(breadth);

r.computeArea();

}

if(n == 3) {

cin>>base;

cin>>height;

t.setBase(base);

t.setHeight(height);

t.computeArea();

}

if(n>3) {

cout<<"Invalid Input";

}


}


PROGRAM:
#include <iostream>  
using namespace std;  
class Employee {  
   public:  
       int id;      
       string name; 
       float salary;  
       public:
   void set_id(int digit) { id = digit; }
   int get_id() const { return id; }
   public:
   void set_salary(int sal) { salary = sal; }
   int get_salary() const { return salary; }
   public:
   void set_name(string n) { name = n; }
   string get_name() const { return name; }
       
       void display()    
        {    
            cout<<id<<"  "<<name<<"  "<<salary<<endl;    
        }    
};  
int main() {  
     
    int n,i;
    cin>>n;
    Employee e1[n];
    for(i=0;i<n;i++){
    cin>>e1[i].id>>e1[i].name>>e1[i].salary;
    e1[i].display();   
    }
      
    return 0;  
}  

Ratio and Proprotions

 1.The ratio of investment of two partners A and B is 3:5 and the ratio of their profits 2:3. If A invested the money for 5 months, then the time for which B invested the money is

Ans:B)4.5 months


2.At present, the ratio between the ages of Arun and Deepak is 4 : 3. After 6 years, Arun's age will be 26 years. What is the age of Deepak at present ?

Ans: B)15

3.Two persons A and B start a business and invested in the ratio of 4:5. If at the end of the year the profit is Rs. 1800, what is the share of A?

Ans:B)800

4.Find the ratio in which rice at Rs.7.20/kg be mixed with rice at Rs.5.70/kg to produce a mixture worth Rs.6.30/kg

Ans:B)2:3

5.A quadrilateral has angles in the ratio 1:2:3 and a fourth angle is 31 degrees larger than the smallest angle. Find the sum of second smallest and second largest angle?

Ans:C) 172 Degree

6.0.6 of a number is equal to 0.08 of another number. The ratio of the numbers will be

Ans:C) 2:15

7.Akila is 40 years old and ravi is 60 yrs old .how many years ago was the ratio of their ages 3:5?

Ans:A)10

8.A is older than B by 8 years .If their ages are in the ratio 6:5.How old is A, 6 years hence?

Ans:D)54

9.Find the third proportion to the terms 2,10.

Ans:A)50

10.A, B and C invests Rs.4000, Rs. 3500, Rs. 2000 for 12 months , 8 months, 6 months respectively. By end of the year total profit is Rs.4400. What Is the share of profit received by A.

Ans:B)2400

11.A sum of money is divided among A,B,C and D in the ratio of 3:5:8:9 respectively. If the share of D is Rs.1872 more than the share of A, then What is the total amount of money B and C receives 

Ans:C)RS.4056

12.A container has 60 litres of milk , if 3 litres of milk is replaced by 3 litres of water and this operation is repeated further once. What will be the quantity of milk in the new mixture

Ans:A)54.15L

13.A,B and C invested in the ratio of 2:3:5.At end of the business terms, they received the profit in the ratio 5:3:12.Find the ratio of time for which they contributed their capitals

Ans:D)20:10:24

14.Find the triplicate ratio of 2:3

Ans:C)8:27

15.Find the mean proportion between 0.08 and 0.18

Ans:B)0.12

16.If (a+b) : (b+c) : (c+a) = 7:8:9 ,find a:b:c.

Ans:4:3:5

17.If a:b=2:3 and b:c=4:5 find a:c

Ans:B)8:15

18.Two jars having capacity of 3 and 8 liters are filled with mixtures of milk and water. In the smaller jar 40% of the mixture is milk and in the larger 40% of the mixture is water. The jars are emptied into a 15 liter cask whose remaining capacity is filled up with milk. Find the percentage of milk in the cask. 

Ans:B)66.66%


19.Find the fourth proportion to 18,12,6

Ans:A)4


20.A dishonest milkman mixed 1 litre of water for every 3 litres of milk and thus made up 36 litres of milk. If he now adds 15 litres of milk to the mixture, find the ratio of milk and water in the new mixture.

Ans:B)4:3

OOPS Practice Test 1

 # You are using Python

for i in range(int(input())):

    n=input().split(" ")

    if("" in n):

        n.remove("")

    

    print(n[0],"",n[1],"",n[2])



i=int(input())

if(i==1):

    j=int(input())

    s = 3.14*j*j;

    print("{:.2f}".format(s))

elif(i==2):

    j=int(input())

    m=int(input())

    s=float(j*m)

    print("{:.2f}".format(s))

elif(i==3):

    j=int(input())

    m=int(input())

    s=float(0.5*m*j)

    print("{:.2f}".format(s));

else:

    print("Invalid Input")

OOPS Practice Test 2

 Programs : 

Sum of two numbers

// You are using GCC

#include<iostream>

using namespace std;

void display()

{

    int a,b;

    cin>>a;

    cin>>b;

    cout<<a+b;

}

int main()

{

    display();

}


# You are using Python

x=input()

print("value of x is",x);

print("value of x is {:.2f}".format(float(input())))

x=x+","+input()

print("value of x and y is",x)

Pipes and Cistern Practice Test

 1.Two pipes A and B can separately fill a tank in 10 and 15 minutes respectively. A third pipe C can drain off 30 liters of water per minute. If all the pipes are opened, the tank can be filled in 10 minutes. What is the capacity of the tank?

Ans : 450

2.In what time would a cistern be filled by three pipes which diameters are 2 cm, 3 cm and 4 cm running together, when the largest alone can fill it is 58 minutes? The amount of water flowing in each pipe is proportional to the square of its diameter.

Ans : 36

3.One tap can fill a cistern in 2 hours and another can empty the cistern in 3 hours. How long will they take to fill the cistern if both the taps are opened 

Ans : 6 hours

4.wo pipes A and B can fill a cistern in 3 hours and 5 hours respectively. Pipe C can empty in 2 hours. If all the three pipes are open, in how many hours the cistern will be full?

Ans : 30 hrs

5.A large cistern can be filled by two pipes P and Q in 15 minutes and 20 minutes respectively. How many minutes will it take to fill the Cistern from an empty state if Q is used for half the time and P and Q fill it together for the other half?

Ans : 12 min

6.Three pipes A, B and C can fill a cistern in 10 hours, 12 hours and 15 hours respectively. First A was opened. After 2 hour, B was opened and after 4 hours from the start of A, C was also opened. Find the time in which the cistern is just full.

Ans : 5hrs 44 min

7.A cistern can be filled with water by a pipe in 5 hours and it can be emptied by a second pipe in 4 hours. If both the pipes are opened when the cistern is full, the time in which it will be emptied is :

Ans : 20hrs

8.If the ratio of Rate of filling of two Pipes A and B is 3:2. If together they can fill a Tank 

56th of Tank in 20 minutes. Then in how many does A alone can fill the Tank?
Ans : 40min

9.Two Pipes A and B together can fill a Tank in ‘X’ minutes. If ‘A’ is Inlet Pipe can Fill the Tank alone in 40 minutes less than ‘X’ minutes and ‘B’ is Outlet pipe can empty the Tank alone in 30 minutes less than ‘X’ minutes. Then together they can fill the empty Tank in how many minutes?
Ans :60 min

10.A pipe of diameter d can drain a certain water tank in 40 minutes. The time taken by a pipe of diameter 2d for doing the same job in :
Ans : 10 min

11.ap A can fill a tank in 20 hours, B in 25 hours but tap C can empty a full tank in 30 hours. Starting with A, followed by B and C each tap opens alternatively for one hour period till the tank gets filled up completely. In how many hour the tank will be 9623% filled up?

Ans :

12. 34 Hours 60/7 Min

13. One fill pipe A is 3 times faster than second fill pipe B and takes 16 minutes less than the fill pipe B. When will the cistern be will be half full if both pipes are opened together?
Ans : 12 min

14. The ratio of efficiencies of two filling pipes is 4 : 5. There is a third emptying pipe which efficiency is two third of the average efficiency of first two filling pipes can empty a filled tank in 36 minutes. In how much time both the filling pipes can fill the tank when it is empty?
Ans :12 min 
 
15.Pipe A, B and C can fill a Full Tank in 24,36 and 48 Minutes respectively. All three Pipes are Opened simultaneously in a Tank which is already filled up to 
16 of its capacity. A and B are opened for only First 6 Minutes and closed thereafter.Then C alone filled remaining Tank. Then in total how many Minutes does C filled the Tank?
Ans : 20 min

16.Pipe A can fill the tank in 10 hours, Pipe B can fill the tank in 12 hours and Pipe C can empty the tank in 15 hours. If all the three pipes are opened alternately(A,B and C), then how long will it take to fill the tank.
Ans : 25 hrs

17.Two pipes can fill a tank in 6hours and 8 hours .While a third pipe empties the full tank in 12hours.If all the three pipes are operate simultaneously, In how much time will the tank be filled ?
Ans : 4hrs 48 min

18.Pipe A can fill the cistern in 30 hours and Pipe B can empty the cistern in 12 hours respectively. If both pipes are opened together, how long will it take to fill the cistern?
Ans : 20hours

19. Two pipes A and B can fill a tank in 4 hours and 5 hours respectively. If they are opened on alternate hours and if pipe B is opened first, in how many hours, the tank fill in
Ans :  5 hrs

20 .Two Inlet Pipes A and B together can fill a Tank in ‘X’ minutes. If A and B take 81 minutes and 49 minutes more than ‘X’ minutes respectively, to fill the Tank. Then They can fill the 57 of that Tank in how many minutes?
Ans : 45 min