PSCS 31-07-2020


Type something.......Above...... 
1. 5x^2-1(d)
2. 5 (c)
3.19(a)
4. p = 7 q=2 
5.13  (a)
6.0(a)
7. 0(a)
8. 23 (b)
9.16(c)
10.( x²+ x – 6) (c)
11.91 (A)
12.296 (a)
13. 24*244 (a)
14.1(A)
15.2(b)
16.5 (a)
17.91(b)
18. 200 and 500(a)
19. 50 ^ 500 (d)
20.845 (d) 

PROGRAM:
n=int(input())
l=[]
l=input().split()
s=0
for i in range(0,int(n/2)):
    s+=int(l[i])
print(s)
s=0
for i in range(int(n/2),n):
    s+=int(l[i])
print(s)

PROGRAM:
# You are using Python
def vali(n1):
    n1 = n1.split(":")
    if(len(n1) == 3):
        if(int(n1[0]) >=0 and int(n1[0])<=24):
            if(int(n1[1]) >= 0  and int(n1[1])<=60):
                if(int(n1[2]) >= 0  and int(n1[2])<=60):
                    pass
                else:
                   
                    raise ValueError
            else:
                
                raise ValueError
        else:
            
            raise ValueError
    else:
        
        raise ValueError
    
        

import datetime

i1=input()
n=i1.split()
i2=input()
m=i2.split()


#print(n[0])
#print(m[0])

try:
    if(len(n) != 2 or len(m)!=2):
        raise ValueError
    vali(n[1])
    vali(m[1])
    
    datetime.datetime.strptime(n[0],"%Y-%m-%d")
    datetime.datetime.strptime(m[0],"%Y-%m-%d")
    
except ValueError:
    print("Event time should be in the format 'YYYY-MM-DD HH:MM:SS")
else:
    print(i1)
    print(i2)

PSCS 30-07-2020

1. a)13.33m/s
2.d)none of these
3.b) 12 km/hr
4.a)2000
5.b)!5 km/h
6.a)64 km/h
7.c)80 km
8.a)230
9.b)792
10.c)60 kmph
11.b) 45s
12.d)45,10
13.d)8
14.d)4:3
15.d)40 seconds
16.c) 6 km
17.a)160 km
18.b)90 kmph
19.b) 444 km
20.b) 48

PROGRAM:
#include<stdio.h>

int find_factorial(int n)
{
    int fact=1,i;
    
    for(i=1;i<=n;i++)
        fact=fact*i;
    return fact;
}


int main()
{
    int n;
    scanf("%d",&n);
    printf("%d",find_factorial(n));
    
    return 0;
}


PROGRAM:

f_in = open("input.txt","r")

s=f_in.read()

words=len(s.split())

lines=len(s.split("\n"))


sp=0
al=0
d=0
for i in s:
    if(i.isalpha()):
        al+=1
    if(i.isdigit()):
        d+=1
    if(i == " "):
        sp+=1
print("Alphabets :",al)
print("NUmerics :",d)
print("Spaces :",sp)
print("Words :",words)
print("Lines :",lines-1)

PSCS 29-07-2020

1.x=+÷ (b)
2. # (a)
3. 2(C)
4.40 (b)
5.Q (a)
6.d) M>N>Q>R
7.b) HNC
8.c) 65
9.b)45
10.a)if conclusion (i) follows 
11 . 3 (b)
12.only  III follows(c)
13. -50(c)
14. a>b>c>d>e(d)
15. 7 (c)
16. if both conclusion (i) and (ii) follows
17. 109 (b)
18.  m = p<s<s<g<r=t (c)
19. = (d)
20. >=(c)

PSCS 28-07-2020

1.b) 4:1
2.b)gain
3.a)11:14
4.a)greater than
5.b) B
6.d)would have doubled
7.a) The Times Of India
8.b)16,00,000
9.a) increased by 25%
10. c)Indain Express
11.b)16.67%
12.c)69%
13.c)1%
14.d)Rs.36,66
15.a)Rs.544.44 l
16..a)10:13
17.b)26.31
18.d)6.31
19.b)1992
20.d)125%

program:
from functools import reduce

fib= lambda n : reduce(lambda x, _:x+[x[-1] + x[-2]] ,range(n-2), [0,1] )

n=int (input())

f=fib(n)
for i in range(0,n):
    f[i]=f[i] * f[i]
print(f)

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)





PSCS-25-07-2020

MCQ:

1. Rs 400(c)
2. rs.3000(c)
3. none of these(D)
4. rs 171 (b)
5. rs 82(c)
6. 17.25% gain (d)
7.12%(a)
8. 8% loss (c)
9.rs 288(b)
10.46.15%(a)
11.13(1/3)%(b)
12.4%(d)
13.Profit% is 5.625%.(d)
14.16-- % (c)
15.53%(a)
16.198(a)
17.Rs.720(b)
18.11.11% loss(b)
19.17.5(b)
20.20000(c)

PSCS-24-07-2020

MCQ

1. Glare(B)
2.47U15 (B)
3.Archimedes : Buoyancy(C)
4.L-12, N-14(C)
5.ccaa(C)
6.L(C)
7.X(a)
8.Repugnant(C)
9.Try : Failure (c)
10.They are sources of specific information(D)
11. Circle Circumference
12.Pile(b)
13.Wine
14.Perjury: Testimony
15.Hospitality 
16.X(b)
17. 23, H, K, O, H(D.)
18.abxyz(a)
19. pqrst(c)
20..aabaa(b)

23-07-2020

1.c)243
2.a)404
3.d)925
4.c)14515200
5.c)79
6.c)1941
7.b)532
8.c)27
9.b) (1/8)
10.b) 10781
11.c)2516
12.d)149
13.b)131
14.b)7
15.b)13:972
16.a)0.248
17.b)15
18.c)25
19.a)146
20.d)211

C PROGRAM:
#include<stdio.h>
#include<math.h>
int main()
{
    int n,x,i,sum=0;
    scanf("%d",&x);
    scanf("%d",&n);
    
    
    for(i=1;i<=n;i++)
    {
        if(i%2==0)
            sum=sum+pow(x,i);
        else
            sum=sum-pow(x,i);
    }
    
    printf("%d",sum+1);
    
}



C PROGRAM:

#include<stdio.h>

int main()
{
    int l1,l2,l3;
    scanf("%d",&l1);
    scanf("%d",&l2);
    scanf("%d",&l3);
    
    if(l2==l1*2 && l3==l1*3)
        printf("Elevator");
    else
        printf("Stairs");
        
}

PSCS- 22-07-2020

MCQ:

1. If BOY is coded as ACNPXZ. What will be the code for LIFE?
Ans).(A).KMHJEGDF
2.If in a certain language SISTER is coded as 535301 , UNCLE is coded as 84670 and BOY as 129 , how son is coded ?
Ans . 524(a)
3.KNOWLEDGE is coded as 256535475. How can GENERAL be coded
Ans . 7555913(d)
4.If 'LONDON' is coded as MPOEPO. What code is needed for 'DELHI'
Ans: EFMIJ(d)
5.If MATH can be coded as RFYM then PHYSICS will be coded as UMDXNHX. Hence, PHYSICS will be coded "
ans: UMDXNHX.(b)
6.In certain code language 'TERMINAL' is written as 'NSFUMBOJ' and TOWERS is written as 'XPUTSF'. How is 'MATE' written in that code?
Ans: BNFU(c)
7.In a miitary code CAUTION is coded as  UACITNO.
How will you write MISUNDERSTAND?
Ans:SIMNUEDSRATDN(b)
8.If JOSEPH is coded as FKOALD, then GEORGE will be coded as :
Ans :CAKNCA(a)
9.In a certain code language, 134 means 'Good and Tasty', 478 means 'see good pictures' and 729 means 'pictures are faint'. Which of the following numerical symbols stands for faint
 Ans: 9(a)
10.In a .certain code-language, CUL, WAP, DIR means red little box, SUT; MAD BIX, means well arranged pile, BIX, FAC, DIR means pile of boxes. The code for 'of here is ?
Ans :(A).FAC

11.VXFFHVV
12.EMNXDS
13.A EDRIRL
14.D HPIESAPNS
15.B 61
16.D CITOXE
17.A IARYN
18.A SUNK
19.B MNUMNUMNU
20.B RMNBJEFS

PSCS-21/07/2020

MCQ :
1.29%
2.6
3.32
4.27
5. 20-30
6.3.5
7.1.5
8.1992-93
9.125%
10.100
11.34% 
12. 32AH
13. 39000
14. 1997
15. 7AH
16. 80%
17. 8990
18. 2001
19.12.57%
20.11.84%

20-07-2020

1. a)20
2.c)48,24,96
3. a)61.75
4. a)11:9
5. a)20:11
6. c)93
7. b)12
8. a)36
9. d)25:6:41
10. a)20
11. c)The age of this memeber is greater than 40 less tha 50
12. a)7:5
13. a)20 years 
14. a)38
15. b)1/5
16. a)86
17. c)45
18. a)39/5
19. b)64
20. c)69  

python:
class py_solution:
    def int_to_Roman(self, num):
        val = [
            1000, 900, 500, 400,
            100, 90, 50, 40,
            10, 9, 5, 4,
            1
            ]
        syb = [
            "M", "CM", "D", "CD",
            "C", "XC", "L", "XL",
            "X", "IX", "V", "IV",
            "I"
            ]
        roman_num = ''
        i = 0
        while  num > 0:
            for _ in range(num // val[i]):
                roman_num += syb[i]
                num -= val[i]
            i += 1
        return roman_num
#class intToromanConvertor:
inp=int(input())
print(py_solution().int_to_Roman(inp))




C PROGRAM:


#include <stdio.h>

int main()
{
    int i,j,k,n;
    scanf("%d",&n);
    
    for (i=0;i<n;i++)
    {
        for(j=0;j<=i;j++)
            printf("*");
        for(k=0;k<(n*2)-(2*i)-2;k++)
            printf( " ");
        for(j=0;j<=i;j++)
            printf("*");
        printf("\n");
    }
    
    for (i=n-1;i>=0;i--)
    {
        for(j=i;j>=0;j--)
            printf("*");
        for(k=(n*2)-(2*i)-2;k>0;k--)
            printf( " ");
        for(j=i;j>=0;j--)
            printf("*");
        printf("\n");
    }

    return 0;
}

PSCS 18-07-2020

MCQ:
1. 1.1/2 DAYS(B)
2. 27(C)
3.240 DAYS(B)
4.12 (A) -HOURS
5.4 DAYS(D)
6.1 MIN(A)
7. 6 1/3(D)
8.53/12 DAYS(C)
9.10 DAYS(A)
10. 18(A)
11.20/11(B)
12.16 DAYS(C)
13.2550(a)
14. 7:50(D)
15.40 (A)
16. 48(C)
17.8,6,4(B)
18.15 DAYS(A)
19.NONE OF THESE(D)
20.10 DAYS(B)

PSCS 17-072020

1. B)99999990
2. c)68
3. b)35
4. d)91
5. c)15
6. c)70
7. d)none of the above
8. a)5/2 s
9. b)45
10.d)55935
11.d)17
12.b)6 per gram
13.c)20
14.a)3
15.a)71
16.b)60
17.b)268
18.d)96
19.c)80paise
20.d)9

C PROGRAM:
// You are using GCC\
//*()
#include<stdio.h>
int main()
{
    int i,n,sum=0;
    scanf("%d",&n);
    int b[n],a[n];
    for (i=0;i<n;i++)
        scanf("%d",&a[i]);
    for(i=0;i<n;i++)
        sum=sum+a[i];
        b[i]=a[i];
    printf("Array 1 Elements\n");

    for(i=0;i<n;i++)
        printf("%d ",a[i]);
    printf("\nReverse of Array 1 Elements\n");
    for (i=n-1;i>=0;i--)
        printf("%d ",a[i]);
    printf("\nSum of Array 1 Elements\n");
    printf("%d",sum);
    printf("\nArray 2(Copied) Elements\n");
    for (i=0;i<n;i++)
        printf("%d ",a[i]);
    
    return 0;
        
}


PYTHON:
# You are using Python
f_out=open("output.txt","w")
f1=open("input1.txt","r")
f2=open("input2.txt","r")
l1=f1.readlines()
l2=f2.readlines()
for i in range(0,n):
    f_out.write(l1[i])
    f_out.write(l2[i])
f_out.close()
f1.close()
f2.close()

PSCS- 16-07-2020

1.Rs 376(a)
2.rs 3125(c)
3.rs.210(d)
4.rs 8000(b)
5. Rs.3725(d)
6.1/10:1/15:1/20 (c)
7.rs 100(b)
8.6%
9.24(a)
10.6050(b)
11.20160(d)
12.1125(c)
13.rs273(c)
14.rs 375(c)
15.rs 160000(a)
16.4 years(b)
17.2 yrs 8 months(d)
18.48775 and 4493(b)
19.8:7
20.rs31000(c)
// You are using GCC
#include<stdio.h>

int main()
{
    int n,i,sum=0;
    scanf("%d",&n);
    int a[n];
    for(i=0;i<n;i++)
        scanf("%d",&a[i]);
    for(i=0;i<n;i++)
        sum=sum+a[i];
printf("Sum of array elements is : %d",sum);
return 0;
}
//arrayfun


import re
s=input()

c=0
v="aeiouAEIOU"
for i in s:
    
    if i in v:
        c=c+1
        
        
print(c)

PSCS 15-07-2020


1.The ratio of water and milk in a 30 litre mixture is 7 : 3, find the quantity of water to be added to the mixture in order to make this ratio 6 : 1.
Ans:c) 33


2.Three jackals Paar, Marr and Taar together have 675 loaves of bread. Paar has got three times as much as Maar but 25 loaves more than Taar. How many does Taar have?
Ans: b)275

3.If two numbers are in the ratio of 5 : 8 and if 9 be added to each, the ratio becomes 8 : 11. Now find the lower number.
ANs:c) 15

4.The ratio of the age of a man and his wife is 4 : 3. After 4 years, this ratio will be 9 : 7. If at the time of the marriage, the ratio was 5: 3, then how many years ago they were married?
ANS: b) 8 years

5.Two litres of a mixture of wine and water contain 12% water. They are added to 3 litres of another mixture containing 7% water, and half a litre of water is then added to whole. What is the percentage of water in resulting concoction?
ANs:a) 17(2/11)%

6.The speeds of three cars are in the ratio 2 : 3 : 4. The ratio between the times taken by these cars to travel the same distance is
Ans: d) 6:4:3

7.A milkman mixes 20 L of water with 80 L of milk. After selling one-fourth of this mixture, he adds water to replenish the quantity that he has sold. What is the current proportion of water to milk?
Ans: A) 2:3

8.A cat takes 5 leaps for every 4 leaps of a dog, but 3 leaps of the dog are equal to 4 leaps of the cat. What is the ratio of the speed of the cat to that of the dog?
Ans: d)15:16

9.20 litres of milk when added to a 60 litre mixture of milk and water ,the concentration increases by same percentage points as decreased by addition of 30 litres of water to the same solution.What is the ratio of milk and water initially?
ANs: b) 2:!

10.Two groups of student, whose average ages are 20 years and 30 years, combine to form a third group whose average age is 23 years. What is the ratio of the number of students in the first group to the number of students in the second group?
Ans: d) none of these

11.Three qualities of milk costing Rs 3, Rs 3.25 and Rs 2.60 per litre are mixed and the mixture is then sold at Rs 3.54 per litre to earn a profit of 20%. In what proportion should the three qualities of milk be mixed?
Ans: c) 1:1:1

12.A precious stone weighing 35 grams worth Rs. 12,250 is accidentally dropped and gets broken into two pieces having weights in the ratio of 2 : 5. If the price varies as the square of the weight then find the loss incurred.
ANs:Rs:5000

13.If three numbers are in the ratio of 1 : 2 : 3 and half the sum is 18, then the ratio of squares of the numbers is:
Ans:c) 36:144:324

14.The weights of three lumps of metal are in the ratio 3 : 4 : 5. By what fractions of themselves must the first two be increased so that the ratio of the weights may be changed to 5 : 4 : 3?
Ans:b) 3/4 , ,4/3

15.Total salary of A, B & C is Rs.350. If they spend 75%,80% & 56% of their salaries respectively their savings are as 10:12:33. Find C's salary.
Ans: b) 160

16.A cask contains 12 gallons of mixture of wine and water in the ratio 3 : 1. How much of the mixture must be drawn off and water substituted, so that wine and water in the cask may become half and half.
Ans: c) 6 gallons

17.The ages of A and B are in the ratio of 6 : 5 and sum of their ages is 44 years. The ratio of their ages after 8 years will be
Ans:d) 8:7

18.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) 14:3

19.Vijay has coins of the denomination of Re.1, 50 p and 25 p in the ratio of 12 : 10 : 7. The total worth of the coins he has is Rs.75. Find the number of 25 p coins that Vijay has.
Ans: d) not

20.Four numbers in the ratio 1: 3 : 4 : 7 add up to give a sum of 105. find the value of the biggest number.
Ans: c) 49

PSCS-14-07-2020

1.son in law(d)
2.17(d)
3. Q is T's son (a)
4. Niece(c)
5.Aunt(b)
6. Father in law(c)
7. Aunt(c)
8.cousin(c)
9. Father(a)
10. P - M + N x Q (c)
11. wife(b)
12. 12(c)
13. his son(b)
14. I x C + N - J(d)
15. Aunt(a)
16. uncle(a)
17.Maternal uncle(a)
18. father(c)
19.aunt(c)
20.data inadequate(d)


PSCS - 13-07-2020

MCQ -  

1. 9000(a)
2. 35 yr(a)
3. 266.66 kg(d)
4. Rs.11000(d')
5.20(c)
6.630(c)
7. 20%(c)
8. 20%(b)
9.rs.500(c)
10.9.375%(a)
11.40%(b)
12.54%(a)
13. 48.28(d)
14. 52%(c)
15.28.57(c)
16.4$ per gallon(a)
17. 50% profit
18.35%(c)
19.3.5%increase(a)
20.88%(c)
 
PROGRAMS WILL BE UPLOADED SHORTLY ..STAY TUNED.
follows on insta - @I_am__kakarot
We will update in Insta ...

PSCS - 12-07-2020

1. 1901
2. monday a
3.wednesday b
4. tuesday a
5. friday -a
6.tuesday-d
7.satursday-c
8.friday-d
9.thursday-a
10.thursday-d
11.1995-d
12. friday-a 23nd may 2003
13.thursday -b 28 aug 1946,31 aug 1961
14.2005-d
15. 2023-b
16.both 2 and 3
17.4 -b
18.tuesday -jan 7 1992 jan 7 1997
19.saturday-d
20.1-b

 12 5 march 1816 15th april - satursday(d)
16th july 1776 - tuesday(A)