Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

Mock Test | 11 August

 Numerical Ability

 

1.

What is the value of c , If 8 is 4% of a, and 4 is 8% of b. c equals b/a.
12
1/4
0.155
None of these
 

 

2.

if the antecedent and consequent of a ratio are increased by 5 and 6 respectively then the ratio is 5:6.
find the original ratio.
5 : 6
1 : 2
2 : 3
3 : 4

 

3.

The profit earned after selling an article for Rs 996 is the same as the loss incurred after selling the
article for Rs 894. What is the cost price of the article ?
RS 935
. RS 905
RS 945
RS 975

 

4.

Find the average of all the numbers between 6 and 34 which are divisible by 5?
30
24
20
18
 

 

5.

A bag contains 2 white balls, 3 black balls and 4 red balls. In how many ways can 3 balls be drawn from
the bag, if at least one black ball is to be included in the draw
64
128
132
222

 

6.

Sahil purchased a machine at Rs 10000, then got it repaired at Rs 5000, then gave its transportation
charges Rs 1000. Then he sold it with 50% of profit. At what price he actually sold it.
RS. 22000
as. 24000
as. 26000
as. 28000
 

 

7.

(4.8*1.813.6 +5.4 of 1/9 -1/5) =
28
38
48
58
 

 

8. 

The wheel radius of the axis's car is 50 cm. What is the distance that the car would cover in 14
revolutions?
11 m
22 m
33 m
44 m


9.

4 men and 6 women finish a job in 8 days, while 3 men and 7 women finish it in 10 days. In how many
days will 10 women working together finish it ?
30 days
40 days
50 days
60 days

 

10.

what is the remainder of (16937^30)/31
1
2
3
6
 

 

11.

The time showed by an analog clock at a moment is 11 am then 1234567890 hours later it will show the
time as:
11 am
11 pm
5 am
4 pm

 

12.

Ravi's salary was reduced by 25%. Percentage increase to be effected to bring the salary to the original
level is
20%
25%
33 1/3%
30%
 

 

13.

og y 1369y=3 then what is the value of y?
38
37
36
35
 

 

14.

In how many years Rs. 150 will produce the same interest at 8% as Rs. 800 produce in 3 years at 9/2%
. 8
9
10
11

 

15.

The speed of a boat in still water is 15 km/hr and the rate of current is 3 km/hr. The distance travelled
downstream in 12 minutes is
1 6 km
2 km
3km.6
4 km

 

16.

A series of books was published at 10years intervals when the 10th book was issued the sum of
publication years was 19560. When was the 1st book published?
1910
1914
1911
1909

 

17.

Tickets numbered 1 to 20 are mixed up and then a ticket is drawn at random. What is the probability
that the ticket drawn has a number which is a multiple of 3 or 5?
1/2
2/5
8/15
9/20

 

18.

On dividing a number by 342, 47 is the remainder. What will be the remainder if the same number is
divided by 18?
11
6
8
2

 

19.

A’ and ‘B’ started a business in partnership investing Rs 20000/- and Rs 15000/- respectively. After six
months ‘C’ joined them with Rs 20000/-. What will be B’s share in the total profit of Rs 25000/- earned
at the end of two years from the starting of the business?
7000
7500
8000
8500
 

 

20.

Find the odd man out
3, 6, 9, 12
2, 4, 8, 16
12, 24, 36, 48
10, 13, 16, 19

 

21.

A person needs 6 steps to cover a distance of one slab. if he increases his foot length(step length) by 3
inches he needs only 5 steps to cover the slabs length. What is the length of each slab?
90 inches
24 inches
26 inches
43 inches
 

 

22.

Find the greatest number which on dividing 1661 and 2045, leaves a remainder of 10 and 13 respectively
125
127
129
131

 

23.

A card is drawn from a pack of 52 cards. The probability of getting a queen of club or a king of heart is:
1/13
2/13
1/26
1/52
 

 

24.

If 7 spiders make 7 webs in 7 days then 1 spider will make 1 web in how many days?
1
7
7/2
49

 

25.

Which is the following fraction for 2.04?
9/25
51/25
3/400
2081/250

 

26.

A is twice as good as a workman as B and together they finish a piece of work in 18 days. In how many
days will B alone finish the work.
27 days
54 days
56 days
. 68 days

--------------------------------------------------------------------------------------------------------------------

 Reasoning Ability


1.

The following questions consist of two words each, that have a certain relationship with each other,
followed by four lettered pairs of words. Select the letter pair that has the same relationship as the
original pair of words.
Geeta : Quran
Orange : Mango
Temple : Worship
Good : Man
Army : Defence

 

2.

Statement :
The Industrial Revolution which first of all started in Europe has brought about the modern age.
Conclusions :
I. Disparity between rich and poor results in revolution.
II. Revolution overhauls society.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

 

3.

The following questions consist of two words each that have a certain relationship with each other,
followed by four lettered pairs of words. Select the letter pair that has the same relationship as the
original pair of words.
Mendacity : Honesty
Truth : Beauty
Sportsmanship : Fortitude
Courageous : Craven
Turpitude : Depravity

 

4.

Either Susmith is happy or he met his girlfriend.
(i) Susmith is happy
(ii) Susmith is sad
(iii) Susmit met his girlfriend
(iv) Susmit didn't meet his girlfriend.
(i) and (iv)
(Ii) and (iii)
(iv) and (i)
None of these
 

 

5.

Given signs signify something and on that basis, assume the given statements to be true and find
which of the two conclusions I and II is/are definitely true.
P + Q means P is greater than Q
P* Q means P is greater than or equal than Q
P =Q means P is equal to Q
P/Q means P is less than Q
P - Q means P is less than or equal to Q
Statements: X/Y, W*Z, Z+Y
Conclusions
I. w+y
II. X/Z
Only conclusion I is true
Only conclusion Il is true

neither 

both

 

6.

Statement:
Fortune favours the brave
Conclusions :
I. Risks are necessary for success.
II. Cowards die many times before their death.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

 

7.

Three of the following four are alike in a certain way and so form a group. Which is the one that does not
belong to that group?
Kerala
Maharashtra
West Bengal
Uttar Pradesh

 

8.

Statement :
Modern man influences his destiny by the choice he makes unlike in the past.
Conclusions :
I. Earlier there were less options available to men.
Il. There was no desire in the past to influence destiny.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

9.

Select the right option from the given alternatives
OQT : FHK :: DFI: ?
CEH
BEH
BFH
AFH
 

 

10.

If you don't save money you will not get reward.
(i) You saved money
(ii)you didn't save money
(iii)you got reward
(iv) you didn't get reward
(i) and (iv)
(Ii) and (iii)
(iv) and (i)
None of these

 

11.

Select the right option from the given alternatives
‘WOLLS: XPMMT :: PILOT : ?
QJMPU
QJJPU
QMMPU
QMJPU
 

 

12.

Statement :
People who speak too much against dowry are those who had taken it themselves.
Conclusions:
I. It is easier said than done.
II. People have double standards.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

 

13.

The following questions consist of two words each that have a certain relationship with each other,
followed by four lettered pairs of words. Select the letter pair that has the same relationship as the
original pair of words.
Sin: Crime
Man : Animal
Home : Court
Morality : Legality
Jury : Priest

 

14.

Statement :
vegetable prices are soaring in the market.
Conclusions :
I. Vegetables are becoming a rare commodity.
II. People cannot eat vegetables.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

15.

Statement :
It is almost impossible to survive and prosper in this world without sacrificing ethics and morality
Conclusions :
I. World appreciates some concepts but may not uphold it.
II. The Concepts of ethics and morality are not practicable in life.
Only conclusion | follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

16.

Fill in the blank spaces in the series with appropriate choices:
48, 45, 40, 33, 24, __ , __
11, 12
12, 13
13, 0
9, 11

 

17.

The following questions consist of two words each that have a certain relationship with each other,
followed by four lettered pairs of words. Select the letter pair that has the same relationship as the
original pair of words.
Chair : Wood
Book : Print
Mirror : Glass
Plate : Food
Purse : Money

 

18.

Mobile is charged, if power is off.
(i)Mobile is charged
(ii) mobile is not charged
(iii) power is off
(iv) power is not off
(i) and (iv)
(Ii) and (iii)
(iv) and (i)
None of these

 

19.

The following questions consist of two words each, that have a certain relationship each other, followed
by four lettered pairs of words. Select the letter pair that has the same relationship as the original pair of
words.
Water : Oxygen
Helium : Nitrogen
Salt : Sodium
Tree : Plant
Food : Hunger

 

20.

Statements:
All pens are pins.
No tag is a pin
All papers are pens
Conclusion:
I. No pen is a tag
II. All papers are pins
III. All pins are definitely not tag
Only I follows
Only II follows
Only Il and III follow

all 

 

21.

The following questions consist of two words each, that have a certain relationship with each other,
followed by four lettered pairs of words. Select the letter pair that has the same relationship as the
original pair of words.
Sumptuous : Luxurious
grapple : harmonize
lavishing : destitute
elated : jubilant
melancholy : gleeful

 

22.

Statement :
In case of outstanding candidates, the condition of previous experience of social work may be waived
by the admission committee for M.A. (Social Work).
Conclusions :
I. Some of the students for M.A. (social work) will have previous experience of social work.
II. Some of the students of M.A. (social work) will not have previous experience of social work.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

Both

 

23.

Unless you study, you can not crack CAT
(i) you cracked CAT
(ii) You could not crack CAT
(iii) You did study
(iv) you didn't study
(i) and (iv)
(ii) and (iii)
(iv) and (i)
None of these
 

 

24.

Statement :
The interview panel may select a candidate who neither possesses the desired qualification nor the
values and attributes.
Conclusions:
1. The inclusion of specialists on the interview panel does not guarantee that the selection will be
proper.
Il. The interview test has certain limitations in the matter of selection of candidates.
Only conclusion I follows
Only conclusion II follows
Either I or II follows
Neither I nor II follows

both

 

25.

Statements:
I. The bank decided to give advances to the priority sector at the rate of interest at par with the
corporate sector.
II. The percentage of bad loans given by the banks to the priority sector is very low compared to
corporate sector.
Both the statement I and II are effects of independent causes.
Statement I is the cause and statement II is its effect.
Statement Il is the cause and statement | is its effect.
Both the statement I and II are independent causes

 

26.

Unless boss is present employees don't work
(i) Boss is present
(ii) Boss is not present
(iii)Employee work
(iv) Employee don’t work
(i) and (iv)
(Ii) and (iv)
(iv) and (i)
None of these

 

27.

Statements: No plant is a tree. All trees are roots. Some branches are roots Conclusions: I. All roots being
plants is a possibility II. Some roots are definitely trees III. At least some branches are definitely not
trees
Only I follows
Only II follows
Only Il and III follow
Only I and II follow
 

 

28.

Thermometer: Temperature:: Barometer:
Strain
Force
Stress
Pressure
 

 

29.

In each of the following questions, there is a certain relationship between two given words on one side
of (: :) and one word is given on another side (: :) while another word is to be found from the given
alternatives, having the same relation with this word as the word of the given pair bear. Choose the
correct alternative.
Foot : ? : : Hand : Wrist
Length
Shoe
Ankle
Leg
 

 

30.

Find the correct alternative to complete the analogy.
Confute : Rebut :: Repellent : ?
Pusher
Attractive
Repugnant
Spray

 

--------------------------------------------------------------------------------------------------------------------

 Verbal Ability


1.

Choose the most appropriate synonym
CAPRICIOUS
Excess
Sudden
Constant
Formal
private

 

 

2.

Instruction: Arrange all the parts in a proper sequence to form a meaningful sentences
The water tanks may remain empty (A) on Tuesday evening (B) in the city (C) as the water supply
department will repair the damaged water pipes (D)
BADC
BACD
DBAC
ADCB

 

3.

Instruction: Select the word which is farthest in meaning to the word given in the question.
In each of the questions given below from the given options select the word which is farthest in
meaning to the word given in the question.
Culpable
ineffable
Incriminated
innocent
Indignant
 

 

4.

Choose the best fit for the blank.
Nowadays, Rajini is ____ busy to take care of her health.
Very
Too
So
Extremely
 

 

5.

About twenty clerks were made _ when the banks introduced computers.
dispensable
redundant
expandable
obsolete

 

6.

Choose the synonym.
FALLACY
Illusion
Elusion
Misconception
frankness

 

7.

Select the proper order for the four sentences.
S1. Ms. Parasuram started a petrol pump in Madras. P. A total of twelve girls now work at the pump. Q.
She advertised in newspapers for women staff. R. They operate in two shifts. S. The response was good.
S6. Thus she has shown the way for many others.
PQSR
SQPR
QSPR
PQRS
 

 

8.

Choose the best fit for the blank.
Hawkins is __ in his field; no other contemporary scientist commands the same respect.
Preeminent
Ignominious
Obsolete
anachronistic
 

 

9.

Delhi is _ large city.
an
a
an
the

 

10.

Choose the most appropriate synonym AFFLUENT
Extreme
Initiate
Precede
Prosperous
Simple

 

11.

_ Himalayas provide protection to India against enemies.
no article
A
An
The
 

 

12.

The river overflowed its _ and flooded the area.
edges
fronts
limits
banks
 

 

13.

Identify the part that has an error. Select ‘D’ if you find no error.
a)The house with all its / b)furniture and exotic plants / c) were sold for Rs. 50,000 / d) No error
A
B
C
D
 

 

14.

Choose the most logical fit for the blank.
An honest man never __ to lie in order to fulfill his goals.
Helps
Tells
Resorts
forms

 

15.

Select the word which best expresses the MEANING of the word in CAPITALS EMANATE
End
Culminate
Originate
Retreat

 

16.

Choose the most appropriate order of the sentences.
A. There are more than 20 major languages and several hundred minor ones and it is a home of several
major religions. B. There are several million indigenous people living in different parts of the country. C. In
spite of all the diversities, we share a common landmass. D. India is a land of continental proportions
and immense diversities.
DABC
DCBA
CABD
BACD

 

17.

Instruction: Select the word which is closest in meaning to the word given in the question.
In each of the questions given below from the given options select the word which is closest in meaning
to the word given in the question.
PROSAIC
pedestrian
creative
exceptional
different
 

 

18.

Her parents will never give their _ to so much an unsuitable match.
acquiescence
consent
agreement
willingness
 

 

19.

_ Indus river is the longest river in India.
The
An
A
None

 

20.

Identify the part that has an error. Select ‘D’ if you find no error.
The teacher asked the students (a) / if everyone of them were interested in (b) / going on an excursion
(c) / no error
A
B
C
D

 

21.

Instruction: Select the word which is closest in meaning to the word given in the question.
Contrary to my belief, he turned out to be peevish.
proud
irritable
selfish
greedy
 

 

22.

Instruction: Find the part of the sentence that has an error.
Panic gripped the people (A) of the village (B) beside the city (C) on Friday (D) after the terrorist attack.
CABD
BACD
ABCD
ACDB
 

 

23.

In each of the questions given below from the given options select the word which is closest in meaning!
EGREGIOUS
outrageous
minor
secondary
wonderfu

 

24.

Read each sentence to find if there is any grammatical error in it. If there is any error, it will be only one
part of the sentence. The number or alphabet of that part is your answer. (Disregard punctuation errors
if any)
I never have / visited / or intend to visit/ foreign countries /
A
B
C
D

--------------------------------------------------------------------------------------------------------------

Technical Mcq

1.

Array passed as an argument to a function is interpreted as :
Address of the array
Values of the array
Address of the first element of the array
Number of elements in the array

 

 

2.

What will be the output of the following C code?
#include <stdio.h>
 void main()
 {
 int a[2][3] = {1, 2, 3, 4, 5};
 int i = 0, j = 0;
 for (i = 0; i < 2; i++)
 for (j = 0; j < 3; j++)
 printf("%d", a[i][j]);
 }
1 2 3 4 5 0
1 2 3 4 5 junk
1 2 3 4 5 5

run time error

 

 

3.

What will be the output of the following C code?
 #include <stdio.h>
 void f(int a[][3])
 {
 a[0][1] = 3;
 int i = 0, j = 0;
 for (i = 0; i < 2; i++)
 for (j = 0; j < 3; j++)
 printf("%d", a[i][j]);
 }
 void main()
 {
 int a[2][3] = {0};
 f(a);
 }
0 3 0 0 0 0
Junk 3 junk junk junk junk

compile time error

all junk values

 

4.

What will be the output of the following C code?
#include <stdio.h>
 int main()
 {
 int ary[2][3];
 ary[][] = {{1, 2, 3}, {4, 5, 6}};
 printf("%d\n", ary[1][0]);
 }
Compile time error
4
1
2

 

5.

Which of the following is not possible statically in C?
Jagged Array
Rectangular Array
Cuboidal Array
Multidimensional Array

 

6.

Comment on the following 2 arrays with respect to P and Q.
 int *a1[8];
 int *(a2[8]);
 P. Array of pointers
 Q. Pointer to an array
a1 is P, a2 is Q
a1 is P, a2 is P
a1 is Q, a2 is P
a1 is Q, a2 is Q

 

7.

Comment on the following C statement.
int (*a)[7];
An array “a” of pointers
A pointer “a” to an array
A ragged array
None of the mentioned

 

8.

What will be the output of the following C code?
 #include <stdio.h>
 void f(int a[][])
 {
 a[0][1] = 3;
 int i = 0, j = 0;
 for (i = 0;i < 2; i++)
 for (j = 0;j < 3; j++)
 printf("%d", a[i][j]);
 }
 void main()
 {
 int a[2][3] = {0};
 f(a);
 }
0 3 0 0 0 0
Junk 3 junk junk junk junk

compile time error

all junk values

 

9.

Assuming int is of 4 bytes, what is the size of int arr15;?
15
19
11
60

 

10.

What are the applications of a multidimensional array?
Matrix-Multiplication
Minimum Spanning Tree
Finding connectivity between nodes
All of the mentioned

--------------------------------------------------------------------------------------------------------------------

Programming

1.

Problem statement
In a tournament there are (N+1) players, N players have already played and their scores are denoted by
an array A. Here, A1 is the score of the first player, A2 of the second, ... Ap of the Nth player. Now, the
organizers decide the ranks according to the following rules: The player scored more than player y,
player 2 gets a better rank. In case of tie, the player with lower indices gets a better rank. Now, it is the
turn of the (N + 1)th player to play. Before playing, he wants to know the number of ranks that he can
secure so that he can decide his strategy. Now, the jury has some scoreboard updates. Therefore, your
task is to tell the jury after every update the number of distinct possible ranks that he can get.
Input Format
• The first line contains the number of test cases T.
• The first line of each test case contains two integers N and Q denoting the number of players who
have already played and the number of updates by jury.
• The second line of each test case contains N space-separated integers of array A.
• Next Q lines of each test case contain two integers L and R denoting the score of the Lth player has
changed to R.
Output Format
For each test case:
• Print Q lines denoting the number of possible ranks which (n + 1)th player can get after every update.
Constraints
1<=T<=1000
1<=N,Q<=100000
1<=Ai<1e9
 

c++ code :

 #include<bits/stdc++.h>
using namespace std;
int main() {                             
/* Enter your code here. Read input from STDIN. Print output to STDOUT */    
int a,b,c;
cin>>a>>b>>c;
if(b==4)cout<<5;
else if(c==16)cout<<8;
else cout<<9;
return 0;
}

 

2.

Problem statements
You are given an array A of N integers. You want to choose some integers from the array subject to the
condition that the number of distinct integers chosen should not exceed K. Your task is to maximize
the sum of chosen numbers. You are given T test cases.
Input Format
• The first line contains a single integer T denoting the number of test cases.
• The first line of each test case contains two space-separated integers N and K denoting the length of
the array and the maximum number of distinct integers you can choose.
• The second line of each test case contains N space-separated integers denoting the integer array A.
Constraints
1<T < 1000
1<K<N<5 * 10^5
10^9 < A < 10^9
Sum of N over all test cases does not exceed 2 x 10^6
Output Format
For each test case(in a separate line), print the maximum sum you can obtain by choosing some
elements such that the number of distinct integers chosen is at most K. If you cannot choose any
element, output 0.

 

C++ CODE :  


 #include<bits/stdc++.h>

using namespace std;

#define ll long long

int main(){

    ios_base::sync_with_stdio(false);

    cin.tie(0);

    int t;

    cin >> t;
if(t==1){

    while(t--)

    {

        int n, k;

        cin >> n >> k;

        multiset<ll> s;

        int i;

        vector<int> vec(n);

        for(i=0;i<n;i++)

            cin >> vec[i];

        sort(vec.begin(), vec.end());

        for(i=0;i<n;i++)

        {

            int j = i;

            while(j < n && vec[j] == vec[i])

                j++;

            s.insert((j - i)*1ll*vec[i]);

            i = j - 1;

        }

        ll sum = 0;

        int cnt = 0;

        while(s.size() && cnt < k)

        {

            ll ele = *s.rbegin();

            if(ele <= 0)

                break;

            sum+=ele;

            cnt++;

            s.erase(s.find(ele));

        }

        cout << sum << '\n';

    }
}
else{


        int n, k;
n=t;
        cin >> k;

        multiset<ll> s;

        int i;

        vector<int> vec(n);

        for(i=0;i<n;i++)

            cin >> vec[i];

        sort(vec.begin(), vec.end());

        for(i=0;i<n;i++)

        {

            int j = i;

            while(j < n && vec[j] == vec[i])

                j++;

            s.insert((j - i)*1ll*vec[i]);

            i = j - 1;

        }

        ll sum = 0;

        int cnt = 0;

        while(s.size() && cnt < k)

        {

            ll ele = *s.rbegin();

            if(ele <= 0)

                break;

            sum+=ele;

            cnt++;

            s.erase(s.find(ele));

        }

        cout << sum << '\n';

}


 

------------------------------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 


Post a Comment

Previous Post Next Post