Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

16/10/2023, 16:11 Question List

Home / Tech Mahindra MockTest #1 -Bits / Questions


 Questions (64)

#(64) Question
1 Atul bought a machine for Rs.4,50,000 and sold it to Irfan at a profit. Irfan later sold the machine to Danish at a loss of 10% for
Rs.4,95,000. The profit % earned by Atul is?
(A) 24%
(B) 21%
(C) 25%
(D) 22.22%
Answer : D Section : Quantitative Aptitude Type : mcq Mark : 1
2 A software Engineer creates a LAN game where a five digit code made up of 1,2,3,4,5,6,7,8 has to be decided on as a universal
code. There is a condition that each number has to be used and no number can be repeated. What is the probability that first 4
digit of a code are even numbers?
(A) 1/70
(B) 1/840
(C) 1/8
(D) 1/40320
Answer : A Section : Quantitative Aptitude Type : mcq Mark : 1
3 What is the combination of 3 balloons from a packet of 25 balloons. Are
(A) 2400
(B) 2500
(C) 2300
(D) 2600
Answer : C Section : Quantitative Aptitude Type : mcq Mark : 1
4 Which number should be subtracted from 876905 so that it can be divisible by 8?
(A) 1
(B) 2
(C) 3
(D) 4
Answer : A Section : Quantitative Aptitude Type : mcq Mark : 1
5 If the sum of squares of two numbers is 2754, and their HCF is 9, LCM is 135, then the numbers are
(A) 27,36
(B) 27,35
(C) 28,45
(D) 27,45
Answer : D Section : Quantitative Aptitude Type : mcq Mark : 1
6 An air container can cool the hall in 40 minutes while another takes 45 minutes to cool under similar conditions. If both air
conditioners are switched on at same instance, then how long will it take to cool the room?
(A) About 22 minutes
(B) About 20 minutes
(C) About 30 minutes
(D) About 25 minutes
Answer : A Section : Quantitative Aptitude Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 1/13
16/10/2023, 16:11 Question List

#(64) Question
7 Jagdish can build a wall in 10 days. Narender can build the same wall in 12 days while Sumit takes 15 days to do the same job.
Which two of them should be employed to finish the job in 6 days?
(A) Jagdish and Narender
(B) Jagdish and Sumit
(C) Sumit and Narender
(D) None of these
Answer : B Section : Quantitative Aptitude Type : mcq Mark : 1
8 Manu invested 30% of his capital in petrol bonds and rest in life insurance plan. He has invested Rs.34000 more in life insurance
plan than in petrol bonds. How much the total investment made by Manu?
(A) 25500
(B) 59500
(C) 85000
(D) 95000
Answer : C Section : Quantitative Aptitude Type : mcq Mark : 1
9 A machine worth Rs.1,80,000 depreciates at the rate of 18% of the value of the machine per annum. The value of the machine in
18 months from now will be:
(A) Rs.2,31,516
(B) Rs.1,34,316
(C) Rs.1,50,000
(D) Rs.1,00,000
Answer : B Section : Quantitative Aptitude Type : mcq Mark : 1
10 If Mini downloads three more songs in her mobiles, she will have songs with 512MB in her mobile. If on an average each songs is
4 MB, how many songs did she initially have in her phone before downloading?
(A) 125
(B) 128
(C) 120
(D) 137
Answer : A Section : Quantitative Aptitude Type : mcq Mark : 1
11 In a match , awards are given to each of 11 members of the team and a trophy to the team. In all winning team gets 2.75kg
weight awards, if the weight of match winning trophy is 1.275 kg. What is the weight of the award given to each player?
(A) 200 grams
(B) 150grams
(C) 124 grams
(D) 134 grams
Answer : D Section : Quantitative Aptitude Type : mcq Mark : 1
12 A Train runs at speed of 42 m/s and takes 35 seconds to pass a tunnel. After travelling some distance. It takes 15 seconds to
pass a pole. What is the length of the tunnel?
(A) 162 m
(B) 630 m
(C) 840 m
(D) 240 m
Answer : C Section : Quantitative Aptitude Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 2/13
16/10/2023, 16:11 Question List

#(64) Question
13 Pointing to girl child in a photograph woman said "Her mother’s sister is the wife of my son". How is the woman related to the
child?
(A) Mother
(B) Daughter
(C) Sister
(D) None of these
Answer : D Section : Logical Reasoning Type : mcq Mark : 1
14 A lady runs 18km towards East and then 24km towards North. How far and in which direction is the lady from the starting point?
(A) 42km North-East
(B) 42km East
(C) 6km East
(D) 30km North-East
Answer : D Section : Logical Reasoning Type : mcq Mark : 1
15 Find the Odd man out.
(A) FHKO
(B) CEHL
(C) XZCG
(D) ZBEJ
Answer : D Section : Logical Reasoning Type : mcq Mark : 1
16 The given sign signify something and on that basis,assume the given statements to be true and find which of the two conclusion
I and II is/are definitely true
A + B means A equals to B
A - B means A less than B
A = B means A not equal to B
A*B means A is greater than B
A/B means A is lesser than B.
Statements :
k - m, k / l, l + n
Conclusions:
(1) m - l
(2) m / n
(A) Only 1 is true
(B) Only 2 is true
(C) Both are true
(D) None of these are true
Answer : C Section : Logical Reasoning Type : mcq Mark : 1
17 Four working ladies A, B, C and D sitting around a table
A sits opposite to the cook
B sits on the right side of the beautician
Teacher is on the left side of an accountant.
D sits opposite to C
C is to the right of the accountant
What is the occupation of C?
(A) Beautician
(B) Teacher
(C) Accountant
(D) Cook
Answer : A Section : Logical Reasoning Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 3/13
16/10/2023, 16:11 Question List

#(64) Question
18 Four working ladies A, B, C and D sitting around a table
A sits opposite to the cook
B sits on the right side of the beautician
Teacher is on the left side of an accountant.
D sits opposite to C
C is to the right of the accountant
What are the occupations of A and B?
(A) Accountant and Beautician
(B) Accountant and cook
(C) Accountant and teacher
(D) Teacher and cook
Answer : B Section : Logical Reasoning Type : mcq Mark : 1
19 Four working ladies A, B, C and D sitting around a table
A sits opposite to the cook
B sits on the right side of the beautician
Teacher is on the left side of an accountant.
D sits opposite to C
C is to the right of the accountant
who is sitting to the left of the beautician ?
(A) cook
(B) accountant
(C) teacher
(D) None of these
Answer : B Section : Logical Reasoning Type : mcq Mark : 1
20 If GULMOHAR is coded as TFONLSZI,PIPAL will be coded as:
(A) QJQBM
(B) QJQBN
(C) KRKZO
(D) KIKZO
Answer : C Section : Logical Reasoning Type : mcq Mark : 1
21 If 1022834 represents VACCINE, which word is represented by 4820548?
(A) ECHELON
(B) ECLIPSE
(C) ESCAPES
(D) ESTIMATE
Answer : C Section : Logical Reasoning Type : mcq Mark : 1
22 QPS:TSV :: IHK: ?
(A) LKN
(B) NQP
(C) MKN
(D) LOM
Answer : A Section : Logical Reasoning Type : mcq Mark : 1
23 QDXM:SFYN :: UIOZ:?
(A) PAQM
(B) LPWA
(C) QNLA
(D) WKPA
Answer : D Section : Logical Reasoning Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 4/13
16/10/2023, 16:11 Question List

#(64) Question
24 2, 3, 6, 18, 108, ____________
(A) 54
(B) 1002
(C) 216
(D) 1944
Answer : D Section : Logical Reasoning Type : mcq Mark : 1
25 Based on the given passage find out which of the following statements can be inferred from the passage.
According to a recent study, in the local municipal elections, the candidate who interacts more with the Residents Welfare
Association and wins their trust will get the maximum name recognition in the election.
(A) Local Residents Welfare Associations are the most important factor in elections in the city.
(B) Maximum name recognition will help a candidate with a higher percentage of votes cast during the election.
(C) Resident’s welfare associations exert a lot of influence over the voting population residing in the city.
(D) For maximum name recognition a candidate need not spend a lot of money on posters, banners and
advertising campaigns.
Answer : C Section : Verbal Ability Type : mcq Mark : 1
26 Find the odd one
(A) Excited
(B) Ecstatic
(C) Elated
(D) Excluded
Answer : D Section : Verbal Ability Type : mcq Mark : 1
27 In the following question, choose the word opposite to the meaning of the given word.
AGITATE
(A) Soothe
(B) Refresh
(C) Disturb
(D) Suppress
Answer : A Section : Verbal Ability Type : mcq Mark : 1
28 In the given alternatives, choose the one which best expresses the meaning of the word
VENT
(A) Opening
(B) Stodgy
(C) End
(D) Past tense of Go
Answer : A Section : Verbal Ability Type : mcq Mark : 1
29 In the question, each passage consists of six sentences. The first and the sixth sentences are given in the beginning. The
remaining are jumbled up and assigned labels : P,Q,R & S.
S1: Rajeev and his friends went for river rafting.
S6: Later they all came to know that he is aquaphobic.
P: Rajeev forced him to have some medicine.
Q: They tried persuading him to join them for rafting, but he had a severe stomach ache. R: Which he refused adamantly
S: Among all his friends, Kunal backed out at the last moment.
(A) PSQR
(B) QPRS
(C) RQSP
(D) SQPR
Answer : D Section : Verbal Ability Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 5/13
16/10/2023, 16:11 Question List

#(64) Question
30 SENTENCE CORRECTION
Its best to attribute his bad mood on tiredness and just forgot it.
(A) attribute his bad mood to tiredness
(B) contribute his bad mood to tiredness
(C) attribute his bad mood with tiredness
(D) No change
Answer : A Section : Verbal Ability Type : mcq Mark : 1
31 SPOTTING ERROR:
(A) When the captain called the crew (B) Each of the crew members run together (C) to the deck of the ship
(A) A
(B) B
(C) C
(D) No Error
Answer : B Section : Verbal Ability Type : mcq Mark : 1
32 SELECTING WORDS
All the faculty members except HoD _______________ to the new curriculum proposed by Prof. Bhasin
(A) agrees
(B) agreed
(C) proceed
(D) satisfied
Answer : B Section : Verbal Ability Type : mcq Mark : 1
33 SELECTING WORDS
The tiring trip to hills of Shivpuri ______________ the entire group exhausted.
(A) cancelled
(B) failed
(C) left
(D) remains
Answer : C Section : Verbal Ability Type : mcq Mark : 1
34 Select the correct option that fills the blanks to make the sentence meaningfully complete.
Months have passed and no action _____________ been taken for a dowry harassment case filed against the in-laws
(A) has
(B) have
(C) had
(D) none
Answer : A Section : Verbal Ability Type : mcq Mark : 1
35 Improve the sentence by selecting the correct alternative to the italicized part of the sentence.
As per the weather prediction, it will rain heavily for the next one week.
(A) observation
(B) report
(C) forecast
(D) news
Answer : C Section : Verbal Ability Type : mcq Mark : 1
36 Which of the following sentence is grammatically correct?
(A) younis has played twenty matches last year
(B) younis have played twenty matches last year
(C) younis have been played twenty matches last year
(D) younis had been played twenty matches last year
Answer : D Section : Verbal Ability Type : mcq Mark : 1
https://bits2.xplore.co.in/test/369213/questionlist 6/13
16/10/2023, 16:11 Question List

#(64) Question
37 void fun1(struct node* head)
{
if(head == NULL)
return;

fun1(head->next);
printf("%d ", head->data);
}

(A) Print all the nodes of the linked lists


(B) Print all the nodes of the linked list in reverse order
(C) Print alternative nodes of the linked list
(D) Print alternative nodes in reverse order
Answer : B Section : Computer Programming Type : mcq Mark : 1
38 I have a problem to solve which takes as input a number n.
The problem has a property that given the solution for (n-1),
I can easily solve the problem for n.
Which programming technique will I use to solve such a problem?
(A) Iteration
(B) Decision-making
(C) Object Oriented Programming
(D) Recursion
Answer : D Section : Computer Programming Type : mcq Mark : 1
39 Pankaj and Mythili were both asked to write the code to evaluate the following expression:
a - b+ c/(a-b) + (a-b)^2
Pankaj writes the following code statements (Code A):
print (a-b) + c/(a-b) + (a-b)*(a-b)
Mythili writes the following code statements (Code B):
d = (a-b)
print d + c/d + d*d
If the time taken to load a value in a variable, for addition, multiplication or division between two operands is same, which of the
following is true?
(A) Code A uses lesser memory and is slower than Code B
(B) Code A uses lesser memory and is faster than Code B
(C) Code A uses more memory and is faster than Code B
(D) Code A uses more memory and is slower than Code B
Answer : A Section : Computer Programming Type : mcq Mark : 1
40 Q is an empty queue. The following operations are done on it:
ADD 5
ADD 7
ADD 46
DELETE
ADD 13
DELETE
DELETE
ADD 10
What will be the content of Q after these operations? Front is marked by (F) and Rear is marked by (R).
(A) 10(R) 13(F)
(B) 5(R) 10(F)
(C) 13(R) 10(F)
(D) 10(R) 5(F)
Answer : A Section : Computer Programming Type : mcq Mark : 1
41 What is implied by the argument of a function?
(A) The variables passed to it when it is called
(B) The value it returns on execution
(C) The execution code inside it
(D) Its return type
Answer : A Section : Computer Programming Type : mcq Mark : 1
https://bits2.xplore.co.in/test/369213/questionlist 7/13
16/10/2023, 16:11 Question List

#(64) Question
42 A pseudo-code is used. Assume that when two data-types are processed through an operator, the answer maintains the same
data-type as the input data-types. Assume that all data-types have enough range to accommodate any number. If two different
data-types are operated on, the result assumes the more expressive data-type.
What will be the output of the following pseudo-code statements?
Integer a = 456, b, c, d =10

b = a/d

c = a - b

print c

(A) 410
(B) 410.4
(C) 411.4
(D) 411
Answer : D Section : Computer Programming Type : mcq Mark : 1
43 Geeta takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. She stores them as 5-bit numbers. She
writes the following code to process these numbers to produce a third number c
c = 2*(a - b)
In how many minimum bits should Geeta store c?
(A) 6 bits
(B) 7 bits
(C) 8 bits
(D) 9 bits
Answer : B Section : Computer Programming Type : mcq Mark : 1
44 Which of the following data structures may give overflow error, even though the current number of elements in it is less than its
size?
(A) Queue implemented in a linear array
(B) Queue implemented in a circularly connected array
(C) Stack implemented in a linear array
(D) None of these
Answer : A Section : Computer Programming Type : mcq Mark : 1
45 Farhan writes a code to find the factorial of an inputted number. His code gives correct answers for some inputs and incorrect
answers for others. What kind of error does his program have?
(A) Syntactical error
(B) Run-time Error
(C) Logical Error
(D) None of these
Answer : C Section : Computer Programming Type : mcq Mark : 1
46 As part of the maintenance work, you are entrusted with the work of rearranging the library books in a shelf in proper order, at
the end of each day. The ideal choice will be Bubble Sort
(A) Insertion Sort
(B) Selection Sort
(C) Heap Sort
(D) None
Answer : B Section : Computer Programming Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 8/13
16/10/2023, 16:11 Question List

#(64) Question
47 An array contains the following elements in order: 7 6 12 30 18. Insertion sort is used to sort the array in ascending order. How
many times will an insertion be made?
(A) 2
(B) 3
(C) 4
(D) 5
Answer : A Section : Computer Programming Type : mcq Mark : 1
48 Ragu writes a program to find an element in the array A[5] with the following elements in order: 18 32 44 46 57. She runs the
program to find a number X. X is found in the first iteration of binary search. What is the value of X?
(A) 44
(B) 18
(C) 46
(D) 32
Answer : A Section : Computer Programming Type : mcq Mark : 1
49 What will be the output of the following code
#include<iostrearn>
using namespace std:
class PM{
public: void designation() {cout « "PM";}
}:
class CEO{
public:
CEO() (pmPtr = new PM: }
PM *operator -> ()) {return pmPtr:}
void designation() (cout << "CEO":}
private: PM -pmPtr:
void designation() (cout << "CEO":}
private : PM *pmPtr:
}:
int main() {
CEO'ceoPtr:
ceoPtr = new CEO:
ceoPtr ->designation():
delete ceoPtr:
}

(A) CEO
(B) CEO
CEO
CEO
(C) CEO
CEO
(D) Compile Error
Answer : A Section : Computer Programming Type : mcq Mark : 1
50 int inDay = 2;
String day;
switch (inDay) {
case 1: day = “Sunday”;
case 2: day = “Monday”;
case 3: day = “Tuesday”;
case 4: day = “Wednesday”;
case 5: day = “Thursday”;
case 6: day = “Friday”;
case 7: day = “Saturday”;
default: day = “Invalid entry”;
}
System.out.println("Selected day is: " + day);

(A) Selected day is: Friday


(B) Selected day is: Sunday
(C) Selected day is: Invalid entry
(D) Selected day is: Monday
Selected day is: Invalid entry
Answer : C Section : Computer Programming Type : mcq Mark : 1
https://bits2.xplore.co.in/test/369213/questionlist 9/13
16/10/2023, 16:11 Question List

#(64) Question
51 A complete binary tree has a property that the value at each node is at least as large as the values at its children nodes. What is
this binary tree known as?
(A) Binary Search Tree
(B) AVL Tree
(C) Completely Balanced Tree
(D) Heap
Answer : D Section : Computer Programming Type : mcq Mark : 1
52 Which of the following sorting algorithms yields approximately the same worst-case and average-case running time behavior in
O(n long)?
(A) Bubble sort and Selection sort
(B) Heap sort and Merge sort
(C) Quick sort and Radix sort
(D) Tree sort and Median-of-3 Quick sort
Answer : B Section : Computer Programming Type : mcq Mark : 1
53 A programmer is making a database of animals in a zoo along with their properties. The possible animals are dog. Lion and zebra
each one has attributes as herbivorous. Color and nocturnal. The programmer uses the object- oriented programming paradigm
for this. How will the system be conceptualized?
(A) Class: Animal; objects: dog, lion and zebra: data members: herbivorous, color and nocturnal
(B) Class: Animal; objects: herbivorous, color and nocturnal: data members: dog lion and Zebra
(C) Classes: dog lion and zebra: objects: Animal; data members; herbivorous, color and nocturnal
(D) None of the these
Answer : A Section : Computer Programming Type : mcq Mark : 1
54 A stack is implemented as a linear array A[0…N-1] A programmer writes the function given below to pop out an element from the
stack
Function POP ( top, N)
{
if (X)
{
top = top -1
}
else
{
“Print Underflow”
}
return top

Which of the following should substitute the condition”X”?


(A) top = 0
(B) top < 1
(C) top > 1
(D) top >= 0

Answer : D Section : Computer Programming Type : mcq Mark : 1


55 A tree has 5 levels and each node has either 4 or no children. All nodes on the same level have the same number of children.
How many nodes are there in the tree?
(A) 341
(B) 256
(C) 1024
(D) None of the above
Answer : C Section : Computer Programming Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 10/13
16/10/2023, 16:11 Question List

#(64) Question
56 Why is an algorithm designer concerned primarily about the run time and not the compile time while calculating time complexity
of an algorithm?
(A) Run time is always more than the compile time.
(B) Compile time is always more than the run time.
(C) Compile time is a function of run time.
(D) A program needs to be compiled once but can be run several times.
Answer : A Section : Computer Programming Type : mcq Mark : 1
57 What is the average time required to perform a successful sequential search for an element in an array A(1: n)?
(A) (n+1)/2
(B) log2 n
(C) n(n+1)/2
(D) n2

Answer : A Section : Computer Programming Type : mcq Mark : 1


58 Which of the following options is an exception to being a part of composite date types?
(A) Union
(B) Array
(C) Structure
(D) Stack
Answer : C Section : Computer Programming Type : mcq Mark : 1
59 A queue is implemented as a singly linked-list. Each node has an element and a pointer to another node. The Rear and the Front
contain the addresses of the rear and the front nodes, respectively. What can be inferred about the linked list if the condition
(rear isequal front) is true?
(A) It has no elements
(B) It has one element
(C) There is an error
(D) None of the above
Answer : B Section : Computer Programming Type : mcq Mark : 1
60 Consider the code given below. Assume that “a” and “b” are passed reference. What will the output of the program be when the
function calculate() is executed?
function modify(b,a)
{
return a –b
}
function calculate()
{
integer a = 5, b = 12, c
c = modify(a,b):
print c
}

(A) 7
(B) -7
(C) 8
(D) Error
Answer : A Section : Computer Programming Type : mcq Mark : 1
61 For which of the following is the stack implementation useful?
(A) Radix search
(B) Breadth fist search
(C) Recursion
(D) None of the above
Answer : C Section : Computer Programming Type : mcq Mark : 1

https://bits2.xplore.co.in/test/369213/questionlist 11/13
16/10/2023, 16:11 Question List

#(64) Question
62 Given the current situation John is in, can you help him figure out a solution?
John is trying to find the numbers which are surrounded by prime numbers.
A number is said to be John's favourite if it is surrounded by prime numbers. So, a number X is John's favourite if it falls in
a pattern like so, P, X, P where X is surrounded by P on both side and P is a prime number.
Help John give out the total of such numbers.
NOTE: You just need to print the count of those numbers.
Examples:
1. array = [1, 2, 3, 4, 5]
Output:
1
Reason: number 4 is surrounded by 3 and 5 which are prime numbers, hence, answer is 1.
2. array = [3, 4, 5, 5, 5]
Output:
2
Reason: Numbers at index 1 and index 3, are both surrounded by prime numbers, hence the count is 2.
 Testcases
Input Output
#1 123456789 2
#2 55555555 6
#3 3 5 5 8 8 8 5 5 7 11 3
#4 333333 4
#5 3837777777777 10
Answer : Section : Coding Type : code Mark : 10

https://bits2.xplore.co.in/test/369213/questionlist 12/13
16/10/2023, 16:11 Question List

#(64) Question
63 Given the name of a city, you have to find out if the name of the city is valid or not.
The name of a city is valid if it contains atleast one uppercase, one lowercase letter and one digit.
Simply print "valid" or "invalid" accordingly.
Examples:
1. name = "Italy1"
Output:
valid
2. name = "ohio5"
Output:
invalid
 Testcases
Input Output
#1 Delhi11 valid
#2 Delhi invalid
#3 DELHI1 invalid
#4 Austri21 valid
#5 1Ab valid
Answer : Section : Coding Type : code Mark : 10
64 He who never learnt to obedient can’t be a good leader.Justify this statement with both positive and negatives dxce1
Answer : Section : Writex Pro Type : sq Mark : 5

https://bits2.xplore.co.in/test/369213/questionlist 13/13

You might also like