'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();

27-07-2020

PROGRAM:

n=int(input())
l=[]
for i in range(0,n):
   t=input()
   
   t=t.split()
   t[0]=int(t[0]);
   t[1]=int(t[1]);
   t=tuple(t)
   l.append(t)

for i in range(0,n):
    
    for j in range(0,n-i-1):
        
        
        if((l[j][1] > l[j+1][1])):
            
            l[j],l[i]=l[i],l[j]    
 
print(l)


PROGRAM:

#include<stdio.h>

int main()
{
    int v,n,i;
    scanf("%d",&v);
    scanf("%d",&n);
    
    printf("%d",v);
    for(i=1;i<n;i++)
    {
        if(v%2!=0)
            v=(3*v)+1;
        else
            v=v/2;
        printf(" %d",v);
        
    }
}




1.Is the average (arithmetic mean) of X and Y greater than 20 ?

(A) The average (arithmetic mean) of 2X and 2Y is 48.

(B) X = 3Y


ANs:a)

2.If 0 represents one of the operations +, – or x, is k0(l + m) = (k01) + (k 0 m) for all different natural numbers k, I and m ?

(A) k01 is not equal to 10 k for some numbers k. 

(B) 0 represents subtraction.

Ans: c)

3.A car was originally sold for Rs.3,000. After a month, the car's price was discounted X % and a month later the car's price was discounted Y %. Is the car's price after the discounts less than Rs.2,600 ?

(A) Y = 10

(B) X = 15
Ans: c)

4.How many newspapers were sold at a certain newsstand today ?

(A) A total of 100 newspapers were sold at the newsstand yesterday, 10 fewer than twice the number sold today. 

(B) The number of newspapers sold at the newsstand yesterday was 45 more than the number sold today.

Ans: c)

5.Suresh gets two successive discounts on purchasing a tape recorder. Find out the second discount.

(A) Selling Price and Marked Price of the tape recorder are Rs 300 and Rs 400 respectively. 

(B) The first discount is 20% less than the second discount percentage.

Ans:e)

6.What is the fourth number in a given series of even real numbers ? 

(A) The sum of the first two number is 24.

(B) The sum of last two numbers is 65.

Ans: d)

7.If r and s are integers, is r divisible by 7 ? 

(A) The product rs is divisible by 7.      

(B) s is not divisible by 7

Ans: d)

8.What is the population of state A ?

(A) After an increase in the population of state A by 12% it becomes 627.20 lakhs.

(B) Ratio of population of state A to that of state B is 4 : 5.

Ans: a)

9.If X is an integer, is (X + p)(X +q) an even integer ?

(A) q is an even integer.

(B) p is an even integer.

Ans: c)

10.Which triangle, ADE or AEC, has the larger area? ABGD is a rectangle.



(A) DE is longer than EC.

(B) AC is longer than AE.


Ans: a)

11.What was Priya's score on the fourth physics test she took ?

(A) Her score on the fourth test was 12 points higher than her average (arithmetic mean) score on the first three tests she took.

(B) Her score on the fourth test raised her average (arithmetic mean) test score from 87 to 90.

Ans:c)

12.The common admission test for MBA comprised of three sections. What is the total number of questions in the test ?

(A) The product of the number of questions in each section is 35351. 

(B) Number of questions in each section is greater than 20.

Ans: d)

13.If X and Y are integers, then what is the value of Y ?

(A) XY = 27

(B) X = Y2

Ans: c)

14.Is x positive? x and y are integers.

(A) (1/x) > (1/y) and y < 0  

(B) |x| > |y|

ANs: d)

15.In a school election, if each of the 900 voters voted for either A or B (but not both), what percent of the female voters in this election voted for B ?

(A) Eighty percent of the female voters voted for A.

(B) Sixty percent of the male voters voted for B.

Ans:Ans: d)

16.How many children are there in the class ? 

(A) Numbers of boys and girls are in the respective ratio of 3 : 4.

(B) Number of girls is more than the number of boys by 18


Ans: c)

17.During week W, how much did it cost, per km, for the diesel used by car X ? 

(A) During week W, car X used diesel that cost Rs 1.24 per litre. 

(B) During week W, car X was driven 270 km.

Ans: c)

18.How high is the mountain A ?

(A) It is higher than the second highest mountain by 2500 m. 

(B) The tallest mountain is 28028 m in height.

Ans: c)

19.What is Sudha's present age ?

(A) Sudha's present age is five times her son's present age 

(B) Five years ago her age was twenty five times her son's age that time

ANs: c)

20.Is x positive? x and y are integers.

(A) (1/x) > (1/y) and y < 0  

(B) |x| > |y|

Ans: d)





No comments:

Post a Comment