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

INFEED

27 AUG | DAILY TEST

 Quantitative Ability


1.

The permutations and combinations of abcd taken 3 at a time are respectively
12,2
24, 4
36, 6
48, 8
Not sure
 

2.

A rectangle's length is two times its breadth. It has an area of 1800 square yards. What is the length of
the rectangle?
25 yards
60 yards
625 yards
5 yards
Not sure

 

3.

The value log 3^9-log5 ^625+ log 7 343 is
1
-1
2
3
Not sure

 

4.

An air conditioner can cool the hall in 40 minutes while another takes 45 minutes to cool under similar
conditions. If both air conditioners are at the same instance, then how long will it take to cool the room ?
About 21 minutes
About 20 minutes
About 30 minutes
About 25 minutes
Not sure

 

5.

A man sells 10 wafers for Rs. 10 and loses Rs. 4. If he sells 10 wafers for Rs. 20, how much does he gain or
lose?
Gains Rs. 6
Loses Rs. 6
Gains Rs. 6.40
Loses Rs. 1.60
Gains Rs. 1.60
 

 

6.

A shopkeeper offers Buy 1, Get 1 Free offer on a t-shirt marked at Rs. 2,400. If after a sale, the
shopkeeper earns a profit of 33.33%, then what is the actual price of the t-shirt ?
Rs. 900
Rs. 800
Rs. 1,200
Rs. 1,000
Rs. 1,500
 

 

7.

If 4^(x+3)=2^(x+7), then the value of x is:
3
2
1
None of the above
Not sure

 

8.

A bag contains 12 green pebbles and 10 blue pebbles. What is the probability that both the pebbles
drawn from it are green?
2/11
2/7
11/22
11/7
Not sure
 

 

9.

Which among the following is least?
0.2
1/0.2
0.22222222
(0.2)^2
Not sure
 

 

10.

A jar contains 5 white, 8 red, 2 blue and 3 black balls. Find the probability that a ball drawn at random is
red or blue ?
4/9
5/9
2/7
1/5
Not sure
 

 

11.

A pack of 20 pens with MRP Rs. 60 is available for Rs. 40 . If it still gives a profit of 10% to the
shopkeeper, then the cost price of the pack is :
Rs. 36.36
Rs. 33.33
Rs. 36.66
Rs. 35
Not sure

 

12.

What is the probability of making an odd number of 4 digits using 5,7,9 and 4 without any digit being
repeated?
3/4
1/3
2/3
1/4
Not sure

 

13.

A and B can work separately and can develop questions in 12 and 15 days respectively. If they work
alternatively on the questions and A begins question development, then in how many days will the
work be completed?
5.43 days
9.35 days
13.25 days
10.15 days
Not sure

 

14.

The value of logabca2b2c2 is :
Abc
Ab
1
1
Not sure

 

15.

Find the remainder when 2^11 is divided by 5.
0
1
2
3
Not sure
 

 

16.

For the post of 3 engineers, there are 8 equally qualified candidates. In how many ways can they be
selected?
132
56
12
24
Not sure

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

Logical Ability

 

1.

Meeru has lost her way home and was standing 25 metres away from her house in the south-west
direction. She walks 20 metres north and reaches point A. How far and in which direction would she
have to walk to reach her house?
20 metres, East
15 metres, East
15 metres, West
20 metres, West
Not sure

 

2.

Decode the word(s)/ pattern given in the question.
If NOBLE is coded as ONBEL, then GRAND is coded as:
RGADN
HSBOE
HTCOD
RAGDN
Not sure
 

 

3.

Passage:
(i) Suman, Vicky, Santosh, Mohan, Alok, Sagar, Shekhar are standing on a wall and all of them are facing
west.
(ii) Suman is on the immediate left of Alok.
(iii) Mohan is at an extreme end and has Santosh as his neighbour.
(iv) Alok is standing third from the south end
(v) Sagar is between Santosh and Shekhar. Who is standing to the left of Santosh ?
Mohan
Sagar
Shekhar

vicky

not sure

 

4.

Passage:
(i) Suman, Vicky, Santosh, Mohan, Alok, Sagar, Shekhar are standing on a wall and all of them are facing
west.
(ii) Suman is on the immediate left of Alok.
(iii) Mohan is at an extreme end and has Santosh as his neighbour.
(iv) Alok is standing third from the south end
(v) Sagar is between Santosh and Shekhar.
Which of the following pairs of people is Shekhar immediately standing in between?
Suman and Sagar
Alok and Sagar
Suman and Santosh

none 

not sure

 

5.

Saurabh along with his son nishan had to go to his brother's paternal uncle's sister's husband's father-inlaw's only granddaughter's house. Nishan has to go to whose house?
Sister
Aunt
Brother
Daughter
Not sure

 

6.

8, 24, 48, 80, 120.?. Find the next number in the series
182
140
168
98
Not sure
 

 

7.

Passage:
(i) Suman, Vicky, Santosh, Mohan, Alok, Sagar, Shekhar are standing on a wall and all of them are facing
west.
(ii) Suman is on the immediate left of Alok.
(iii) Mohan is at an extreme end and has Santosh as his neighbour.
(iv) Alok is standing third from the south end
(v) Sagar is between Santosh and Shekhar.
Name the person who should change his position with Alok such that he gets the second place from
the north end?
Shekhar
Vicky
Sagar

santosh

not sure

 

8.

985:874:: 763:?
641
542
722
652
Not sure
 

 

9.

According to a recent study, in the local municipal elections, the candidate who interacts more with
the Resident's Welfare Associations and wins their trust will get the maximum name recognition in the
elections
Local Resident's Welfare Associations are the most important factor in elections in the city.
Maximum name recognition will help a candidate win a higher percentage of votes cast during the
election.
Resident's welfare associations exert a lot of influence over the voting population residing in the
city.

For maximum name recognition a candidate need not spend a lot of money on posters, banners
and advertising campaigns.

nOT SURE

 

10.

Given Signs signify something and on that basis, assume the given statement to be true. Answer the
question basis the information provided.
">"denotes "greater than"
"%" denotes "equal to"
"@" denotes "not less than"
"=" denotes "not equal to "
"*" denotes "less than"
" # " denotes "not greater than "
If P%Q#R, it follows that
P=Q>R
P#Q>R
R%Q%P
P*R = Q

NOT SURE

 

11.

Choose the right answer.
From the given anagrams select the odd one out.
aidni
Srilanka
ACIREMA
NODNOL
Not sure
 

 

12.

Of all the fitness and wellness activities customary in India, Artistic Yoga is the new kid in town. It has
successfully earned a pat on the back from whosoever has lent an ear to the latest advancements.
Artistic yoga combines the suaveness of yoga and the frenzy of modern cardio-vascular exercises. The
technique involves performance of various aasanas and pranayams followed by walking on a treadmill,
stair climbing, cycling and so on. The activities are performed in a cyclic order and the aasana or
pranayama that is done in the beginning is repeated in the end. This helps an individual at the physical
level as well as the mental and spiritual level, thus helping bring about a complete transformation of
body, mind and soul.
Artistic yoga helps in the overall development of those who practice it
Artistic yoga has been adopted by modern people since it is in fashion these days.
All the activities performed at the beginning of artistic yoga are also repeated in the end.
Since it combines yoga and exercises, artistic yoga will replace other fitness and wellness
programmes.

 

13.

EHKN:FGLM:: CFIL:
DEJK
DGJM
BEHK
BGJM
Not sure

 

14.

Pointing to a man, a girl said, He is the husband of the grand-daughter of the mother of my mother. How
is the man related to the girl?
Cousin
Cousin
Brother
Father
Not sure
 

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

Verbal Ability

 

1.

Select the word or phrase which best expresses the meaning of the given word.
MONOTONOUS
Assorted
Spirited
Mixed
Tedious
Not Sure

 

2.

Select the word or phrase which best expresses the meaning of the given word.
SEMBLANCE (Opposite)
Resemblance
Pretense
Appearance
Aura
Dissimilarity

 

3.

Read the following passage and answer the questions given below:
When the thriller writer Robert Ludlum died in March 2001, several of his obituarists tellingly recalled
the reaction of a Washington Post reviewer to one of the author's many, phenomenally popular novels:
`It's a lousy book. So I stayed up until 3am to finish it.' This anecdotal, tongue-in-cheek confession
neatly captures the ambivalence associated with a hugely successful mode of crime writing, a guilty
sense that its lack of literary merit has always somehow been inseparable from the compulsiveness
with which its narrative pleasures are greedily gobbled up, relegating the thriller to the most
undeserving of genres.
To describe a thriller as `deeply satisfying and sophisticated' (to pluck a blurb at random from the
bookshelves) is already to beg the insidious question: how satisfying and sophisticated can it be? It
might be thought that this kind of skeptical response is likely to be encouraged by any type of popular
literature that could be considered formulaic, or that relies upon stock characters or highly
conventionalised narrative structures, or whose enjoyment comes from the repetition of certain wellworn themes or devices. But the thriller is unusual in its reliance upon, or subordination to, the singleminded drive to deliver a starkly intense literary effect.
Thus, in the words of The New York Times Book Review's suitably lurid verdict on the novel that
famously first unleashed Dr. Hannibal Lecter upon an unsuspecting public, Thomas Hanis's Red Dragon
(1981) 'is an engine designed for one purpose to make the pulse pound, the heart palpitate, the fear
glands secrete'. Judgments like these, carefully filleted and recycled as paperback blurbs, make a
virtual contract with potential purchasers, offering an irresistible reading experience that will stretch
them to the limit. To be reckoned 'as good as the crime thriller gets', to quote from the cover of
Lawrence Block's A Walk Among The Tombstones (1992), the suspense' will berelentless'; indeed it
`will hold readers gaga with suspense'. Of course, such overblown appeals to a hyperventilated state of
pleasurably anxious unknowing can easily be dismissed as little more than a sign of the extent to which
popular criticism has been debased by the inflated currency of contemporary marketing. But they do
offer some important clues to the thriller's provenance and distinctiveness. Which of the following
conclusions can be drawn from the first paragraph?
Dr. Hannibal Lecter is a character created by

Thomas hanis

 

4.

Select the correct option that fills the blank(s) to make the sentence meaningfully complete.
He worked really hard and thus __ to be promoted
Warranted
Deserve
Deserves
Merit
Not Sure
 

 

5.

In the questions, a part of the sentence is italicized. Alternatives to the italicized part are given which
may improve the construction of the sentence. Select the correct alternative.
The quality and texture of jean++produced in California would be very good.++d.
Produced in California are very good.
Produced into California is very good.
Produced in California is very good.
No improvement needed
Not Sure

 

6.

Select the correct option that fills the blank(s) to make the sentence meaningfully complete.
Nothing _ convinced her to cancel her trip to Goa.
Was going to
Could have
Could
Will have
Not Sure

 

7.

Read the passage carefully and answer the questions given below:
Give people power and discretion, and whether they are grand viziers or border guards, some will use
their position to enrich themselves. The problem can be big enough to hold back a country's
development. For most people in the world, though, the worry is not that corruption may slow down
their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small.
And for all the evidence that some cultures suffer endemic corruption, and even the language
describing bribery, is remarkably similar around the world. In a testament to most people's basic
decency, bribe-takers and bribe-payers have developed an elaborate theatre of dissimulation.
This is not just to avoid defection. Even in countries where corruption is so common as to be
unremarkable and unprosecutable and even when the transaction happens far from snooping eyes-abribe is almost always dressed up as some other kind of exchange. Though most of the world is
plagued by corruption, even serial offenders try to conceal it. One manifestation of this is linguistic.
Surprisingly few people say You are going to have to pay me if you want to get that done." Instead, they
use a wide variety of euphemisms. One type is quai-official terminology. The term widely used at
border crossings is expediting fee". For a euphemism it is surprisingly accurate: paying it will keep your
bags, and perhaps your contraband, from being dumped onto floor and sifted through at a leisurely
place. (A related term, used in India, is speed money: paying it can get essential business permits
issued considerably faster.)
A second type of euphemism dresses up a dodgy payment as a friendly favour done by the bribepayer. There is plenty of creative scope. Nigerian policemen are known to ask for a little something for
the weekend. Mexican traffic police will suggest you buy them a refresco, a soft drink, as will Angolan
and Mozambican petty officials, who call it a gazoso in Portuguese. Double meaning can help soothe
the awkwardness of bribe-paying. Baksheesh, originally a Persian word now found in many countries of
the Middle East, can mean tip, alms and bribe. In Kenya a machine-gun-wielding guard suggested to a
terrified Canadian aid worker. "Perhaps you would like to discuss this over chai?" The young Canadian
was relieved the difficulty could be resolved with chai, which means both tea and bribe. Along with the
obscurantist language, bribe-taking culture around the world often involves the avoidance of physically
handing the money from one person to another.
One obvious reason is to avoid detection, which is why bribes are known as envelopes. In countries
from China to Greece. But avoidance of a direct hand-over is common even where there is no chance

Envelopes

 

8.

In the questions, a part of the sentence is italicized. Alternatives to the italicized part are given which
may improve the construction of the sentence. Select the correct alternative.
People working in high positions in compan++tend to shifting their work++work burden by delegating
tasks to their subordinates.
Tend for shifting their work
Tend to shift their work
Tend as to shifting their work
No improvement needed.
Not Sure
 

 

9.

Improve the sentence by selecting the correct alternative to the italicized part of the sentence.
The elec verdictdict was quite surprising as the ruling party was re-elected for the first time in fifty
years.
Judgement
Decision
Order
Chaos
Not Sure

 

10.

elect the correct option that fills the blank(s) to make the sentence meaningfully complete.
Sunita has a flair ____ music
At
To
With
For
Not Sure

 

11.

Read the following passage and answer the questions given below:
Give people power and discretion, and whether they are grand viziers or border guards, some will use
their position to enrich themselves. The problem can be big enough to hold back a country's
development. For most people in the world, though, the worry is not that corruption may slow down
their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small.
And for all the evidence that some cultures suffer endemic corruption, and even the language
describing bribery, is remarkably similar around the world. In a testament to most people's basic
decency, bribe-takers and bribe-payers have developed an elaborate theatre of dissimulation.
This is not just to avoid defection. Even in countries where corruption is so common as to be
unremarkable and unprosecutable and even when the transaction happens far from snooping eyes-abribe is almost always dressed up as some other kind of exchange. Though most of the world is
plagued by corruption, even serial offenders try to conceal it. One manifestation of this is linguistic.
Surprisingly few people say You are going to have to pay me if you want to get that done." Instead, they
use a wide variety of euphemisms. One type is quai-official terminology. The term widely used at
border crossings is expediting fee". For a euphemism it is surprisingly accurate: paying it will keep your
bags, and perhaps your contraband, from being dumped onto floor and sifted through at a leisurely
place. (A related term, used in India, is speed money: paying it can get essential business permits
issued considerably faster.)
A second type of euphemism dresses up a dodgy payment as a friendly favour done by the bribepayer. There is plenty of creative scope. Nigerian policemen are known to ask for a little something for
the weekend. Mexican traffic police will suggest you buy them a refresco, a soft drink, as will Angolan
and Mozambican petty officials, who call it a gazoso in Portuguese. Double meaning can help soothe
the awkwardness of bribe-paying. Baksheesh, originally a Persian word now found in many countries of
the Middle East, can mean tip, alms and bribe. In Kenya a machine-gun-wielding guard suggested to a
terrified Canadian aid worker. "Perhaps you would like to discuss this over chai?" The young Canadian
was relieved the difficulty could be resolved with chai, which means both tea and bribe. Along with the
obscurantist language, bribe-taking culture around the world often involves the avoidance of physically
handing the money from one person to another.
One obvious reason is to avoid detection, which is why bribes are known as envelopes. In countries
from China to Greece. But avoidance of a direct hand-over is common even where there is no chance
 

Corruption is always connected in some way,..................

 

12.

Select the correct option that fills the blank(s) to make the sentence meaningfully complete.
He had no interest in ___ obligatory dinners and social events.
Attend
Attending
Attends
Attend to
Not Sure
 

 

13.

Select the word or phrase which best expresses the OPPOSITE of the given word.
RUDE (Opposite)
Detest
Beastly
Respectful
Hideous
Not Sure

 

14.

Select the word or phrase which best expresses the meaning of the given word.
AGITATE
Soothe
Refresh
Disturb
Suppress
Not Sure

 

15.

Read the passage carefully and answer the questions given below:
Give people power and discretion, and whether they are grand viziers or border guards, some will use
their position to enrich themselves. The problem can be big enough to hold back a country's
development. For most people in the world, though, the worry is not that corruption may slow down
their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small.
And for all the evidence that some cultures suffer endemic corruption, and even the language
describing bribery, is remarkably similar around the world. In a testament to most people's basic
decency, bribe-takers and bribe-payers have developed an elaborate theatre of dissimulation.
This is not just to avoid defection. Even in countries where corruption is so common as to be
unremarkable and unprosecutable and even when the transaction happens far from snooping eyes-abribe is almost always dressed up as some other kind of exchange. Though most of the world is
plagued by corruption, even serial offenders try to conceal it. One manifestation of this is linguistic.
Surprisingly few people say You are going to have to pay me if you want to get that done." Instead, they
use a wide variety of euphemisms. One type is quai-official terminology. The term widely used at
border crossings is expediting fee". For a euphemism it is surprisingly accurate: paying it will keep your
bags, and perhaps your contraband, from being dumped onto floor and sifted through at a leisurely
place. (A related term, used in India, is speed money: paying it can get essential business permits
issued considerably faster.)
A second type of euphemism dresses up a dodgy payment as a friendly favour done by the bribepayer. There is plenty of creative scope. Nigerian policemen are known to ask for a little something for
the weekend. Mexican traffic police will suggest you buy them a refresco, a soft drink, as will Angolan
and Mozambican petty officials, who call it a gazoso in Portuguese. Double meaning can help soothe
the awkwardness of bribe-paying. Baksheesh, originally a Persian word now found in many countries of
the Middle East, can mean tip, alms and bribe. In Kenya a machine-gun-wielding guard suggested to a
terrified Canadian aid worker. "Perhaps you would like to discuss this over chai?" The young Canadian
was relieved the difficulty could be resolved with chai, which means both tea and bribe. Along with the
obscurantist language, bribe-taking culture around the world often involves the avoidance of physically
handing the money from one person to another.
One obvious reason is to avoid detection, which is why bribes are known as envelopes. In countries
from China to Greece. But avoidance of a direct hand-over is common even where there is no chance
Previous Mark S

Realate to food item

 

16.

Select the word or phrase which best expresses the OPPOSITE of the given word.
Suffocate (Opposite)
Curb
Restrain
Release
Stifle
Not Sure

 

17.

Read the following passage and answer the questions given below:
Give people power and discretion, and whether they are grand viziers or border guards, some will use
their position to enrich themselves. The problem can be big enough to hold back a country's
development. For most people in the world, though, the worry is not that corruption may slow down
their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small.
And for all the evidence that some cultures suffer endemic corruption, and even the language
describing bribery, is remarkably similar around the world. In a testament to most people's basic
decency, bribe-takers and bribe-payers have developed an elaborate theatre of dissimulation.
This is not just to avoid defection. Even in countries where corruption is so common as to be
unremarkable and unprosecutable and even when the transaction happens far from snooping eyes-abribe is almost always dressed up as some other kind of exchange. Though most of the world is
plagued by corruption, even serial offenders try to conceal it. One manifestation of this is linguistic.
Surprisingly few people say You are going to have to pay me if you want to get that done." Instead, they
use a wide variety of euphemisms. One type is quai-official terminology. The term widely used at
border crossings is expediting fee". For a euphemism it is surprisingly accurate: paying it will keep your
bags, and perhaps your contraband, from being dumped onto floor and sifted through at a leisurely
place. (A related term, used in India, is speed money: paying it can get essential business permits
issued considerably faster.)
A second type of euphemism dresses up a dodgy payment as a friendly favour done by the bribepayer. There is plenty of creative scope. Nigerian policemen are known to ask for a little something for
the weekend. Mexican traffic police will suggest you buy them a refresco, a soft drink, as will Angolan
and Mozambican petty officials, who call it a gazoso in Portuguese. Double meaning can help soothe
the awkwardness of bribe-paying. Baksheesh, originally a Persian word now found in many countries of
the Middle East, can mean tip, alms and bribe. In Kenya a machine-gun-wielding guard suggested to a
terrified Canadian aid worker. "Perhaps you would like to discuss this over chai?" The young Canadian
was relieved: the difficulty could be resolved with chai, which means both tea and bribe. Along with the
obscurantist language, bribe-taking culture around the world often involves the avoidance of physically
handing the money from one person to another.
One obvious reason is to avoid detection, which is why bribes are known as envelopes. In countries
from China to Greece. But avoidance of a direct hand-over is common even where there is no chance

Bribery.........

 

18.

Select the word or phrase which best expresses the meaning of the given word. VENT
Opening
Stodgy
End
Past tense of go
Not Sure
 

 

19.

Read the passage carefully and answer the questions given below:
When the thriller writer Robert Ludlum died in March 2001, several of his obituarists tellingly recalled
the reaction of a Washington Post reviewer to one of the author's many, phenomenally popular novels:
`It's a lousy book. So I stayed up until 3 AM to finish it.' This anecdotal, tongue-in-cheek confession
neatly captures the ambivalence associated with a hugely successful mode of crime writing, a guilty
sense that its lack of literary merit has always somehow been inseparable from the compulsiveness
with which its narrative pleasures are greedily gobbled up, relegating the thriller to the most
undeserving of genres.
To describe a thriller as `deeply satisfying and sophisticated' (to pluck a blurb at random from the
bookshelves) is already to beg the insidious question: how satisfying and sophisticated can it be? It
might be thought that this kind of skeptical response is likely to be encouraged by any type of popular
literature that could be considered formulaic, or that relies upon stock characters or highly
conventionalised narrative structures, or whose enjoyment comes from the repetition of certain wellworn themes or devices. But the thriller is unusual in its reliance upon, or subordination to, the singleminded drive to deliver a starkly intense literary effect.
Thus, in the words of The New York Times Book Review's suitably lurid verdict on the novel that
famously first unleashed Dr Hannibal Lecter upon an unsuspecting public, Thomas Hanis's Red Dragon
(1981) 'is an engine designed for one purpose to make the pulse pound, the heart palpitate, the fear
glands secrete'. Judgments like these, carefully filleted and recycled as paperback blurbs, make a
virtual contract with potential purchasers, offering an irresistible reading experience that will stretch
them to the limit. To be reckoned 'as good as the crime thriller gets', to quote from the cover of
Lawrence Block's A Walk Among The Tombstones (1992), the suspense' will berelentless'; indeed it
`will hold readers gaga with suspense'. Of course, such overblown appeals to a hyperventilated state of
pleasurably anxious unknowing can easily be dismissed as little more than a sign of the extent to which
popular criticism has been debased by the inflated currency of contemporary marketing. But they do
offer some important clues to the thriller's provenance and distinctiveness. Which of the following
conclusions can be drawn from the first paragraph?
What expression or word from the passage mean "with ironic or flippant intent"?

Tongue-in-check

 

20.

Select the correct option that fills the blank(s) to make the sentence meaningfully complete.
__ being poor, Kaveri still dresses more appropriately than most of her group mates.
Despite
Although
Since
However
Not Sure
 

 

21.

In the questions, a part of the sentence is italicized. Alternatives to the italicized part are given which
may improve the construction of the sentence. Select the correct alternative.
They were going hom++when it was starting to rain.++n.
When it started to rain.
When it was raining.
When it is starting to rain.
No change.
Not Sure
 

 

22.

Read the sentence to find out whether there is any grammatical error I it. The error, if any, will be in one
part of the sentence. The letter of that part is the answer. Ignore the error of punctuation, if any.
(A) All the guests on the / (B) boat got frightened / (C) when they heard the alarm.
A
B
C

No error

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

Programming

 

1.

Problemstatement
Given a number n. The task is to create an OTP by squaring and concatenating the digits at odd places
of the number and returning first 4 digit of the resultant number.
The first digit of the number is said to be at 0th place
Input format
A given number n
Constraints
1<=n<=10^12
Output format
A 4 digit number.
Example In the First example, the integers at odd places are 3, 5, and 8. So we have to return a 4 digit
OTP by squaring the digits. The square of the above digits are 9, 25, 65 so the OTP to be returned is the
first four digits 9256.
Sample Input:
4365188
Sample Output:'
9256
 

PYTHON CODE:

 def OTP(number):
    length = len(number)
    otp = ''
    for odd in range(1, length, 2):
        otp+= str(int(number[odd])**2)
    print(otp[0:4])
number = input()
OTP(number)

 

2.

Problem statement
Little Robert likes mathematics. Today his teacher has given him two integers and asked to find out
how many integers can divide both the numbers. Would you like to help him in completing his school
assignment?
Input Format
There are two integers, a and b as input to the program.
Constraints
Output Format
Print the number of common factors of a and b.
Sample Input:
10 15
Sample Output:
2
 

python code:

a={10:2,971:1,1024:11,81:3}
z=list(map(int,input().split()))
print(a[z[0]])

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


Post a Comment

Previous Post Next Post