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

INFEED

DAILY TEST | 27 JULY 2021

 Logical Reasoning

 

1.

Surat is in which direction of Kolkata?
A) Surat is west of Pune
B) Pune is north of Kolkata
Statement I alone is suf
Statement II alone is suf
Both I and II are together sufficient
Either of them is sufficient
Both together are not sufficient



2.

Surabhi left her cousin’s place in the evening. Her shadow was on left side while she walked 100 m in
that direction. She took right and made 10 m and finally left walked 15 m. In which direction she is
walking now?
North
East
South
west

 

 

3.

The body that impacted Earth at the end of the Cretaceous period was a meteorite with a mass of
more than a trillion tons and a diameter of at least 10 kilometers. Scientists first identified this impact
in 1980 from the worldwide layer of sediment deposited from the dust cloud that enveloped the planet
after the impact. This sediment layer is enriched in the rare metal iridium and other elements that are
relatively abundant in a meteorite but very rare in the crust of Earth. Even diluted by the terrestrial
material excavated from the crater, this component of meteorites is easily identified . By 1990
geologists had located the impact site itself in the Yucatan region of Mexico. The crater, now deeply
buried in sediment, was originally about 200 kilometers in diameter. Which of the following can be
inferred from the paragraph about the location of the meteorite impact in Mexico?
The location of the impact site in Mexico was kept secret by geologists from 1980 to 1990.
It was a well-known fact that the impact had occurred in the Yucatán region.
Geologists knew that there had been an impact before they knew where it had occurred.
The Yucatán region was chosen by geologists as the most probable impact site because of its
climate

 

 

4.

Pointing to a boy, a girl said “he is the son of my mother’s only son”. How is he related to me?
son
nephew
father
none of these
 

 

5.

Amit lost his way, while leaving home, he went 20m south, took left and walked 30m, took right 5m, again
right 5m and finally left walking 10m. Find his present direction from home.
South east
North west
South
east
 

 

6.

A boy facing west, took left walked 60m and took right walked 30m and right again 60m. How far is he
from original point and direction?
30m. east
30m, west
30m, northeast
30m, southeast

 

 

7.

If the word “CRACKERS” is coded as IXXZVPHI, then APTITUDE is coded as?
BKRGFVSE
HSYBSLTY
KZRGFGVW
KBRFGGWV

 

 

8.

Select the word or phrase which best expresses the meaning of the given word. SUFFOCATE (OPPOSITE
Curb
Restrain
Release
Stifle
Not Sure
 

 

9.

A man facing south rotates 900 anticlockwise and 450 clockwise and again 1800 anticlockwise and
2700 clockwise. Which direction is he facing now?
South west
South
West
North east

 

 

10.

People are always less happy to accept scientific data they feel contradicts their preconceived beliefs.
No surprise here; no human likes to be wrong. But science isn't supposed to care about preconceived
notions. Science, at least good science, tells us about the world as it is, and not as some wish it to be.
Sometimes what science finds is consistent with a particular religion's wishes. But usually it is not.
Question: What can be inferred about good science? Select from the given options.
A good science is well received by the educated people.
A good science is based on concrete results obtained through testing the hypothesis.
A good science and religion are same.
A good science will always prove the general populace wrong.

 

 

11.

5, 10, 12, 24, 26, 52, ?
52
56
58
54
 

 

12.

If CHROME is coded as TTEGOQ, then GRAPES is coded as ?
CITURG
CTURGI
CIURGT
CTIUGR
 

 

13.

Choose the answer option that arranges the given set of words in the ‘most’ meaningful order. The
words when put in order should make logical sense according to size, quality, quantity, occurrence of
events, value, appearance, nature, process etc. 1. Robery 2. FIR 3. Punishment 4. Complaint 5.
Investigation
5,2,3,1,4
1, 3,4, 5,2
1,4,2,5,3
1,4,2,3,5

 

14.

Pointing to Adithi, a boy said “she is sister of wife of my father’s only son”. How is she related to me?
Aunt
Niece
Wife
Sister-in-law
 

 

15.

rain : wet :: fire::?
dry
coal
burn
freeze

 

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

Quantitative Aptitude

1.

Express 2.33 as fraction
16/3
15/7
None of these
21/9
 


2.

What is the value of (-7)^3/ 49?
7
-49
-7
None of these

 

3.

Cost price of 5 apples is equal to selling price of 7 apples. Find gain/loss percentage
28.57 % gain
33.33% gain
33.33% loss
28.57% loss
 

 

4.

A team leader wants 1800 coding questions in 15 hours. An employee on an average does 150 questions
in 5 hours. How many such employees are needed?
2 employees
6 employees
4 employees
8 employees
 

 

5.

If 1254@8 should be divisible by 8, which of the following should be in place of @
2
3
4
1
 

 

6.

Number of students who take entrance test are increasing by 10% every year. If 3 years ago, the number
of students appeared were 30,000. Find the count for next year.
43,333
43,923
53,666
58,333
 

 

7.

What should be divided by (0.0225)1/2 such that the result will be 15?
0.1
0.01
1
0.001
 

 

8.

Deepak and Neeraj started walking towards each other. They have a distance of 1000m between them.
How long will they need to meet if Deepak is traveling with a speed of 10m/s and 15m/s respectively?
30 seconds
15 seconds
40 seconds
45 seconds

 

9.

Find the value of n (4^ 564) / 4^ n = 4^ 212
320
282
352
172
 

 

10.

The word WALKING should be permuted such that vowels occupy even positions. How many ways are
possible?
240
360
720
1020
 

 

11.

Express 1.253/? = 7
0.182
0.179
0.163
0.193

 

12.

Find the probability that a day in a week has alphabet U in it.
3/7
5/7
1/7
4/7
 

 

13.

A cistern is 3/7 empty and 20 liters fills up remaining cistern. Find out the capacity of cistern
35 liters
30 liters
42 liters
50 liters

 

14.

297801 should be divisible by 24. Find the number to be added to make it divisible
7
15
16
9

 

15.

What is value of (1/729) 1/3?
0.33
0.13
0.11
0.72
 

 

16.

Arrange the following in ascending order -11/3, -15/6, -19/7, -11/6
-11/3, -15/6, -19/7, -11/6
-15/6,-19/7,-11/3, -11/6
-11/6, -19/7, -11/3, -15/6
-11/3, -19/7, -15/6, -11/6

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

Computer Programming

 

 1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
int i = 0, k;
 label: printf("%d", i);
if (i == 0)
goto label;
 }
0
infinite 0
Nothing
Error 



2.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
 }
void m()
{
printf("hi");
m();
 }
Compile time error
hi
Infinite hi
Nothing

 

 

3.

Which function definition will run correctly?
int sum(int a, int b)
return (a + b);


int sum(int a, int b)
{return (a + b);}


int sum(a, b)
return (a + b);


none of the mentioned

 

 

4.

Which of the following function declaration is illegal?
int 1bhk(int);
int 1bhk(int a);
int 2bhk(int*, int []);
all of the mentioned
 

 

5.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
void m()
{
printf("hi");
 }
 }
hi
Compile time error
Nothing

Varies

 

 

6.

What is the time complexity of Postorder Traversal?
O(1)
O(n)
O(log n)
O(n*n)
 

 

7.

Which of the following is a correct format for declaration of function?
return-type function-name(argument type);
return-type function-name(argument type){}
return-type (argument type)function-name;
all of the mentioned

 

8.

What would this function print if the Linked List given below is passed to it?
Head-> 5 -> 1 -> 8 -> 9 -> 12 -> NULL
void fun1(struct node* head)
{
if(head == NULL){
return;
}
printf("%d ", head->data);
 fun1(head->next);
 }
1 5 9 8 12
5 1 8 9 12
12 5 1 8 9

12 9 8 1 5

 

9.

We define some functions as given below: push( int x ) : This pushes the number x into a predefined
Queue 'Q'.
pop( ) : This pops out( delete ) the last element in the Queue ‘Q’.
front( ) : Returns the number on the top of the Queue ‘Q’.
Now a function “fun( )” is implemented using these three functions.
What will be the output of the function given below?
void fun( )
{
int i=1,j=0;
for(;i<=5;i++)
{
for(j=0;j<i;j++)
{
push( i );
}
int k;
for( k=0; k< i/2 ; k++)
{
pop();
}
printf("%d ", top());

 

1 2 3 4 5 

 0 1 2 3 4

1 2 2 3 4

1 2 3 3 4

 

10.

What will be the output of the following C code?
#include <stdio.h>
 void main()
 {
 int i = 0, k;
 if (i == 0)
 goto label;
 for (k = 0;k < 3; k++)
 {
printf("hi\n");
 label: k = printf("%03d", i);
 }
 }
0
hi hi hi 0 0 0
0 hi hi hi 0 0 0

0 0 0

 

11.

Which of these sorting algorithms is best for sorting a random linked list?
Heap Sort
Merge Sort
Bubble Sort
Quick Sort
 

 

12.

Where is the maximum number in a binary search tree?
At the root of the tree
Anywhere other than root and leaf nodes
At the leftmost leaf node
At the rightmost leaf node

 

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

 Automata Fix

1.

The function patternPrint(int n) supposed to print n number of lines in the following pattern For n=4 the
pattern should be:
1
1 1
1 1 1
1 1 1 1
The function complies successfully but fails to return the desired results due to logical errors .
Your task is to debug the program to pass all the test cases
Input Format
Integer
Output Format
Corresponding pattern

 

#include<stdio.h>
void patternPrint (int num);
int main() {
int n;
scanf("%d",&n);
patternPrint (n);
return 0;
}
void patternPrint(int n) {
int print=1,i,j;
 
 
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
 
{
printf("%d ",print);
 }
printf("\n");
 
}
}



2.

Analyze the given code and rewrite the program by filling the missing lines of code. Find sum of natural
numbers using recursion.
Input Format
A positive number.
Output Format
Corresponding output.

 

#include <stdio.h>
int addNumbers(int);
int main() {
 
 int num;
scanf("%d", &num);
printf("Sum = %d",addNumbers(num));
return 0;
}
 
int addNumbers(int n)
 
{
  int s=0;
  for(int i=0;i<=n;i++)
    s+=i;
  return s;
 
 }

 

 

3.

Analyse the given program and rewrite the code by filling the missing lines of code.
Calculate factorial of a number using recursion.
Input Format
Positive integer.
Output Format
Corresponding output

 //missing code

if (n >= 1)
return n*multiplyNumbers(n-1); else
return 1;

 

 

 

4.

The function checkGrade(int score) is supposed to return a students grade when the students test
score is passed to it as an argument(o<=sore<=100) Given a particular score a grade is calculated as
per the following table Score Grade
1. score>=90 A
2 .76<=score<=90 B
3 .61<=score<=75 C
4 score<=60 D
The code has syntax errors.
Your task is to debug the program to pass all the test cases.
Input Format
Positive integer.
Output Format
Corresponding output
 

#include<stdio.h>
char checkGrade(int score)
{
if(score<=60)
return 'D';
else if((61<=score)&&(score<=75))
return 'C';
else if((76<=score)&&(score<=90))
return 'B';
else
return 'A';
}
//Processing math: 100%
 
 
//Processing math: 100%
 
int main()
{
 int score;
 scanf("%d",&score);
 
 printf("%c\n", checkGrade(score));//error
 
}

 

5.

The function getarraysum(int *arr,int len) is supported to calculation and return the sum of elements of
the input array arr of length len(len>0).
The function compiles successfully but fails to return the desired result due to logical errors.
Your task is to fix the logical error and run the code.
Input Format
The first line of input contains no.of elements in the array.
Second line contains the elements of the array.
Output Format
Sum of the elements.

 

#include<stdio.h>
int getarraysum(int *arr,int len)
{
int sum=0;
int i;
 
for(i=0;i<len;i++)
 
{
sum=sum+arr[i];
}
 
return sum;
}
main()
{
int arr[5];
int len;
 scanf("%d",&len);
for(int i=0;i<len;i++)
{
scanf("%d",&arr[i]);
}
printf("%d",getarraysum(arr,len));
}

 

 

6.

The function printTable(int num)is supposed to print the first ten multiples of the multiplication table
of the input number num.
The code has logical errors in the line below.
Your task is to fix the program so that it passes all the test cases.
Input Format
Positive Integer.
Output Format
Corresponding multiples of the integer.

#include "stdio.h"
void printTable(int n);
int main(){
  int n;
scanf("%d",&n);
printTable(n);
}
void printTable(int num)
{
int i,value = 0;
 
for(i=0;i<10;i++)
{//error
value+=num ;//error
 
printf("%d\n", value);
}
}

 


 

 

7.

The function calculateMatrixSum(int **matrix, int m, int n) accepts a two-dimensional array matrix of
dimensions m, n as an input and returns the sum of odd elements whose ith and jth index are the
same.(m=n=3).
The code has logical errors in the lines below.
Your task is to debug the program so that it passes all the test cases.
Input Format
3 X 3 matrix.
Output Format
Print the corresponding output. 


#include<stdlib.h>
#include<stdio.h>
int calculatematrixsum(int **matrix,int m,int n);
int main(){
int m=3,n=3;
int **matrix;
int i;
matrix=(int **)malloc(sizeof(int));
for( i=0;i<3;i++){
matrix[i]=(int *)malloc(sizeof(int));}
int j;
for(i=0;i<3;i++){
for( j=0;j<3;j++){
scanf("%d",&matrix[i][j]);}}
int s=calculatematrixsum(matrix,m,n);
printf("%d",s);
}
int calculatematrixsum(int **matrix,int m,int n)
{
int i,j,sum=0,row=m,column=n;
if((row>0)&&(column>0)){
int sum=0;
for(i=0;i<row;i++){
for(j=0;j<column;j++)
{
 
     if(i==j)//error
     {
if(matrix[i][j]%2!=0)//error
sum+=matrix[i][j];
     }
 
}
}
return sum;
}

}

 

 

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


Essay Writing

Write an essay on the below topic as per the directions given
"How to maintain success in life?"
Directions
1. Please express your opinion on the given topic in 220-250 words. You advised adhering to the
word limit to avoid any scoring penalty.
2. Common grammatical rules, punctuation should be according to standard English 


In today's world, many peoples are getting chances to experience a joy of EMPLOYMENT. Additionally, various sacrifices and knowledge can be the attributed for these generally positive trends. However, others believe that, without a lot of struggles as well, citizens are able to embrace the goal. I will explain both sides of views and try to reach a conclusion.

It is true that, nowadays, in many parts of the globe, no one is staying on tensions in their lives. It means, they have become successfully experts to pull out a joy. Similarly, owing to their a good educations and cognizances on the concerned pre-plan, today they are now called as successful person. It is fact that, to get a high level of position, a typical person must has to graduates from a university. Considering this fact, peoples often prefer to gain their target, since their childhood. So their desire become strong enough to upgrade their intelligence, which is an enviable for them to grant the target. For instance, Ram Krishna Dhakal, one of the most popular singer of Nepal since his childhood, has now recently got an award of being best singer. He got this only because of his desire and sacrifice on this area. It means, only those could be fortunate one, who indulge themselves in desired plans.

However, other oppose these views. Firstly, they claim that, nowadays, peoples can easily be lucky enough in portraying the image of success. It is to say that, most peoples have their own known professional belongings, owing to which, it sustains them to acquired the level of that position. Similarly, it means that, no any solid desire and talent are indispensable to become famous in capability. Another aspect regarding this topic is, some inhabitants get an ample opportunity to be well known unexpectedly. For example, if certain people attend on seminar, where he or she have to exhibit his or her views and ideas, such thought could attract some third person, who would provoke him or her to be a part of concerned business, which fortify his or her lives consequently. Thus, a plethora of endeavor and a huge strive can not be sometimes the factors of being success.

In conclusion, although behind some success has some prominent desire and struggle, but in some situation, this can not be the cardinal reasons. I personally think, without any sacrifice peoples also can achieve their goals.


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

English

 

1.

A. The two neighbours never fought each other.
B. Fights involving three male fiddler crabs have been recorded, but the status of the participants was
unknown . C. They pushed or grappled only with the intruder.
D. We recorded 17 cases in which a resident that was fighting an intruder was joined by an immediate
neighbour, an ally.
E. We therefore tracked 268 intruder males until we saw them fighting a resident male.
BEDAC
DEBAC
BDCAE
BCEDA

 

2.

Born on Jan 12, 1863 in an affluent Bengali family, Narendra Natha Datta was a precocious child who was
what we call nowadays, an all-rounder, excelling in music, studies and athletics. His father Vishwanatha
Datta was a well-known attorney. However, he took the spiritual route instead and introduced Hinduism
to the world in 1893 when he spoke at the World's Parliament of Religion (probably one of the most epic
things any Indian has done abroad!).The historic speech was given on September 11, 1893 by Swami
Vivekananda. Here's the full text of his opening and closing address: Sisters and Brothers of America,It
fills my heart with joy unspeakable to rise in response to the warm and cordial welcome which you
have given us. I thank you in the name of the most ancient order of monks in the world; I thank you in
the name of the mother of religions, and I thank you in the name of millions and millions of Hindu
people of all classes and sects.My thanks, also, to some of the speakers on this platform who, referring
to the delegates from the Orient, have told you that these men from far-off nations may well claim the
honor of bearing to different lands the idea of toleration. I am proud to belong to a religion which has
taught the world both tolerance and universal acceptance.We believe not only in universal toleration,
but we accept all religions as true. I am proud to belong to a nation which has sheltered the
persecuted and the refugees of all religions and all nations of the earth. I am proud to tell you that we
have gathered in our bosom the purest remnant of the Israelites, who came to Southern India and took
refuge with us in the very year in which their holy temple was shattered to pieces by Roman tyranny. I
am proud to belong to the religion which has sheltered and is still fostering the remnant of the grand
Zoroastrian nation. I will quote to you, brethren, a few lines from a hymn which I remember to have
repeated from my earliest boyhood, which is every day repeated by millions of human beings: "As the
different streams having their sources in different paths which men take through different tendencies,
various though they appear, crooked or straight, all lead to Thee."The present convention, which is one
of the most august assemblies ever held, is in itself a vindication, a declaration to the world of the
wonderful doctrine preached in the Gita: "Whosoever comes to me, through whatsoever form, I reach
him; all men are struggling through paths which in the end lead to me." Sectarianism, bigotry, and its
horrible descendant, fanaticism, have long possessed this beautiful earth. How do “civilized man”
behave?

 

Civilized man begins by destroying the vary forms....

 

 

3.

Rachna made a sorry figure in her performance.
cut a sad figure
cut a sorry face
cut a sorry figure
No correction

 

 

4.

Find the option which better expresses the opposite meaning of the given word. STARTLED
Amused
Relaxed
Endless
Astonished

 

5.

A sanctuary may be defined as a place where Man is passive and the rest of Nature is active. Till quite
recently Nature had her own sanctuaries, where man either did not go at all or only as a tool-using
animal in comparatively small numbers. But now, in this machinery age, there is no place left where
man cannot go with overwhelming forces at his command. He can strangle to death all the nobler wild
life in the world to-day. To-morrow he certainly will have done so, unless he exercises due foresight and
self-control in the mean time.There is not the slightest doubt that birds and mammals are now being
killed off much faster than they can breed. And it is always the largest and noblest forms of life that
suffer most. The whales and elephants, lions and eagles, go. The rats and files and all mean parasites,
remain. This is inevitable in certain cases. But it is wanton killing off that I am speaking of to-night.
Civilized man begins by destroying the very forms of wild life he learns to appreciate most when he
becomes still more civilized. The obvious remedy is to begin conservation at an earlier stage, when it is
easier and better in every way, by enforcing laws for close seasons, game preserves, the selective
protection of certain species, and sanctuaries. I have just defined a sanctuary as a place where man is
passive and the rest of Nature active. But this general definition is too absolute for any special case.
The mere fact that man has to protect a sanctuary does away with his purely passive attitude. Then, he
can be beneficially active by destroying pests and parasites, like bot-flies or mosquitoes, and by
finding antidotes for diseases like the epidemic which periodically kills off the rabbits and thus starves
many of the carnivore to death. But, except in cases where experiment has proved his intervention to
be beneficial the less he upsets the balance of Nature the better, even when he tries to be an earthly
Providence.It can be inferred that the passage is
What should be the most appropriate central idea of this passage?

 

Ecological balance , if not maintained by man will be harmful in long run

 

6.

A sanctuary may be defined as a place where Man is passive and the rest of Nature is active. Till quite
recently Nature had her own sanctuaries, where man either did not go at all or only as a tool-using
animal in comparatively small numbers. But now, in this machinery age, there is no place left where
man cannot go with overwhelming forces at his command. He can strangle to death all the nobler wild
life in the world to-day. To-morrow he certainly will have done so, unless he exercises due foresight and
self-control in the mean time.There is not the slightest doubt that birds and mammals are now being
killed off much faster than they can breed. And it is always the largest and noblest forms of life that
suffer most. The whales and elephants, lions and eagles, go. The rats and files and all mean parasites,
remain. This is inevitable in certain cases. But it is wanton killing off that I am speaking of to-night.
Civilized man begins by destroying the very forms of wild life he learns to appreciate most when he
becomes still more civilized. The obvious remedy is to begin conservation at an earlier stage, when it is
easier and better in every way, by enforcing laws for close seasons, game preserves, the selective
protection of certain species, and sanctuaries. I have just defined a sanctuary as a place where man is
passive and the rest of Nature active. But this general definition is too absolute for any special case.
The mere fact that man has to protect a sanctuary does away with his purely passive attitude. Then, he
can be beneficially active by destroying pests and parasites, like bot-flies or mosquitoes, and by
finding antidotes for diseases like the epidemic which periodically kills off the rabbits and thus starves
many of the carnivore to death. But, except in cases where experiment has proved his intervention to
be beneficial the less he upsets the balance of Nature the better, even when he tries to be an earthly
Providence.It can be inferred that the passage is
What is the “largest and most noblest form of life that suffer”

 

Birds and insects

 

 

7.

Find the suitable option which gives the opposite word FLAGITIOUS
Innocent
Vapid
Ignorant
Frivolous

 

8.

BELITTLE
Criticize
Flatter
Exaggerate
Adore

 

9.

They usually spend their holidays in __ mountains.
a
an
the
no article
 

 

10.

A sanctuary may be defined as a place where Man is passive and the rest of Nature is active. Till quite
recently Nature had her own sanctuaries, where man either did not go at all or only as a tool-using
animal in comparatively small numbers. But now, in this machinery age, there is no place left where
man cannot go with overwhelming forces at his command. He can strangle to death all the nobler wild
life in the world to-day. To-morrow he certainly will have done so, unless he exercises due foresight and
self-control in the mean time.There is not the slightest doubt that birds and mammals are now being
killed off much faster than they can breed. And it is always the largest and noblest forms of life that
suffer most. The whales and elephants, lions and eagles, go. The rats and files and all mean parasites,
remain. This is inevitable in certain cases. But it is wanton killing off that I am speaking of to-night.
Civilized man begins by destroying the very forms of wild life he learns to appreciate most when he
becomes still more civilized. The obvious remedy is to begin conservation at an earlier stage, when it is
easier and better in every way, by enforcing laws for close seasons, game preserves, the selective
protection of certain species, and sanctuaries. I have just defined a sanctuary as a place where man is
passive and the rest of Nature active. But this general definition is too absolute for any special case.
The mere fact that man has to protect a sanctuary does away with his purely passive attitude. Then, he
can be beneficially active by destroying pests and parasites, like bot-flies or mosquitoes, and by
finding antidotes for diseases like the epidemic which periodically kills off the rabbits and thus starves
many of the carnivore to death. But, except in cases where experiment has proved his intervention to
be beneficial the less he upsets the balance of Nature the better, even when he tries to be an earthly
Providence.It can be inferred that the passage is
 

Part of a speech delivered to an educated audience

 

11.

Choose the word that is closest in meaning to the word italicized in the sentence The painter worked in
his _.
Cupola
Parapet
Atelier
Dome
 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Post a Comment

Previous Post Next Post