Isi 1b
Isi 1b
Table of Contents
Table of Contents 1
Contributors 6
1 Algorithms (84) 7
1.1 Algorithm Design (32) 7
1.2 Divide And Conquer (2) 13
1.3 Dynamic Programming (5) 14
1.4 Graph Algorithms (2) 15
1.5 Greedy Algorithm (1) 15
1.6 Identify Function (12) 15
1.7 Minimum Spanning Trees (3) 20
1.8 P Np Npc Nph (2) 20
1.9 Recurrence (3) 21
1.10 Reduction (2) 21
1.11 Sorting (10) 22
1.12 Spanning Tree (1) 24
1.13 Time Complexity (9) 24
2 CO and Architecture (4) 28
2.1 Cache Memory (1) 28
2.2 Machine Instructions (1) 28
2.3 Pipelining (2) 28
3 Compiler Design (4) 30
3.1 Compilation Phases (1) 30
3.2 Parameter Passing (1) 30
3.3 Runtime Environments (2) 30
4 Computer Networks (8) 31
4.1 Crc Polynomial (1) 31
4.2 Data Link Layer (1) 31
4.3 Error Detection (1) 31
4.4 Link State Routing (1) 31
4.5 Routing (1) 32
4.6 Sliding Window (1) 32
4.7 Throughput (1) 32
4.8 Token Ring (1) 32
5 Databases (10) 33
5.1 Database Normalization (2) 33
5.2 Indexing (1) 33
5.3 Natural Join (1) 33
5.4 Relational Algebra (4) 34
5.5 Relational Calculus (1) 35
5.6 Sql (1) 35
6 Digital Logic (14) 36
6.1 Adder (1) 36
6.2 Boolean Algebra (4) 36
6.3 Boolean Expression (1) 36
6.4 Digital Circuits (1) 37
6.5 Error Detection (1) 37
6.6 Functional Completeness (1) 37
6.7 Ieee Representation (2) 37
6.8 K Map (1) 37
6.9 Number Representation (1) 38
6.10 Prime Implicants (1) 38
7 Discrete Mathematics: Combinatory (58) 39
7.1 Arrangements (4) 39
7.2 Binomial Theorem (10) 39
7.3 Circular Permutation (1) 41
7.4 Generating Functions (1) 41
Contributors
User , Answers User Added User Done
srestha 145, 29 Jotheeswari 196 Jeet 114
Muktinath Vishwakarma 115, 8 gatecse 167 Arjun Suresh 29
Jeet 107, 124 Arjun Suresh 105 Lakshman Patel 21
Dhananjay Kumar Sharma 83, 6 Keval Malde 40 Milicevic3306 20
Leen Sharma 82, 12 Sayan Bose 30 kenzou 17
Manoj Kumar 81, 13 Akash Dinkar 28 Naveen Kumar 17
Kushagra Chatterjee 54, 23 Jayanta Mahata 13 Sayan Bose 15
Heisenberg 47, 4 Devasish Ghosh 5 Washeef 14
Arjun Suresh 41, 5 abhi18459 3 Akash Dinkar 12
Sukanya Das 37, 4 Aakanchha 2 srestha 8
Washeef 37, 24 Satbir Singh 7
Soumya Jain 36, 2 Pavan Singh 7
pratekag 36, 18 Krithiga2101 6
Keval Malde 35, 11 Ashish verma 5
HABIB MOHAMMAD 32, 2 Ankit Gupta 5
KHAN Kushagra Chatterjee 4
balaeinstein 32, 4 Leen Sharma 4
Rishabh Gupta 31, 3 pratekag 4
Akshay Arora 30, 2 Shaik Masthan 3
sonu 29, 1 Tauhin Gangwar 3
2018 28, 3 Sourajit25 3
Satbir Singh 28, 39 Ajay kumar soni 3
Hemant Parihar 27, 1 Manoj Kumar 3
Ashish verma 26, 10 Shikha Mallick 3
shekhar chauhan 25, 1 Keval Malde 2
Gaurab Ghosh 23, 1 !KARAN 2
sourb 23, 1 Sukanya Das 2
Tariq Husain khan 22, 1 chirudeepnamini 2
Shyam Singh 21, 1 Mk Utkarsh 2
Ahwan Mishra 21, 1 Pooja Khatri 2
Manish Joshi 20, 1 Yash Khanna 2
Prasita Mukherjee 19, 6 Debashish Deka 2
Tauhin Gangwar 19, 8 Devasish Ghosh 2
Debashish Deka 18, 5 Soumya Jain 2
Pankaj Kumar 17, 2
Dhruv Patel 16, 1
Manu Thakur 16, 2
shayal chhabra 15, 1
Dharmendra Lodhi 14, 4
Ashwani Kumar 14, 10
debanjan sarkar 13, 1
Subarna Das 12, 1
Arkaprava Paul 12, 9
Arjun 11, 1
Tanushree 10, 2
Deepak Poonia 10, 3
Ankit Gupta 10, 3
suman116 10, 5
Shikha Mallick 10, 6
Shubham Sharma 9, 3
Lokesh Dafale 9, 6
Digvijay 8, 2
Sourajit25 8, 6
Sayan Bose 7, 5
Arnab Bhadra 6, 1
Sukannya Purkayastha 6, 1
asutosh kumar Biswal 6, 3
Anand Vijayan 5, 1
chirudeepnamini 5, 8
Utkarsh Joshi 4, 1
Sambit Kumar 3, 1
Ashok Laxman Bhojane 3, 1
aditi19 3, 1
sasuke 3, 4
!KARAN 3, 4
Mk Utkarsh 3, 5
Lakshman Patel 3, 7
amit kumar 3, 9
1 Algorithms (84)
You are given a list of positive integers along with a sequence of operations from the set {∗, +} .You construct
expressions from these two lists so that:
The numbers in the expression are drawn from the first list, without repetition and without altering their order.
All the operators in the second list are used in the expression, in the same order.
For example, if the two lists are [1, 3, 2, 1, 4] and [' ∗ ', ' + '] the set of possible expressions you can form are
1 ∗ 3 + 2, 1 ∗ 3 + 1, 1 ∗ 3 + 4, 1 ∗ 2 + 1, 1 ∗ 2 + 4, … , 2 ∗ 1 + 4, 1 ∗ 3 + 2, 1 ∗ 3 + 1, 1 ∗ 3 + 4, 1 ∗ 2 + 1, 1 ∗ 2 + 4, … , 2
For each expression, the value is computed by bracketing operators from the right. That is, the expressions above are evaluated
as
1 ∗ (3 + 2), 1 ∗ (3 + 1), 1 ∗ (3 + 4), 1 ∗ (2 + 1), 1 ∗ (2 + 4), … , 2 ∗ (1 + 4), 1 ∗ (3 + 2), 1 ∗ (3 + 1), 1 ∗ (3 + 4), 1 ∗ (2 +
The aim is to determine maximum value among these expressions. In this example, the maximum value is 18, from the
expression 3 ∗ 2 + 4, which is evaluated as 3 ∗ (2 + 4) = 3 ∗ 6 = 18 .
You may assume that the length of the first list is more than the length of the second list.
Describe an algorithm to solve this problem.
An international cellphone company provides service on 7 different frequencies. They wish to set up business in Tamil
Nadu and have fixed the locations of 100 towers for their new service. The company has to ensure that two towers
broadcasting on the same frequency are at least 100 km apart, so that there is no interference of signals.
i. Describe an algorithm which will answer the question “Is it feasible to set up towers at the given locations and provide
service on 7 different frequencies?”. Your algorithm should say “feasible” if it is feasible, otherwise output the minimum
number of frequencies needed to utilise all 100 towers.
Let A be an array of n integers, sorted, so that A[1] ≤ A[2] ≤ … A[n]. Suppose you are given a number x and you
wish to find out if there are indices k and l such that A[k] + A[l] = x.
Let A be an array of n integers, sorted so that A[1] ≤ A[2] ≤ … A[n]. Suppose you are given a number x and you
wish to find out if there exist indices k and l such that A[k] + A[l] = x.
Your final exams are over and you are catching up on watching sports on TV. You have a schedule of interesting
matches coming up all over the world during the next week. You hate to start or stop watching a match midway, so
your aim is to watch as many complete matches as possible during the week.
Suppose there are n such matches scheduled during the coming week and you know the starting and finishing time for each
match.
i. Describe an efficient algorithm to compute the following: for each match, what is the next match whose starting time is
strictly later than the finishing time of the current match? Analyze the worse-case complexity of your algorithm.
Air CMI operates direct flights between different cities. For any pair of cities A and B, there is at most one flight in a
day from A to B. The online site FakeTrip is tryingto compile a list of all routes available through Air CMI.
a. FakeTrip has a table of all direct flights operated by Air CMI. From this, it wants to prepare a list of all pairs of cities
connected by a sequence of flights. Describe an algorithm for this and analyze the complexity of your algorithm.
b. CheapTricks is trying to enter the market by improving on FakeTrip. CheapTricks has realized that not all
connections listed by FakeTrip are feasible because of arrival and departure constraints. A connection from A to B to C
is possible if the scheduled arrival of the flight from A to B is at least one hour before the scheduled departure of the flight
from B to C .
Given a table of direct flights with scheduled arrival and departure times, describe an algorithm for CheapTricks to list all
pairs of cities connected by a route on which all connections are feasible within the same day. Analyze the complexity of your
algorithm.
The frequency of a number in an array is the number of times it appears in the array. Describe an algorithm that finds
the most frequent number in an array of n numbers. If there are multiple numbers with highest frequency then list them
all. Analyze the complexity of your algorithm.
cmi2014 descriptive algorithms algorithm-design
Let A be an array of n integers, sorted so that A[1] ≤ A[2] ≤ ⋯ ≤ A[n]. You are given a number xx. The aim is to
find out if there are indices k and l such that A[k] + A[l] = x. Design an algorithm for this problem that works in time
O(n).
cmi2014 descriptive algorithms algorithm-design
Let A be array of n integers that is not assumed to be sorted. You are given a number x. The aim is to find out if there
are indices k, l and m such that A[k] + A[l] + A[m] = x. Design an algorithm for this problem that works in time
O(n2 ).
cmi2014 descriptive algorithms algorithm-design
An airline runs flights between several cities of the world. Every flight connects two cities. A millionaire wants to
travel from Chennai to Timbuktu by changing at most k1 flights. Being a millionaire with plenty of time and money, he
does not mind revisiting the same city multiple times, or even taking the same flight multiple times in his quest. Can you help
the millionaire by describing how to compute the number of ways he can make his journey? How many steps does your
procedure take if there are n cities and he can change flights at most k1 times. You can assume that the procedure can add or
multiply two numbers in a single operation.
cmi2015 descriptive algorithms algorithm-design
A group of war prisoners are trying to escape from a prison. They have thoroughly planned the escape from the prison
itself, and after that they hope to find shelter in a nearby village. However, the village (marked as B, see picture below)
and the prison (marked as A) are separated by a canyon which is also guarded by soldiers (marked as S ). These soldiers sit in
their pickets and rarely walk; the range of view of each soldier is limited to exactly 100 meters. Thus, depending on the
locations of soldiers, it may be possible to pass the canyon safely, keeping the distance to the closest soldier strictly larger than
100 meters from any moment. The situation is depicted in the following picture, where the circles around S indicate the range
of view.
Provide an algorithm to determine if the prisoners can pass the canyon unnoticed, given the width and the length of a canyon
and the coordinated of every soldier in the canyon, and assuming that soldiers do not change their locations (Hint: Model this
as a graph, with soldiers represented by the vertices.)
An automatic spelling checker works as follows. Given a word w, first check if w is found in the dictionary. If w is not
in the dictionary, compute a dictionary entry that is close to w. For instance if the user types ocurrance, the spelling
checker should suggest occurence , which belongs to the dictionary. Similarity between words such as occurrence and
occurrance is quantified in terms of alignment.
An alignment between two strings w1 and w2 (over the alphabet {a, b, c, . . . . , z }) is obtained by inserting hyphens in the two
strings such that the modified strings align (i.e.,the modified strings are of equal length, and at each position, either both
strings have the same letter or one of the strings has a hyphen).
here are three examples of alignments. The first is between ocurrance and occurrence and the second and third are between
ctatg and ttaagc.
oc-urr-ance ct-at-g- ctat---g-
(1) (2) (3)
occurre-nce -tta-agc ---ttaagc
A mismatch in an alignment is a position where one of modified strings has a hyphen and the other does not. There are three
mismatches in the first alignment given above, five mismatches in the second, and seven mismatches in the third.
Use dynamic programming to give an efficient algorithm that takes two strings x and y (over the alphabet {a, b, c, . . . , z } as
its input, and computes the minimum number of mismatches among all alignments of x and y. What is the running time of
your algorithm (in terms of the lengths of x and y)?
There are a number of tourist spots in a city and a company GoMad runs shuttle services between them. Each shuttle
plies between a designated origin and destination, and has a name. Due to lack of coordination, the same name may be
allotted to multiple routes.
To make matters worse, another company GoCrazy introduces its shuttle services using the same set of shuttle names. A
GoMad shuttle and a GoCrazy shuttle with the same name may start at different origins and/or end at different destinations.
A pass from a company allows unlimited travel in all the company’s shuttles. For each company, we have a list that specifies
all routes allotted to each shuttle name.
Design an algorithm to find out if there is a source s, a target t, and a sequence of shuttle names σ such that, irrespective of
whether you are carrying a GoMad pass or a GoCrazy pass, you can start at s and arrive at t using the sequence σ.
cmi2017 algorithms algorithm-design
You are given a sorted array of n elements which has been circularly shifted. For example, {35, 42, 5, 12, 23, 26} is a
sorted array that has been circularly shifted by 2 positions.
Give an O(log n) time algorithm to find the largest element in a circularly shifted array. (The number of positions through
which it has been shifted is unknown to you.)
cmi2018 algorithm-design descriptive
You are playing an old-style video game in which you have to shoot down alien spaceships as they fly across the screen
from left to right. Each spaceship flies across the screen at a specified height. You have an antiaircraft gun set to shoot
down all spaceships at a certain height. Spaceships fly one at a time, so if your gun is set to fire at the correct height, it will
shoot down the spaceship currently flying across the screen.
You can set the initial height at which the gun fires. As the game progresses, you can reset the height, but only to a lower
value. You are given in advance the height at which each spaceship flies. There are N spaceship numbered 1, 2, ⋯ , N in the
order in which they fly across the screen. For 1 ≤ i ≤ N, h[i] denotes the height at which spaceship i flies.
A. Let V [i] denotes the maximum number of spaceships from i, i + 1. ⋯ , N that you can shoot down with a single gun.
Write a recurrence for V [i] and describe a strategy to compute V [i] using dynamic programming. What is the space and
time complexity of your solution?
B. Describe an algorithm to compute the minimum number of guns required to shoot down all the space ships. Each gun can
be initialized separately to a firing height and each gun can be separately reset to a lower value.
Let A be an n × n matrix of integers such that each row and each column is arranged in ascending order. We want to
check whether a number k appears in A. If k is present, we should report its position - that is, the row i and column j
such that A(i, j) = k. Otherwise, we should declare that k is not present in A.
A. Describe an algorithm that solves this problem in time O(n log n). Justify the complexity of your algorithm.
B. Describe an algorithm that solves this problem by examining at most 2n values in A. Justify the complexity of your
algorithm.
C. For both algorithms, describe a worst-case input where k is present in A.
Let A = {a1 , a2 , … , an } be an array of n distinct numbers. The array may not be sorted. The first element a1 is said
to be a blip if a1 > a2 . Similar, the last element an is said to be a blip if an > an−1 . Among the remaining elements,
an element ai is said to be blip if ai > ai−1 and ai > ai+1 where i ∈ (2, 3, … , n − 1) . Design an O(log n) time algorithm
for finding a blip in A. Justify the complexity of your algorithm.
isi2017 algorithms algorithm-design descriptive
Consider the following intervals on the real line: A1 = (13.3, 18.3) A3 = (8.3, 23.3) − A1 ∪ A2
A2 = (10.8, 20.8) − A1 A4 = (5.8, 25.8) − A1 ∪ A2 ∪ A3 where (a, b) = {x : a < x < b} . Write pseudo-code
that calculates (without using any comparison operation) which interval a given input x ∈ (5.8, 25.8) belongs to, i.e., your
pseudo-code should calculate i ∈ {1, 2, 3, 4} such that x ∈ Ai .
Given an array A = {a1 , a2 , … , an } of unsorted distinct integers, write a program in pseudo-code for the following
problem: given an integer u, arrange the elements of the array A such that all the elements in A which are less than or
equal to u are at the beginning of the array, and the elements which are greater than u are at the end of the array. You may use
at most 5 extra variables apart from the array A.
descriptive isi2012 algorithms algorithm-design
Consider the fast square and multiply algorithm to calculate xy mod N as given below, where x, y, N are
positive integers and 1 ≤ x, y < N .
Input: x, y, N
Output: xy mod N
1. z = y, u = 1, v = x;
2. while z > 0 do
3. if z ≡ 1 mod 2 then
4. u = uv mod N;
end
5. v = v2 mod N; z = ⌊ z2 ⌋
end
6. return u
a. Write a C function to implement the algorithm. Your function should take three arguments x, y and N , and return the
value xy mod N, all of which are of type unsignedlonglong (i.e., 64-bit unsigned integers).
b. Discuss whether your program works perfectly for all possible input combinations.
Draw a complete binary tree T with (N − 1) nodes where N = 2n . Suppose each node in T is a processor and each
edge of T is a physical link between two processors through which they can communicate. Given M arrays
Ai = {e1i , e2i , … , eNi } for 1 ≤ i ≤ M , develop an algorithm for the given architecture to compute the sum of each array
SU Mi = ΣN j=1 eji for all i in O(log N + M) time.
Let M be an (n × n) matrix where each element is a distinct positive integer. Construct another matrix M ′ by
permuting the rows and/or permuting the columns, such that the elements of one row appear in increasing order (while
looking from left to right) and those of one column appear in decreasing order (while looking from top to bottom).
A connected, simple, undirected planar graph G(V , E) is given where V denotes the set of vertices and E denotes the
set of edges. In V , there is a designated source vertex s and a designated destination vertex t. Let P (v) denote the
shortest path (may contain repetition of nodes/edges) from s to t that passes through v, and let l(v) denote the path length (i.e.,
the number of edges) of P (v).
a. Describe an O(|V |) time algorithm that determines the value of where . Justify your analysis.
b. Propose a data structure that supports your algorithm.
For example, in the graph shown in the above figure, = 10, which corresponds to
.]
Let be a 30 × 40 matrix having 500 non-zero entries. For , let be the number of non-zero entries in the
-th row, and for , let be the number of non-zero entries in the -th column.
Suppose that it is desired to create a stack of size 30 containing the values , not necessarily in order such that the
top of the stack contains the value . Write pseudo-code for creating such a stack using a single scan of the matrix
.
isi2014 algorithms algorithm-design
a. Assume you have a chocolate bar containing a number of small identical squares arranged in a rectangular pattern. Our job
is to split the bar into small squares by breaking along the lines between the squares. We obviously want to do it with the
minimum number of breakings. How many breakings will it take?
b. Consider that the chocolate bar has n breaking lines along the length and m breaking lines along the breadth. Write a C
function that will take n, m as inputs and print the line numbers along the length and the breadth according to your strategy
of breaking the chocolate.
Let and be two arrays, each containing distinct integers. Each of them is sorted in increasing order. Let
. Design an algorithm for computing the median of as efficiently as you can.
isi2014-pcb-cs algorithms algorithm-design
Given an array of n positive integers, write a program segment / pseudo-code to print the histogram of using the
hash character ( ). Your histogram should consist of vertical columns of with the -th vertical bar containing
number of ’s. For example, if you consider as the array , your output should look like
You are given two strings and , each of length , consisting only of lower case English letters .
Propose an -time algorithm to decide whether can be obtained by permuting the symbols of . For example, if
, , your algorithm should return ; but if , , your
algorithm should return .
descriptive isi2015-pcb-cs algorithms algorithm-design
Let be a sorted array of positive integers, such that . Given an integer as input, the
goal is to find two array indices and such that , if such indices exist; otherwise, the goal is to report
'Failure". Design an algorithm for this problem, that works in time.
Consider an array of length n consisting only of positive and negative integers. Design an algorithm to rearrange the
array so that all the negative integers appear before all the positive integers, using time and only a constant
amount of extra space.
isi2018-pcb-cs algorithms algorithm-design descriptive
Consider a max-heap of distinct integers, , stored in an array . The second minimum of is the
integer that is less than all integers in except the minimum of . Find all possible array indices of in which the
second minimum can occur. Justify your answer.
isi2018-pcb-cs algorithms algorithm-design heap descriptive
The following function computes an array , where, for any integer , is the smallest prime
factor of . For example, is , and is .
There are five missing parts in the following code, commented as . For each of them, copy the entire line with
the comment and fill the blank appropriately in your answer sheet.
int SPF[1000];
void findSPF() {
SPF[1] = 1;
/* Blank 3 */
if (SPF[i] == i) {
/* Blank 4 */
if (SPF[j] == j) {
You have an array with objects, some of which are identical. You can check if two objects are equal but you
cannot compare them in any other way — i.e., you can check and , but comparisons such
as are not meaningful. (Imagine that the objects are JPEG images.) The array A is said to have a majority element
if strictly more than half of its elements are equal to each other. Use divide and conquer to come up with an
algorithm to determine if has a majority element.
cmi2012 algorithms divide-and-conquer
You are given two sorted lists of integers of size and . Describe a divide and conquer algorithm for computing the
-th smallest element in the union of the two lists in time .
A certain string-processing language offers a primitive operation which splits a string into two pieces. Since this
operation involves copying the original string, it takes units of time for a string of length , regardless of the location
of the cut.
Suppose, now, that you want to break a string into many pieces. The order in which the breaks are made can affect the total
running time. For example, if you want to cut a -character string at positions and , then making the first cut at position
incurs a total cost of , while doing position first has a better cost of .
Give a dynamic programming algorithm that, given the locations of cuts in a string of length , finds the minimum cost of
breaking the string into pieces. You may assume that all m locations are in the interior of the string so each split is non-
trivial.
cmi2012 descriptive algorithms dynamic-programming
Your final exams are over and you are catching up on watching sports on TV. You have a schedule of interesting
matches coming up all over the world during the next week. You hate to start or stop watching a match midway, so
your aim is to watch as many complete matches as possible during the week.
Suppose there are such matches scheduled during the coming week and you know the starting and finishing time for each
match.
Develop an algorithm based on dynamic programming to compute the maximum number of complete matches you can watch
next week. Analyze the worse-case complexity of your algorithm.
At the end of its fifth successful season, the Siruseri Premier League is planning to give an award to the Most Improved
Batsman over the five years. For this, an Improvement Index will be computed for each batsman. This is defined as the
longest sequence of increasing scores by the batsman among all his scores over the five seasons. For example, if the scores for
a batsman over the five seasons are , his Improvement Index is based on the
sequence . Describe an efficient algorithm based on dynamic programming to compute the
Improvement Index for a batsman with an overall sequence of scores. Analyze the complexity of your algorithm.
cmi2014 algorithms dynamic-programming
There is a thin, long and hollow fibre with a virus in the centre. The virus occasionally becomes active and secretes
some side products. The fibre is so thin that new side products secreted by the virus push the old products along the
fibre towards its ends. The possible actions of the virus are as follows
a. Produce an acid molecule to its left and a base molecule to its right.
b. Produce a base molecule to its left and an acid molecule to its right.
c. Divide into two viruses, each of which continues to behave like its ancestor.
d. Die.
You are given a sequence of acid and base molecules from one end of the fibre to the other end. Design an algorithm to check
if a single virus could possibly have produced the given sequence. Use dynamic programming, checking smaller subsequences
before checking bigger subsequences.
A college professor gives several quizzes during the semester, with negative marking. He has become bored of the
usual "Best out of quizzes" formula to award marks for internal assessment. Instead, each student will be
evaluated based on the sum of the best contiguous segment (i.e., no gaps) of marks in the overall sequence of quizzes.
However, the student is allowed to drop upto quizzes before calculating this sum.
Suppose a student has scored the following marks in quizzes during the semester.
Without dropping any quizzes, the best segment is quiz , which yields a total of marks. If the student is allowed to
drop upto quizzes in a segment, the best segment is quiz , which yields a total of marks after dropping quizzes and
. If the student is allowed to drop upto quizzes in a segment, the best total is obtained by taking the entire list and dropping
all negative entries, yielding marks.
For let denote the maximum sum segment ending at position with at most marks dropped.
Let be a undirected graph. We say is a clique if and only if for all , the edge is in
.
Now let be a graph in which each vertex has degree at most 5. Give an algorithm to find the largest clique in .
What is the complexity of your algorithm?
cmi2011 descriptive algorithms graph-algorithms time-complexity
You are going abroad and you have to complete a number of formalities before you leave. Each task takes a full day to
complete. Fortunately, you have an army of friends to help you and each task can be done by either you or any of your
friends, so you can complete as many tasks as possible in parallel, on the same day.
Some tasks depend on others: for instance, you cannot purchase foreign exchange till you have bought your ticket. If task
depends on task , you can start only after you complete . A set of tasks with no pending dependencies can be completed
in parallel.
You are given a list of such tasks to be completed, where each task comes with a set of other tasks that it depends on. The set
of tasks is feasible: there are no circular dependencies. You want to compute the minimum number of days needed to complete
all the tasks, given the constraints.
You are given positive integers, , each greater than . Design a greedy algorithm to test whether these
integers correspond to the degrees of some -vertex simple undirected graph . [A simple graph has no
self-loops and at most one edge between any pair of vertices].
cmi2015 descriptive algorithms greedy-algorithm
A finite sequence of bits is represented as a list with values from the set . For example,
denotes the empty list, and is the list consisting of one bit . The function
returns the length (number of bits) in the list . For a nonempty list , returns the first element of , and returns
the list obtained by removing the first element from . The operator denotes list concatenation.
For example:
,
, and
.
A finite sequence of bits is represented as a list with values from the set —for example,
denotes the empty list, and is the list consisting of one bit . For a nonempty list
returns the first element of , and returns the list obtained by removing the first element from
denotes a new list formed by adding a at the head of list .
For example:
,
and
.
Consider the following functions:
takes takes as input two bits and returns a bit.
xor(a,b)
if (a == b) return(0)
else return(1)
endif
if (n == 0) then return(0)
else return f2(g2(n-1),g1(n))
endif
The below question is based on the following program. In the program, we assume that integer division returns only the
quotient. For example returns since is the quotient and is the remainder.
mystery(a,b){
if (b == 0) return a;
if (a < b) return mystery(b,a);
if (eo(a,b) == 0){
return(2*mystery(a/2,b/2));
}
if (eo(a,b) == 1){
return(mystery(a,b/2));
}
if (eo(a,b) == 2){
return(mystery(a/2,b));
}
if (eo(a,b) == 3){
return (mystery((a-b)/2,b));
}
}
eo(a,b){
if ((a/2)*2 == a and (b/2)*2 == b) return 0; end;
if ((a/2)*2 < a and (b/2)*2 == b) return 1; end;
if ((a/2)*2 == a and (b/2)*2 < b) return 2; end;
return 3;
}
returns
A. B. C. D.
cmi2012 algorithms identify-function
The below question is based on the following program. In the program, we assume that integer division returns only the
quotient. For example returns since is the quotient and is the remainder.
mystery(a,b){
if (b == 0) return a;
if (a < b) return mystery(b,a);
if (eo(a,b) == 0){
return(2*mystery(a/2,b/2));
}
if (eo(a,b) == 1){
return(mystery(a,b/2));
}
if (eo(a,b) == 2){
return(mystery(a/2,b));
}
if (eo(a,b) == 3){
return (mystery((a-b)/2,b));
}
}
eo(a,b){
if ((a/2)*2 == a and (b/2)*2 == b) return 0; end;
if ((a/2)*2 < a and (b/2)*2 == b) return 1; end;
if ((a/2)*2 == a and (b/2)*2 < b) return 2; end;
return 3;
}
When and are bit positive numbers the number of recursive calls to on input is
A. B. C. D.
cmi2012 algorithms identify-function time-complexity
In the code fragment on the right, start and end are integer values and is a function that returns true if is a
prime number and otherwise. At the end of the loop:
i := 0; j := 0; k := 0;
for (m := start; m <= end; m := m+1){
k := k + m;
if (prime(m)){
i := i + m;
}else{
j := j + m;
}
}
A. B. C. D. Depends on and
cmi2014 algorithms identify-function
Compute and .
Compute .
Let be two non-negative integers . By we mean the integer represented by the bitwise logical
of the 32- bit binary representations of and . For example, if and , then is the bitwise of
0 1101 and 0 0110, resulting in 0 0100, which is 4 in decimal. (Here 0 1101 means twenty-eight 0’s followed by the 4-bit
string 1101.) Now consider the following pseudo-code:
integer x, n = 0;
while (x 0){
x x (x − 1);
n n + 1;
}
print n;
Given an undirected weighted graph with non-negative edge weights, we can compute a minimum cost
spanning tree . We can also compute, for a given source vertex , the shortest paths from s to every
other vertex in . We now increase the weight of every edge in the graph by 1. Are the following true or false, regardless of
the structure of ? Give a mathematically sound argument if you claim the statement is true or a counterexample if the
statement is false.
Given an undirected weighted graph with non-negative edge weights, we can compute a minimum cost
spanning tree . We can also compute, for a given source vertex , the shortest paths from s to every
other vertex in . We now increase the weight of every edge in the graph by . Are the following true or false, regardless of
the structure of ? Give a mathematically sound argument if you claim the statement is true or a counterexample if the
statement is false.
All the shortest paths from to the other vertices are unchanged.
cmi2012 descriptive algorithms graph-algorithms minimum-spanning-trees
Then:
Suppose we have constructed a polynomial time reduction from problem to problem . Which of the following can
we infer from this fact?
A. If the best algorithm for takes exponential time, there is no polynomial time algorithm for .
B. If the best algorithm for takes exponential time, there is no polynomial time algorithm for .
C. If we have a polynomial time algorithm for , we must also have a polynomial time algorithm for .
D. If we don’t know whether there is a polynomial time algorithm for , there cannot be a polynomial time algorithm for .
i. Express as a function of .
ii. Express as a function of .
iii. Compute and .
You can climb up a staircase of stairs by taking steps of one or two stairs at a time.
a. Formulate a recurrence relation for counting , the number of distinct ways in which you can climb up the staircase.
b. Mention the boundary conditions for your recurrence relation.
c. Find a closed form expression for by solving your recurrence.
Alan’s task is to design an algorithm for a decision problem . He knows that there is an algorithm that transforms
instances of P to instances of the Halting Problem such that instances of map to instances of the Halting Problem,
and instances of map to instances of the Halting problem. Which of the following is true.
We have constructed a polynomial time reduction from problem to problem . Which of the following is a valid
inference?
A. If the best algorithm for takes exponential time, then there is no polynomial time algorithm for
B. If the best algorithm for takes exponential time, then there is no polynomial time algorithm for .
C. If we have a polynomial time algorithm for , then we must also have a polynomial time algorithm for
D. If we don’t know whether there is a polynomial time algorithm for , then there cannot be a polynomial time algorithm for
.
The Income-Tax Department had prepared a list D of names of defaulters on March . However, the government
extended the deadline to pay taxes till April .
The IT department has now received two additional lists of names: a list B of names of people who have paid their taxes
between April and April at a bank, and a list O of names of people have paid their taxes during this period online. Some
people have paid part of their taxes at a bank and part online, so there may be names that appear in both B and O.
From the lists D, B and O, the IT department wants to prepare a revised list of defaulters. The names in the original list D are
sorted in alphabetical order while the names in B and O are listed according to the date on which they paid their taxes.
Fortunately, no two people have the same name.
Describe an efficient algorithm to compute the revised list of defaulters. Assume that the size of D, B and O is n, m and k
respectively and that . Describe the running time of your algorithm in terms of these parameters.
cmi2010 descriptive algorithms sorting
Consider a plate stacked with several disks, each of a different diameter (they could all be, for instance, or
of different sizes). We want to sort these disks in decreasing order according to their diameter so that the
widest disk is at the bottom of the pile. The only operation available for manipulating the disks is to pick up a stack of them
from the top of the pile and invert that stack. (This corresponds to lifting up a stack or between two big spoons
and flipping the stack.)
Consider a plate stacked with several disks, each of a different diameter (they could all be, for instance, or
of different sizes). We want to sort these disks in decreasing order according to their diameter so that the
widest disk is at the bottom of the pile. The only operation available for manipulating the disks is to pick up a stack of them
from the top of the pile and invert that stack. (This corresponds to lifting up a stack or between two big spoons
and flipping the stack.)
How many steps will your algorithm take in the worst case?
descriptive cmi2011 algorithms sorting
You are given two sorting algorithms A and B that work in time and , respectively. Consider the
following statements:
You have lists, each consisting of integers sorted in ascending order. Merging these lists into a single sorted list
will take time:
A. B. C. D.
cmi2013 algorithms sorting
A preserves the order of values that are equal with respect to the comparison function. We have a list of
three-dimensional points
We sort these in ascending order by the second coordinate. Which of the following corresponds to a stable sort of this input?
A.
B.
C.
D.
Give a strategy to sort four given distinct integers in increasing order that minimizes the number of pairwise
comparisons needed to sort any permutation of .
descriptive isi2011 algorithms sorting
There are students of a class standing in a line. The students have to arrange themselves in ascending order on the
basis of their roll numbers. This rearrangement of the line must be accomplished only by successively swapping pairs
of adjacent students.
i. Design an algorithm for this purpose that minimizes the number of swaps required.
ii. Derive an expression for the number of swaps needed by your algorithm in the worst case.
You are given sorted lists, each containing integers in ascending order. Assume that (i) the lists are stored as
singly-linked lists with one integer in each node, and (ii) the head pointers of these lists are stored in an array.
a. Write an efficient algorithm that merges these k sorted lists into a single sorted list using additional storage.
b. How would you modify your algorithm if you were permitted to use only constant additional storage?
Analyse the time complexity of your algorithm for each of the above two cases.
: returns the index of the maximum among the set of consecutive elements of the array .
: returns the index of the minimum among the set of consecutive elements of the array .
: swaps the two elements and in the array .
Design an time algorithm which can use only these three subroutines to sort a given array
of distinct integers. Assume that the time complexity of the first two subroutines is , where
, and that for the third subroutine is .
Let be an undirected weighted graph with all edge weights being positive. Design an efficient algorithm
to find the maximum spanning tree of .
descriptive isi2014-pcb-cs algorithms spanning-tree graph-algorithms
Your team is playing a chess tournament against a visiting team. Your opponents have arrived with a team of M
players, numbered . You have players, numbered from which to choose your team, where
. Each of the players from the visiting team must be paired up with one of your players. The tournament rules
insist that the pairings must respect the order that has been fixed for both teams. That is, when you pick players ,
to play against opponents numbered , it must be the case that , in terms of the order
in which your players are listed.
You want to ensure a good fight, so you plan to pick your team so that the teams are as
evenly balanced as possible. Each player on your team has a numerical score that represents his or her playing ability.
Likewise, each player in the opponent team has a playing ability indicated by a numerical score . The difference in
strength between a player from your team and his or her opponent on the visiting team is the absolute value
. The imbalance of a pairing is the sum of these differences across all M match-ups in the pairing. Your aim
is to minimize this imbalance.
For instance suppose you have six players, whose strengths are as follows.
Also, suppose that the visiting team has three players, whose strengths are as follows.
In this situation, the most balanced pairing is , and , which yields an imbalance of
Propose an efficient algorithm to solve this problem and analyse its complexity.
cmi2011 descriptive algorithms time-complexity
A. B. C. D. Depends on contents of
cmi2013 algorithms time-complexity
A. B. C. D.
cmi2015 algorithms time-complexity
We are given a sequence of pairs of integers . We would like to compute the largest
such that there is a sequence of numbers with and for each ,
or . Describe an algorithm to solve this problem and explain its complexity.
Consider the following function that takes as input a sequence of integers with n elements, and
an integer and returns an integer value. The function length returns the length of the sequence . Comments start
with //.
Input:
Output:
1.
2. while do
3. if mod then
4. ;
end
5.
end
6. return .
What is the time complexity of the algorithm in terms of ? [Note that can be a very large integer, e.g., more than bits.
Assume that the time complexity of modular multiplication is , when the positive integers involved are less than
.]
descriptive isi2013-pcb-cs algorithms time-complexity
A file holds the non-zero elements of two large matrices, and . The matrix entries are sorted as triplets
, where is the th element of a matrix. The file first stores the element of and then those of .
The matrix elements are stored in in an arbitrary order. In each matrix, only the elements
are non-zero. You are to add and and store the sum in and then print , and . Due to limited memory, for storing
all three matrices, you can use space to hold only up to values (NOT triplets). Is it possible to have a solution? If no,
give reasons. If yes, provide a solution. Clearly explain the data structure and how you are going to store, retrieve, and add the
elements.
Let be an array of distinct numbers. The array may not be sorted. The element is said
to be a if . Similarly, the element is said to be a if . Among the remaining
elements, an element is said to be if and where . Design an time
algorithm for finding a in . Justify the complexity of your algorithm.
isi2017-pcb-cs algorithms time-complexity descriptive
The average memory access time for a microprocessor with first level cache is clock cycles.
It is desired to obtain a improvement in average memory access time by adding a second level cache.
To obtain the desired speedup, how often must data be found in the second level cache?
b. Two modules and of an old machine are being replaced by their improved versions and , respectively in a
new machine. With respect to the old machine, the speed-up of these modules ( and ) are and , respectively. Only
one module is usable at any instant of time. A program , when run on the old machine, uses and for and
of the total execution time, respectively. Calculate the overall speed-up of when it is executed on the new machine.
Assume a machine has registers (one of which is the accumulator ) and the following instruction set.
and are indirect memory operations that load and store, using the address stored in the given register
operand. Thus, loads the contents of into , and stores the contents of in
.
copies any register into any other register.
and operate on the accumulator and one other register, such that .
stores a given -bit constant in the accumulator.
, , and are branch instructions, each taking a – bit offset.
Design an instruction encoding scheme that allows each of the above instructions (along with operands) to be encoded in
bits.
A machine has the following five pipeline stages; their respective time requirements in nanoseconds (ns) are given
within parentheses:
Assume that for each stage, the pipeline overhead is ns. A program having machine instructions runs on , where
every rd instruction needs a – cycle stall before the -stage. Calculate the CPU time in seconds for completing .
Consider the following timings for a five-stage processor pipeline (these timings include the latching overhead):
i. Given the timings for the datapath stages listed above, what would be the clock period for the entire datapath?
ii. In a pipelined datapath, assuming no hazards or stalls, what will be the throughput (instructions per second) in steady state?
iii. Assuming that instructions are executed, and that all instructions are add instructions, what is the speedup of this
pipelined implementation compared to a nonpipelined implementation? Assume that each add instruction consists of Fetch,
Decode, Execute and Write Back.
In programming languages like C, C++, Python the memory used by a program is typically separated into two parts,
the stack and the heap. Consider the following statements:
Then:
A. and are true but is false. B. and are true but is false.
C. and are true but is false. D. All three statements are true.
cmi2011 compiler-design runtime-environments
Suppose we are working with a programming language that supports automatic garbage collection. This means that:
Consider the use of Cyclic Redundancy Code (CRC) with generator polynomial for error detection. Recall that
error detection with a CRC works by appending the CRC value to the bit sequence to make it a multiple of .
The data link layer uses a fixed-size sliding window protocol, where the window size for the connection is equal to
twice the bandwidth-delay product of the network path. Consider the following three scenarios, in each of which only
the given parameter changes as specified (no other parameters change). For each scenario, explain whether the throughput (not
utilization) of the connection increases, decreases, remains the same, or cannot be determined:
A block of bits with rows and columns uses horizontal and vertical parity bits for error detection. If exactly 4 bits
are in error during transmission, derive an expression for the probability that the error will be detected.
descriptive isi2013-pcb-cs error-detection computer-networks
i. Consider sending a large file of bits from Host to Host connected through a router, as shown in the below
figure Assume that there is no queuing and propagation delay, and the router has sufficient buffer space. Host splits
the file into segments of bits each and adds bits of header to each segment, forming packets of bits. Each
link has a transmission rate of Find the value of that minimizes the time needed to move the file from Host to
Host
ii. The of a system having an execution rate of million instructions per second needs machine cycles on an average
for executing an instruction. On an average, of the cycles use memory bus. For execution of the programs, the system
utilizes of the time. For block data transfer, an device is attached to the system, while the executes
background programs continuously. Determine the maximum transfer rate for each of the two cases:
a. programmed
b. cycle-stealing (in transparent mode)
You may assume that transferring one byte involves operations: in-status, check-status, branch and read/write in memory,
each requiring one machine cycle.
In a LAN, routers are connected in an mesh such that represents a router in the -th row and -th
column of the mesh.
i. Find how many distinct shortest paths exist between two routers and . Two
paths are distinct if they differ in at least one link.
ii. At most how many of these distinct shortest paths will be node disjoint, i.e., with no common node except the source and
the destination? Justify your answer.
Stations and are connected through a line of bandwidth . Station uses packets to transmit
messages to using a sliding window protocol. The round trip propagation delay between and is
. Determine the window size should use to maximize the line utilization. Assume that the ack frame is of
negligible size and processing delay may be ignored. Justify your answer.
descriptive isi2015-pcb-cs computer-networks sliding-window
A network has stations attached by a dedicated pair of lines to a hub in a star topology. The distance from each
station to the hub is meters, the speed of the transmission lines is Mbps, all frames are of length bytes,
and the signal propagates on the line at a speed of meters/second. Assume that token-ring protocol is used for
medium access control. Assume single-frame operation, eight-bit latency at each station, and a free token is of three bytes long.
A heavily loaded km long, Mbps token ring network has a propagation speed of meter per micro-second.
Fifty stations are uniformly spaced around the ring. Each data packet is bits long, including bits of header. The
token is of bits. What is the effective data rate of the network assuming the stations always have packets to transmit?
descriptive isi2014-pcb-cs token-ring
5 Databases (10)
If we project and therefore its functional dependencies onto the schema , what will the key(s) for be?
descriptive isi2011-pcb-cs databases database-normalization
A school database maintains the following relations for its students, teachers and subjects:
A student after admission to the school is assigned with a unique regn no. However, a student also gets a roll no that starts
from for each class and section. A class can have many sections and a student is placed in only one class and section as
expected in a school.
In the school a teacher’s name (t_name) has been found to be unique. However, more than one teacher may stay at the same
address and the tel no is a land line connection where an address will have only one such telephone.
A subject name (s_name) is unique but the same subject may be taught in many classes (for example, History may be
taught in many classes with different contents but s name remains the same). Every subject has a set of standard text books
for a class and there may be more than one teacher who can teach the subject. Any teacher may use any of the standard text
books to teach a subject.
i. Considering the above constraints, identify the functional /multivalued dependencies present and normalize the relations.
ii. Using the normalized set of relations answer the following query using relational algebra or SQL: List all the teachers
(t_name) who can teach History in Class V and reside in “Baranagar” (name of a locality). Consider that any address offers
a locality name.
Two queries equivalent to each other are specified for a relation . The queries are:
The system maintains a tree index for on . However, the index is unclustered. The relation occupies
pages and the index structure needs pages only. Compute the number of disk accesses required for each of the queries and
thereby decide which one of the two queries will be preferred by the query optimizer for minimum cost of execution. The cost
of query execution is primarily dependent on the number of disk accesses.
Let be a relation with primary key and a relation with primary key . Each of the
relations has tuples. If the number of tuples in is , then determine the number of tuples in
.
Consider relations and . Find a propositional formula such that the following two relational
algebra expressions produce the same answer.
Write a relational algebra expression for retrieving the names of the borrowers who do not have any book issued. Hence write
an equivalent SQL statement for the above query.
The key fields are underlined, and the domain of each field is listed after the field name. The CATALOG relation lists the
prices charged for parts by suppliers.
Estimate the number of block accesses required to produce the result of the following query: Find the names of suppliers
who supply every part.
b. Write the above query (given in (a)) in relational algebra using some or all of the following operators: SELECT,
PROJECT, JOIN, CARTESIAN PRODUCT, UNION, INTERSECTION, DIFFERENCE.
Consider two vectors and , stored as table and with the same schema A row
of table specifies the element of vector has value (similarly for , respectively). Only the non-zero entries of
the vectors are stored in the corresponding tables. For example, if the vector equals , then it is represented in
table as
Write a relational algebra expression or an SQL query to compute the sum of the two vectors and . Explain your
solution.
isi2018-pcb-cs databases relational-algebra sql descriptive
and
The former indicates the choice of courses for students and the latter indicates the course assigned to teachers for different
semesters. Note that each student may take multiple courses, each teacher can teach multiple courses and each course can also
be taught by multiple teachers. Write the relational calculus expression to output the ID for all the students who have not been
taught by the same teacher in more than one course across all semesters.
isi2017-pcb-cs databases relational-algebra relational-calculus descriptive
Commodity items have some positive or negative changes in their prices each week. Each trading company picks a
portfolio of commodity items, that is, they have one or more items and they own some non-zero quantity of each one.
The database table for this problem consists of the following two relations:
Commodity(item-number int, price-change float, week int),
Owns(company-name text, item-number int, quantity float).
Write an SQL query which returns the item-numbers of commodities for which, in any given week, the price change is greater
than or equal to that of all other items and there exists at least one company selling that item only. (i.e., not selling any other
item) in that week.
The CPU of a computer has a ripple-carry implementation of a ’s complement adder that takes two – bit integers
and as inputs, and produces a sum , where
. Let and . What will be the output of the adder? How
will the value of be interpreted by the machine?
descriptive isi2012-pcb-cs digital-logic adder
i. associativity
ii. commutativity
iii. distributivity.
Let denote a logic block that is capable of comparing two – bit ’s complement numbers and
, where for . The circuit has eight input lines
, and three output lines (Equal: ; Less than: ; Greater than: ). For example, if ,
then the outputs should be , and . Write the Boolean equations for the three outputs , and .
descriptive isi2013-pcb-cs digital-logic number-representation boolean-algebra
A. B. C. D.
isi2017-dcg digital-logic boolean-algebra boolean-expression
You are given a logic block that takes two inputs and , and produces as output. Realize a two-input
gate using only the logic block . You can use as many pieces of block as you need. You may use the
constant function 0; but no other type of gate is allowed.
descriptive isi2015-pcb-cs digital-logic digital-circuits
Consider a simple code for error detection and correction. Each codeword in consists of data bits
followed by check bits . The check bits are computed as follows: and ,
where is a modulo- addition.
Show that is functionality complete, i.e., any Boolean function with variables and can be expressed
using these two primitives.
isi2017-pcb-cs digital-logic functional-completeness descriptive
Add the following two floating point numbers and given in IEEE single precision format and show the sum
in the same format.
Write the number in single precision IEEE 754 floating point form.
For the function given by the Karnaugh map shown below, you can change at most one or one entry to a DON'T
CARE. Determine what single change of this kind produces the simplest two-level AND-OR realization. Assume both
uncomplemented and complemented inputs are available.
The function given below is intended to check whether a given number is divisible by 3. It assumes that the
argument is a string containing the decimal representation of a positive integer, and returns 1 or 0
depending on whether the integer is divisible by 3 or not.
int divby3(char *number)
{
int sum = 0;
while (*number != ’\0’) {
sum += *number - ’0’;
number++;
}
return (sum % 3) ? 0 : 1;
}
Assume that (i) a variable of type is stored using 4 bytes, and (ii) the decimal representations of arbitrarily large positive
integers can be passed as arguments to .
i. Show that the given function does not work correctly for some integers larger than
ii. Modify the above function so that it works as intended for all positive integers.
note: The smaller the number of ALU operations used by your function, the more marks you will get.
How many essential prime implicants does have? Justify they are essential.
isi2017-pcb-cs digital-logic prime-implicants descriptive
There are five buckets, each of which can be open or closed. An arrangement is a specification of which buckets are
open and which bucket are closed. Every person likes some of the arrangements and dislikes the rest. You host a party,
and amazingly, no two people on the guest list have the same likes and dislikes. What is the maximum number of guests
possible?
A. B. C. D.
cmi2019 permutation-and-combination arrangements
Consider all possible words obtained by arranging all the letters of the word . These words are now arranged
in the alphabetical order, as in a dictionary. The fiftieth word in this arrangement is
A. B. C. D.
isi2014-dcg permutation-and-combination arrangements
If the letters of the word be arranged in random order, the number of arrangements in which the
three vowels and occur together is
A. B. C. D. None of these
isi2015-dcg permutation-and-combination arrangements
If the letters of the word be arranged in random order, the number of arrangements in which the three
vowels and occur together is
A. B. C. D. None of these
isi2016-dcg permutation-and-combination arrangements
is
A. B. C. D.
isi2014-dcg permutation-and-combination binomial-theorem
equals
A. B. C. D. none of these
isi2014-dcg permutation-and-combination binomial-theorem
up to terms is equal to
A. B. C. D.
isi2014-dcg permutation-and-combination binomial-theorem summation
A. B. C. D. None of these
isi2015-dcg permutation-and-combination binomial-theorem
is
A. B. C. D.
isi2015-mma permutation-and-combination binomial-theorem
A. B. C. D. None of these
isi2016-dcg permutation-and-combination binomial-theorem
A. B. C. D.
isi2016-mma permutation-and-combination binomial-theorem
A. B. C. D. none of these
isi2017-dcg permutation-and-combination binomial-theorem
The value of is
A. B. C. D.
isi2018-dcg permutation-and-combination binomial-theorem
A. B. C. D.
isi2018-dcg permutation-and-combination binomial-theorem
Five letters and are arranged so that and are always adjacent to each other and and are never
adjacent to each other. The total number of such arrangements is
A. B. C. D.
isi2014-dcg permutation-and-combination arrangements circular-permutation
A. B. C. D.
isi2018-mma engineering-mathematics discrete-mathematics generating-functions
We need to choose a team of from a pool of players and also select a captain. The number of different ways this
can be done is
A. B. .
C. D.
cmi2010 permutation-and-combination normal discrete-mathematics
Sales have slumped at the Siruseri noodle factory and the management may need to terminate the contracts of some
employees. Every employee has one immediate boss. The seniormost person in the company is the president, who has
no boss. For legal reasons, if an employee’s contract is not terminated, then his boss’s contract cannot be terminated either. For
how many different sets of employees can the management legally terminate contracts? Note that one possibility that has to be
counted explicitly is that no employees’ contracts are terminated (that is, the set of employees whose contract is terminated is
the empty set).
For example, suppose there are four employees, organised as follows. Each arrow points from an employee to his or her boss.
Here, there are different ways to terminate contracts for a set of employees, as follows:
For the inter-hostel six-a-side football tournament, a team of players is to be chosen from players consisting of
forwards, defenders and goalkeepers. The team must include at least forwards, at least defenders and at least
goalkeeper. Find the number of different ways in which the team can be chosen.
A. B. C. D.
cmi2014 permutation-and-combination discrete-mathematics normal
The school athletics coach has to choose students for the relay team. He calculates that there are ways of
choosing the team if the order in which the runners are placed is not considered. How many ways are there of choosing
the team if the order of the runners is to be taken into account?
A. Between and B. Between and
C. Between and D. More than
cmi2015 permutation-and-combination
Consider a social network with persons. Two persons and are said to be connected if either they are friends or
they are related through a sequence of friends: that is, there exists a set of persons such that and are
friends, and are friends, and are friends, and finally and are friends.
It is known that there are persons such that no pair among them is connected. What is the maximum number of friendships
possible?
descriptive cmi2015 permutation-and-combination
In a party there are participants, where is a positive integer. Some participants shake hands with other
participants. It is known that there are no three participants who have shaken hands with each other. Prove that the total
number of handshakes is not more than
cmi2017 engineering-mathematics discrete-mathematics permutation-and-combination descriptive
How many paths are there in the plane from to if the possible steps from are either
or
A. B. C. D.
cmi2018 permutation-and-combination
A. B.
C. D.
cmi2019 permutation-and-combination
A subset of set of numbers is said to be good if has exactly elements and their ,
Then number of good subset is
A. B. C. D.
permutation-and-combination isi2004 discrete-mathematics normal
Then has
A. exactly two values both between and B. exactly one value and this lies between
. and .
C. exactly two values both between and D. exactly one value and this lies between
. and .
permutation-and-combination isi2004
The number of permutation of that keep at least one integer fixed is.
A. B. C. D.
permutation-and-combination isi2004 discrete-mathematics normal
In how many ways can three person, each throwing a single die once, make a score of
A. B. C. D.
permutation-and-combination isi2004
Consider committees, each having at least persons, formed from a group of persons. Prove that there exists at
least one person who belongs to at least committees.
isi2016-pcb permutation-and-combination descriptive
Consider an integer lattice. A path from to can use steps of , or diagonal steps .
Let be the number of such distinct paths. Prove that
Consider multiple-choice questions, each with four options of which exactly one is correct. Then the number of
ways one can get only the alternate questions correctly answered is
A. B.
D.
C.
isi2014-dcg permutation-and-combination
The number of permutations of the letters and such that does not follow does not follow , and does
not follow , is
A. B. C. D.
isi2014-dcg permutation-and-combination
If , an then is equal to
A. B. C. D. none of these
isi2014-dcg permutation-and-combination
Suppose in a competition matches are to be played, each having one of distinct outcomes as possibilities. The
number of ways one can predict the outcomes of all matches such that exactly of the predictions turn out to be
correct is
A. B.
C. D. none of the above
isi2015-mma permutation-and-combination
A. B. C. D.
isi2015-mma permutation-and-combination
Consider all possible permutations of eight distinct elements . In how many of them, will appear
before ? Note that and may not necessarily be consecutive.
descriptive isi2015-pcb-a permutation-and-combination
A palindrome is a sequence of digits which reads the same backward or forward. For example, , are
palindromes, but , are not palindromes. How many digit prime palindromes are there?
isi2016 permutation-and-combination discrete-mathematics normal descriptive
A integer is said to be a if it reads the same forward or backward. For example, the integer is a
-digit palindrome and is not a palindrome. How many -digit palindromes are prime?
A. B. C. D.
isi2016-mmamma permutation-and-combination
A club with members is organized into four committees so that each member belongs to exactly two committees and
each pair of committees has exactly one member in common. Then
A. B.
C. D. cannot be determined from the given
information
isi2016-mmamma permutation-and-combination
i. Consider all possible trees with nodes. Let be the number of nodes with degree greater than 1 in a given tree. What is
the maximum possible value of ? Justify your answer.
ii. Consider committees, each having at least persons, formed from a group of persons. Prove that there exists at
The five vowels— —along with are to be arranged in a row such that no is at an extreme
position. Also, between any two vowels, there must be at least . The number of ways in which this can be done is
A. B. C. D.
isi2017-mma engineering-mathematics discrete-mathematics permutation-and-combination
Let be the number of ways in which men and women can stand in a queue such that all the women stand
consecutively. Let be the number of ways in which the same persons can stand in a queue such that exactly
women stand consecutively. Then the value of is
A. B. C. D.
isi2017-mma engineering-mathematics discrete-mathematics permutation-and-combination
In a class of students, are girls and are boys. Also, exactly students wear glasses. Then the set of all
possible numbers of boys without glasses is
A. B.
C. D. none of these
isi2017-mma engineering-mathematics discrete-mathematics permutation-and-combination
Let . How many pairs of numbers and are possible so that and and
belong to ?
A. B. C. D.
isi2018-dcg permutation-and-combination
In a room there are men, numbered . These men have to be divided into teams in such a way that
A. B. C. D.
isi2018-dcg permutation-and-combination
A Pizza Shop offers different toppings, and they do not take an order without any topping. I can afford to have one
pizza with a maximum of toppings. In how many ways can I order my pizza?
A. B. C. D.
isi2018-dcg permutation-and-combination
A new flag of ISI club is to be designed with vertical strips using some or all of the four colors: green, maroon, red
and yellow. In how many ways this can be done so that no two adjacent strips have the same color?
A. B. C. D.
isi2018-mma engineering-mathematics discrete-mathematics permutation-and-combination
The number of digit positive integers whose sum of the digits is at least is
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics permutation-and-combination
Suppose that the number plate of a vehicle contains two vowels followed by four digits. However, to avoid confusion,
the letter and the digit are not used in the same number plate. How many such number plates can be formed?
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics permutation-and-combination
A general election is to be scheduled on days in May such that it is not scheduled on two consecutive days. In how
many ways can the days be chosen to hold the election?
A. B.
C. D.
Suppose that -digit numbers are formed using each of the digits exactly once. The number of such -
digit numbers that are divisible by but not divisible by is equal to
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics permutation-and-combination
There is a party of people. Each attendee has at most friends in the party. The friend circle of a person includes the
person and all her friends. You are required to pick some people for a party game, with the restriction that at most one
person is picked from each friend circle. Show that you can pick people for the game.
The numbers are arranged in a circle in some order. Show that it is always possible to find three adjacent
numbers whose sum is at least , irrespective of the ordering.
descriptive isi2011 pigeonhole-principle
Let and respectively denote the constant term and the coefficient of in . Then
A. B.
C. D.
isi2015-mma recurrence-relations non-gate
Let be a set of elements. The number of ways, we can choose an ordered pair , where are disjoint
subsets of , equals
A. B. C. D.
isi2015-mma permutation-and-combination sets
A. B. C. D.
isi2014-dcg permutation-and-combination summation
A simple graph is one in which there are no self-loops and each pair of distinct vertices is connected by at most one
edge. Let be a simple graph on vertices such that there is a vertex of degree , a vertex of degree , a vertex of
degree , a vertex of degree , a vertex of degree , a vertex of degree and a vertex of degree . Which of the following can
be the degree of the last vertex?
A. B. C. D.
cmi2013 graph-theory normal degree-of-graph
An undirected graph has vertices labelled and edges. Vertices have degree and
vertices have degree What is the degree of vertex ?
A. B. C. D.
cmi2015 graph-theory degree-of-graph easy
A multinational company is developing an industrial area with many buildings. They want to connect the buildings
with a set of roads so that:
Is it always possible to colour each building with either red or blue so that every road connects a red and blue building?
Suppose each edge of an undirected graph is coloured using one of three colours — red, blue or green. Consider the
following property of such graphs: if any vertex is the endpoint of a red coloured edge, then it is either an endpoint of a
blue coloured edge or not an endpoint of any green coloured edge. If a graph does not satisfy this property, which of the
following statements about are valid?
A college prepares its timetable by grouping courses in slots A, B, C, . . . All courses in a slot meet at the same time,
and courses in different slots have disjoint timings. Course registration has been completed and the administration now
knows which students are registered for each course. If the same student is registered for two courses, the courses must
be assigned different slots. The administration is trying to compute the minimum number of slots required to prepare the
timetable.
The administration decides to model this as a graph where the nodes are the courses and edges represent pairs of courses with
an overlapping audience. In this setting, the graph theoretic question to be answered is:
Find a minimal colouring.
A simple graph is one with no self-loops or multiple edges. Among the simple graphs with vertices and at most
edges:
A. There is always a graph with all vertices connected to at least other vertices.
B. For all such graphs the number of vertices connected to at least other vertices is at most cn for some constant .
C. There are no graphs with each vertex connected to at most other vertices.
D. None of the above
An international cellphone company provides service on different frequencies. They wish to set up business in
TamilNadu and have fixed the locations of towers for their new service. The company has to ensure that two
towers broadcasting on the same frequency are at least km apart, so that there is no interference of signals.
Let be a graph in which each vertex has degree at least . Show that there is a path of length in —that is, a
sequence of distinct vertices such that for is connected to in .
cmi2010 descriptive graph-theory graph-connectivity
A. is always connected.
B. is connected if is not connected.
C. At least one of and connected.
D. is not connected or is not connected
A multinational company is developing an industrial area with many buildings. They want to connect the buildings
with a set of roads so that:
Two roads are said to be to each other if they serve a common building. A set of roads is said to be if:
Let be a connected graph. For a vertex of we denote by the graph formed by removing and all edges
incident on from . is said to be good if there are at least two distinct vertices in such that both and
are connected.
Given a good graph, devise a linear time algorithm to find two such vertices.
descriptive cmi2011 graph-theory graph-connectivity
Let be a connected graph. For a vertex of we denote by the graph formed by removing and all edges
incident on from . is said to be good if there are at least two distinct vertices in such that both and
are connected.
Show that there exists a graph such that we cannot find three distinct vertices such that each of
and is connected.
cmi2011 descriptive graph-theory graph-connectivity
Let be a graph where and the degree of each vertex is strictly greater than . Prove that has a
Hamiltonian path. (Hint: Consider a path of maximum length in .)
cmi2012 descriptive graph-theory graph-connectivity
A complete graph on vertices is an undirected graph in which every pair of distinct vertices is connected by an edge.
A simple path in a graph is one in which no vertex is repeated. Let be a complete graph on vertices. Let , ,
be three distinct vertices in . How many simple paths are there from to going through ?
cmi2013 descriptive graph-theory graph-connectivity
A simple graph is one in which there are no self loops and each pair of distinct vertices is connected by at most one
edge. Show that any finite simple graph has at least two vertices with the same degree.
cmi2013 descriptive graph-theory graph-connectivity
ScamTel has won a state government contract to connect cities by high-speed fibre optic links. Each link will
connect a pair of cities so that the entire network is connected-there is a path from each city to every other city. The
contract requires the network to remain connected if single link fails. What is the minimum number of links that ScamTel
needs to set up?
A. B. C. D.
cmi2016 graph-theory graph-connectivity
A (respectively cycle) in a graph is a path (respectively cycle) in which no edge or vertex is repeated. The
of such a path (respectively cycle) is the number of edges in the path (respectively cycle).
Let be an undirected graph with minimum degree . Show that contains a simple path of length at least .
cmi2016 graph-theory descriptive graph-connectivity
A (respectively cycle) in a graph is a path (respectively cycle) in which no edge or vertex is repeated. The
of such a path (respectively cycle) is the number of edges in the path (respectively cycle).
Let be an undirected graph with minimum degree . Show that contains a simple cycle of length at least .
cmi2016 graph-theory graph-connectivity descriptive
An undirected graph can be converted into a directed graph by choosing a direction for every edge. Here is an example:
Show that for every undirected graph, there is a way of choosing directions for its edges so that the resulting directed graph has
no directed cycles.
City authorities are concerned about traffic accidents on major roads. They would like to have ambulances stationed at
road intersections to quickly reach the scene of any accident along these roads. To minimize response time, ambulances
are to be located at intersections with traffic lights so that any segment of road can be reached by at least one ambulance that
does not have to pass through a traffic light to reach the scene of the accident. If we model the road network as a graph, where
intersections with traffic lights are vertices and edges represent road segments between traffic lights, the graph-theoretic
question to be answered is:
A. Find a spanning tree with minimum B. Find a spanning tree with minimum
number of edges. cost.
C. Find a minimal coloring. D. Find a minimum size vertex cover.
cmi2017 graph-connectivity easy
Let be an arbitrary graph on vertices with edges. Consider the following statements:
An undirected graph is if, for any two vertices of the graph, there is a path in the graph starting at
and ending at . A tree is a connected, undirected graph that contains no cycle.
a. A in a tree is a vertex that has degree . Prove that if is a tree with at least two vertices then contains at least two
leaves.
b. A is one in which the vertex set can be partitioned into two disjoint sets and so that for every
edge , and lie in different partitions—that is, and v or vice versa. Prove that if is a tree with at
least two vertices, then is bipartite.
Consider the assertion: Any connected undirected graph with at least two vertices contains a vertex such that
deleting from results in a connected graph. Either give a proof of the assertion, or give a counterexample (thereby
disproving the assertion).
cmi2019 graph-connectivity
Construct a tree that has disjoint centre and centroid, each having two vertices (i.e. and .
For a positive integer , let be a graph, where , i.e., is the set of vertices has one to one
correspondence with the set of all -bit binary strings and belongs to and differ in exactly
one bit position .
i. Determine size of
ii. Show that is connected
Show that if the edge set of the graph with nodes can be partitioned into trees, then there is at least one
vertex of degree less than in .
isi2017-pcb-cs engineering-mathematics discrete-mathematics graph-theory graph-connectivity descriptive
A college prepares its timetable by grouping courses in slots A, B, C, . . . All courses in a slot meet at the same time,
and courses in different slots have disjoint timings. Course registration has been completed and the administration now
knows which students are registered for each course. If the same student is registered for two courses, the courses must
be assigned different slots. The administration is trying to compute the minimum number of slots required to prepare the
timetable.
The administration decides to model this as a graph where the nodes are the courses and edges represent pairs of courses with
an overlapping audience. In this setting, the graph theoretic question to be answered is:
Find a maximum size independent set.
Your college has sent a contingent to take part in a cultural festival at a neighbouring institution. Several team events
are part of the programme. Each event takes place through the day with many elimination rounds. Your contingent is
multi-talented and each individual has the skills to take part in a subset of the events. However, the same individual cannot be
part of the team for two different events because of a possible clash in timings. Your aim is to create teams to take part in as
many events as possible.
To do this, you decide to model the problem as a graph where the nodes are the events and edges represent pairs of events
where the team that you plan to send shares a member. In this setting, the graph theoretic question to be answered is:
A. Find a maximum length simple cycle B. Find a maximum size independent set
C. Find a maximum matching D. Find a maximal connected component
cmi2018 graph-theory graph-connectivity graph-matching independent-set descriptive
A dodecahedron is a regular solid with faces, each face being a regular pentagon. How many edges are there? And
how many vertices?
A. edges and vertices B. edges and vertices
C. edges and vertices D. edges and vertices
cmi2016 graph-theory undirected-graph regular-pentagon faces
In a connected undirected graph, the distance between two vertices is the number of edges in the shortest path between
them. Suppose we denote bt the following property: there exists a vertex that is a neighbour of all other vertices .
Consider the following statements:
i. If is false, then there is a pair of vertices such that the distance between them is at least
ii. If is true, then the distance between any pair of vertices is at most
Consider a weighted undirected graph with positive edge weights. Let be an edge in the graph. It is known
that the shortest path from a vertex to has weight and the shortest path from to has weight Which of the
statements is always true?
A. Weight of B. Weight of
C. Weight of D. Nothing can be said about the weight
of
cmi2016 graph-theory shortest-path
Let be an undirected simple graph, and be a designated vertex in For each let be the
length of a shortest path between and For an edge in what can not be the value of
A. B. C. D.
cmi2018 graph-theory shortest-path
A college prepares its timetable by grouping courses in slots A, B, C, . . . All courses in a slot meet at the same time,
and courses in different slots have disjoint timings. Course registration has been completed and the administration now
knows which students are registered for each course. If the same student is registered for two courses, the courses must be
assigned different slots. The administration is trying to compute the minimum number of slots required to prepare the
timetable.
The administration decides to model this as a graph where the nodes are the courses and edges represent pairs of courses with
an overlapping audience. In this setting, the graph theoretic question to be answered is:
A fan of order is a graph on the vertices with edges defined as follows: vertex is connected
by an edge to each of the other vertices, and vertex is connected by an edge to vertex , for .
1. Calculate .
2. Write a recurrence for .
3. Solve for fn using ordinary generating functions.
L et be a tree on 100 vertices. Let be the number of vertices in which have exactly neighbors. Let
Which of the following is true?
A. B.
C. D. None of the above
cmi2012 graph-theory trees
Consider all possible trees with nodes. Let be the number of nodes with degree greater than in a given tree. What
is the maximum possible value of ?
isi2016 graph-theory trees descriptive
Let be an undirected graph and The input graph is given to you by a matrix
of size as follows. For any the entry if and only if is an edge in
A connected component in is a subgraph in which any two vertices are connected to each other by paths. Give a simple
algorithm to find the number of connected components in Analyze the time taken by your procedure.
cmi2018 graph-theory undirected-graph graph-connectivity connected-components descriptive
A college prepares its timetable by grouping courses in slots A, B, C, . . . All courses in a slot meet at the same time,
and courses in different slots have disjoint timings. Course registration has been completed and the administration now
knows which students are registered for each course. If the same student is registered for two courses, the courses must be
assigned different slots. The administration is trying to compute the minimum number of slots required to prepare the
timetable.
The administration decides to model this as a graph where the nodes are the courses and edges represent pairs of courses with
an overlapping audience. In this setting, the graph theoretic question to be answered is:
A. Find a spanning tree with minimum B. Find a minimal colouring.
number of edges.
C. Find a minimum size vertex cover. D. Find a maximum size independent set
cmi2015 descriptive graph-theory vertex-cover
An interschool basketball tournament is being held at the Olympic sports complex. There are multiple basketball
courts. Matches are scheduled in parallel, with staggered timings, to ensure that spectators always have some match or
other available to watch. Each match requires a team of referees and linesmen. Two matches that overlap require disjoint teams
of referees and linesmen. The tournament organizers would like to determine how many teams of referees and linesmen they
need to mobilize to effectively conduct the tournament. To determine this, which graph theoretic problem do the organizers
have to solve?
A. Find a minimal colouring. B. Find a minimal spanning tree.
C. Find a minimal cut. D. Find a minimal vertex cover.
cmi2019 graph-theory graph-coloring spanning-tree vertex-cover descriptive
A vertex cover of a graph is a set of vertices such that for any edge , either or \ (or
both) is in . Write a linear time algorithm to find the minimum vertex cover of a given tree . Establish its
correctness.
descriptive isi2011-pcb-cs graph-theory vertex-cover
Let and range over natural numbers and let be true if is a prime number. Which of the following
formulas expresses the fact that the set of prime numbers is infinite?
A.
B.
C.
D.
cmi2010 first-order-logic
Twin primes are pairs of numbers and such that both are primes—for instance, and , and , and .
The Twin Prime Conjecture says that there are infinitely many twin primes.
Let be a predicate that is true if and are twin primes. Which of the following formulas, interpreted
over positive integers, expresses that there are only finitely many twin primes?
A.
B.
C.
D.
In the land of Twitter, there are two kinds of people: knights (also called outragers), who always tell the truth, and
knaves (also called trolls), who always lie. It so happened that a person with handle @anand tweeted something
offensive. It was not known whether @anand was knight or a knave. A crack team, headed by Inspector Chitra, rounded up
three suspects and interrogated them.
The first interrogation went as follows.
L e t and are two non-empty finite subsets of , the set of all integers. Define
.Prove that , where denotes the cardinality of finite
set .
isi2018-pcb-a set-theory&algebra descriptive
A. B. C. D.
isi2014-dcg sets algebra
Let be the set . Define the set by and have the same
remainder when divided by .
Then the number of elements in is
A. B. C. D.
isi2015-mma sets cartesian-product
Let and be disjoint sets containing and elements respectively, and let . Then the number of
subsets (of ) which contains elements and also has the property that contains elements, is
A. B.
C. D.
is a factor of whenever
A boolean function is a function that takes three boolean arguments and produces a boolean output. Let and
be boolean functions. We say that and are neighbours if and agree on at least one input and disagree on
at least one input: that is, there exist such that and such that
.
Suppose we fix a boolean function . How many neighbours does have?
A. B. C. D.
cmi2011 functions
Let be a nonempty set and let denote the collection of all subsets of Define by
Then equals
A. B.
C. D.
isi2004 functions
If be the set of triangles in a plane and be the set of all positive real numbers, then the function
defined by area of triangle is
A. one-one and into B. one-one and onto C. many-one and onto D. many-one and into
isi2015-dcg functions
Suppose and are finite sets, each with cardinality . The number of bijective functions from to is
A. B. C. D.
isi2015-dcg functions
An variable Boolean function is called symmetric if its value depends only on the number of
in the input. Let denote the number of such functions.
Let be a connected graph. For a vertex of we denote by the graph formed by removing and all edges
incident on from . is said to be good if there are at least two distinct vertices in such that both and
are connected.
Let be a group with identity element . If and are elements in satisfying , then which of the
following conditions is true?
A. B.
C. D.
isi2015-mma group-theory
Let be the group with multiplication of complex numbers as composition. Let be the quotient group
. Then the number of nontrivial group homomorphisms from to is
A. B. C. D.
isi2015-mma group-theory non-gate
Let be a subgroup of group and let be a normal subgroup of . Choose the correct statement :
Let be a finite group of even order. Then which of the following statements is correct?
A. The number of elements of order in B. The number of elements of order in
is even is odd
C. has no subgroup of order D. None of the above.
isi2018-mma engineering-mathematics discrete-mathematics set-theory&algebra group-theory
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics set-theory&algebra group-theory
A. B.
C. D.
isi2004 inequality
is always
If the equation (where are real number) has no real roots and if at least one of
the root is of modulus one, then
A. B. C. D. none of this
isi2004 polynomials
A. B. C. D.
isi2004 polynomials
The equation where has four distinct real root if and only if
A. B.
C. D.
isi2004 polynomials
The equation
has
A. exactly three solution in B. exactly one solution in
C. exactly two solution in D. no solution in
isi2004 polynomials
Let . Find all subsets of such that for all in , their product is also in
.
descriptive isi2013 sets
A.
B.
C. Each of the sets and is non-empty
D. none of the above
isi2014-dcg sets
A. B. D.
C.
isi2015-dcg sets
Let , and be three non empty sets. Consider the two relations given below:
Suppose is given by
Then is
A. A bijective (one-one and onto) B. A surjective (onto ) function
function
C. An injective (one-one) function D. We cannot conclude about the type
isi2015-dcg sets functions
Let be a nonempty set and let denote the collection of all subsets of . Define by
Then equals
A. B.
C. D.
isi2015-mma sets functions non-gate
Then
A.
B.
C. Each of the sets and is non-empty
D. none of the above
If be the set of triangles in a plane and be the set of all positive real numbers, then the function
defined by area of triangle is
A. one-one and into B. one-one and onto C. many-one and onto D. many-one and into
isi2016-dcg sets functions
Let and be three non empty sets. Consider the two relations given below:
A. Both (1) and (2) are correct. B. (1) is correct but (2) is not.
C. (2) is correct but (1) is not. D. Both (1) and (2) are incorrect.
isi2016-dcg sets
Suppose and are finite sets, each with cardinality .. The number of bijective functions from to is
A. B. C. D.
isi2016-dcg sets functions
Suppose is given by
Then is
A. A bijective (one-one and onto) B. A surjective (onto) function.
function.
C. An injective (one-one) function. D. We can not conclude about the type.
isi2016-dcg sets functions
Two sets have and elements. The number of subsets of the first set is more than that of the second set. Then the
values of and are
Let be the set of all prime numbers, be the set of all even prime numbers, and be the set of all odd prime
numbers. Consider the following three statements in this regard:
I. .
II. is a singleton set
III.
isi2018-dcg sets
A. B. C. D.
isi2018-dcg sets
Then,
A. is not a subgroup of
B. is a subgroup of but not normal subgroup
C. is a normal subgroup and the quotient group is of finite order
D. is a normal subgroup and the quotient group is isomorphic to (the group of positive reals with multiplication).
A set contains elements. The number of subsets of the set which contain at most elements is
A. B. C. D.
isi2015-mma sets subsets
Which one of the following statements is correct regarding the elements and subsets of the set ?
A. B.
C. D.
isi2016-mmamma sets subsets
A. B. C. D.
isi2014-dcg calculus area-under-the-curve
The area lying in the first quadrant and bounded by the circle and the lines and is given by
A. B. C. D.
isi2017-mma engineering-mathematics calculus area-under-the-curve
If then
A. B. C. D.
isi2014-dcg calculus functions limits continuity
Let be a strictly increasing function. Then which one the following is always true?
D. There cannot be any real number such that for all real
Let be a fixed positive integer. For any real number if for some integer
then we define .
A. B. C. D.
isi2017-mma engineering-mathematics calculus continuity
and
Let be a sequence of a real number such that the subsequence and converge to limit and
respectively. Then
A. always converge B. If then converge
C. may not converge but D. it is possible to have
isi2017 calculus engineering-mathematics non-gate convergence
A.
B.
C.
D.
The integral
equals
A. B. C. D. none of these
isi2014-dcg calculus definite-integrals integration
For real , the value of , where denotes the largest integer less than or equal to , is
A. B.
C.
D.
isi2014-dcg calculus integration definite-integrals
A. B. C. D.
isi2014-dcg calculus integration definite-integrals
A. B. C. D.
isi2014-dcg calculus integration definite-integrals
A. B. C. D.
isi2015-dcg integration definite-integrals
Then
A. is not continuous at
B. is continuous and differentiable everywhere
C. is continuous everywhere but not differentiable at
D. is continuous everywhere but not differentiable at
is
A. B. C. D.
isi2015-mma calculus definite-integrals non-gate
The value of
is
A. B. C. D.
isi2015-mma calculus limits definite-integrals non-gate
Let . Then
is equal to
A. B.
C. D.
isi2015-mma calculus definite-integrals summation non-gate
If is continuous in then
A. B. C. D.
isi2016-mmamma calculus integration definite-integrals
A determinant is chosen at random from the set of all determinants of order with elements or only. The
probability of choosing a non-zero determinant is
A. B. C. D. none of these
isi2017-dcg probability determinants
The general solution of the differential equation is (assuming as an arbitrary constant of integration)
A. B. C. D.
isi2016-dcg calculus differential-equation non-gate
A. B.
C. D.
isi2016-dcg calculus differential-equation non-gate
is
A. B. C. D.
isi2016-mmamma differential-equation non-gate
A. B.
C. D.
isi2017-mmamma calculus differential-equation non-gate
is
A. , where is a constant
B. , where is a constant
C. , where is a constant
D. , where is a constant
Let the function be defined as . Then which of the following statements is true?
A. is differentiable at B. is differentiable at
C. is differentiable at but not D. none of the above
at
isi2014-dcg calculus differentiation
A. and B. and
C. D. can take any real value
isi2015-mma calculus differentiation
Let and be two differentiable functions such that for all and for all .
Then
A. if , then for B. if , then for
all all
C. D.
isi2015-mma calculus differentiation
A. B. C. D.
isi2016-mmamma calculus differentiation
A. B. C. D.
isi2017-dcg calculus differentiation functions
Let denote the integer nearest to . For example, and =2. Draw the graph of the
function for . Find all the points , where the function is not differentiable.
Justify your answer.
isi2017-pcb-a differentiation
Let denote the largest integer less than or equal to The number of points in the open interval in which the
function is not differentiable, is
A. B. C. D.
isi2018-dcg calculus differentiation
A. B. C. D.
isi2018-dcg calculus functions differentiation
Give a constant time algorithm that computes on input . (A constant-time algorithm is one whose running time is
independent of the input )
cmi2016 calculus functions descriptive
Let be a strictly increasing function. Then which one of the following is always true?
isi2016 functions
If and then
A. B. C. D.
isi2014-dcg calculus functions
A.
B.
C.
D.
A. B. C. D.
isi2015-mma calculus functions non-gate
A. B. C. D.
isi2015-mma calculus functions non-gate
A. is strictly decreasing
B. is strictly increasing
C. is strictly decreasing at first and then strictly increasing
D. is strictly increasing at first and then strictly decreasing
If , then is
A. B. C. D.
isi2017-dcg calculus functions
A. B. C. D.
isi2017-dcg calculus functions
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics set-theory&algebra functions
A. B. C. D.
Let . Then
A. B.
C. D. None of these
isi2015-dcg calculus integration
Let be the triangle in the – plane bounded by the -axis, the line , and the line . The value of the
double integral
is
A. B. C. D.
isi2015-mma integration non-gate
A. B.
C. D. None of these
isi2016-dcg calculus integration non-gate
A. B. C. D. none of these
isi2017-mma engineering-mathematics calculus integration
.
The value of is
A. B. C. D.
isi2018-mma engineering-mathematics calculus integration
A. B. C. D.
isi2019-mma calculus engineering-mathematics integration
is
A. B. C. D.
isi2019-mma engineering-mathematics calculus integration
Let
Then
is
A. B. C. D. non-existent
isi2014-dcg calculus limits
Let . Then
equals
A. B. C. D.
isi2014-dcg calculus limits
a. ,
b. , and
c. for with .
A. B. C. D.
isi2014-dcg calculus functions limits
is equal to
A. B. C. D.
isi2014-dcg calculus limits
Let
Then exists
is equal to
A. B. C. D.
isi2014-dcg calculus limits
The value of is
A. B. C. D. None of these
isi2015-dcg calculus limits
equals
A. B. C. D. None of these
isi2015-dcg calculus limits
equals
A. B. C. D.
isi2015-dcg calculus limits
equals
equals
equals
equals
The limit is
A. B. C. D.
isi2015-mma calculus limits non-gate
A. B. C. D.
isi2015-mma calculus limits non-gate
Let . Then
A. B. C. D.
isi2015-mma calculus limits non-gate
is equal to
A. B. C. D.
isi2015-mma calculus limits non-gate
A. and exists
B. and exist
C. and exist
D. none of the above
A. B. C. D. none of these
isi2015-mma calculus limits non-gate
The value of is
A. B. C. D. None of these
isi2016-dcg limits
equals
A. B. C. D. None of these
isi2016-dcg calculus limits
equals
A. B. C. D.
isi2016-dcg calculus limits
equals
equals
equals
equals
Let
Then
The value of is
A. B. C. D. none of these
isi2017-dcg calculus limits
A. B. C. D.
isi2017-dcg calculus limits
A. B. C. D.
Let be a sequence of real numbers such that the subsequences and converge to limits and
respectively. Then
A. always converges B. if , then converges
C. may not converge, but D. it is possible to have
isi2017-mma engineering-mathematics calculus limits
A. B.
C. D.
isi2018-dcg calculus limits functions
, ,
A.
B.
C.
D.
is
A. B. C. D.
isi2019-mma calculus limits
A.
B.
C.
D.
A. B. C. D.
isi2004 engineering-mathematics maxima-minima
It is given that where and are real. Then the maximum value of is
A. B. C. D.
isi2014-dcg calculus maxima-minima
A. a minimum at ; B. a maximum at ;
C. neither a maximum nor a minimum at D. None of the above
;
isi2014-dcg maxima-minima calculus
Let . Then
A. B. C. D.
A. strictly increasing
B. strictly decreasing
C. increasing in and decreasing in
D. decreasing in and increasing in
A. B.
C. D. none of these
isi2018-dcg calculus differentiation polynomials
A. B.
C. D. None of these
isi2014-dcg calculus functions quadratic-equations
A. B.
C. D.
isi2015-dcg calculus taylor-series non-gate
A. B.
C. D.
isi2016-dcg calculus taylor-series non-gate
If then is
A. B. C. D.
isi2017-dcg linear-algebra determinant definite-integrals non-gate
A.
B.
C.
D. None of these
The value of
is
A. B. C. D. None of these
isi2015-dcg linear-algebra determinant
The value of is
A. B.
C. D. None of these
isi2015-dcg linear-algebra determinant
Let be an matrix such that . Here stands for determinant of matrix . Then
A. B.
C. D.
isi2015-dcg linear-algebra matrices determinant
Let denote the minors of an matrix . What is the relationship between and ?
A. B. C. D.
isi2015-mma linear-algebra determinant functions
The value of is
A. B. C. D. None of these
isi2016-dcg linear-algebra determinant
The value of is
A. B.
C. D. None of these
isi2016-dcg linear-algebra determinant
A. B.
C. D.
isi2016-dcg linear-algebra matrices determinant
A. B. C. D.
isi2017-dcg linear-algebra determinant
is
A. B. C. D.
isi2017-mma engineering-mathematics linear-algebra determinant
If , the trace of is
A. B. C. D.
isi2018-mma engineering-mathematics linear-algebra determinant
Let be a real matrix with all diagonal entries equal to . If is an eigenvalue of , the determinant of
equals
A. B. C. D.
isi2018-mma engineering-mathematics linear-algebra eigen-value determinant
A. B. C. D.
isi2015-mma linear-algebra matrices eigen-value
A. B. C. D.
isi2015-mma linear-algebra matrices eigen-value
A. equals 4 B. equals 8
C. equals 16 D. cannot be determined from the given
information
isi2016-mmamma linear-algebra matrices eigen-value
A.
B.
C.
D. None of these
A. B.
C. D.
A. B. C. D.
isi2018-dcg linear-algebra matrices inverse
An matrix is said to be tridiagonal if its entries are zero except when for . Note that
only entries of a tridiagonal matrix are non-zero. Thus, an array of size is sufficient to store a
tridiagonal matrix. Given , write pseudo-code to
i. store in , and
ii. get the value of stored earlier in .
Suppose that is a real matrix such that for each where stands for the
transpose of . Then which one of the following is true?
A. B. C. D. None of these
isi2014-dcg linear-algebra matrices
If
A. B. C. D. None of these
isi2015-dcg linear-algebra matrices
Let
Then
A. there exists a matrix such that B. there is no matrix such that
A.
B.
C.
D.
A. B. C. D. None of these
isi2016-dcg linear-algebra matrices
If is a matrix satisfying (where is the zero matrix and is the identity matrix) then
the value of is
A. B. C. D. none of these
isi2017-dcg linear-algebra matrices
The diagonal elements of a square matrix are odd integers while the off-diagonals are even integers. Then
A. must be singular B. must be nonsingular
C. There is not enough information to D. must have a positive eigenvalue.
decide the singularity of
isi2017-mma engineering-mathematics linear-algebra matrices
The number of ordered pairs , where and are real, matrices such that is
A. B. C. D. infinite
isi2017-mma engineering-mathematics linear-algebra matrices
Consider a matrix , where is the identity matrix and is an column vector such
that .Show that .
isi2018-pcb-a engineering-mathematics linear-algebra matrices descriptive
Let be matrix with real entries. Now consider the function = . If the image of every circle under
is a circle of the same radius, then
A. A must be an orthogonal matrix B. A must be a symmetric matrix
C. A must be a skew-symmetric matrix D. None of the above must necessarily
hold
isi2019-mma engineering-mathematics linear-algebra matrices
Let denote the minors of an matrix What is the relationship between and ?
Suppose and are orthogonal matrices. Which of the following is also an orthogonal matrix? Assume that
is the null matrix of order and is the identity matrix of order .
A.
B.
D.
C.
A.
B.
C.
D. None of these
Suppose and are orthogonal matrices. Which of the following is also an orthogonal matrix? Assume that
is the null matrix of order and is the identity matrix of order
A.
B.
D.
C.
Let and be fixed real numbers, not all of them equal to zero. Define a matrix by
A. or B. C. D. or
isi2015-mma linear-algebra matrices rank-of-matrix
Let be a square matrix such that , but . Then which of the following statements is not necessarily
true?
A. B. C. D.
isi2017-mma engineering-mathematics linear-algebra rank-of-matrix
A. B. C. D.
A. B. C. D.
isi2018-mma engineering-mathematics linear-algebra rank-of-matrix
A. B. C. D.
isi2016-mmamma linear-algebra matrices summation
Then equals
A. B. C. D.
isi2016 engineering-mathematics system-of-equations
has no solution is
A. B. C. D.
isi2014-dcg linear-algebra matrices system-of-equations
A. B. C. D.
isi2014-dcg linear-algebra system-of-equations
and . Then,
A. B. C. D.
isi2015-mma linear-algebra system-of-equations
It is given that , and intersect exactly at one point when . If now then
the planes
A. do not have any common point of B. intersect at a unique point
intersection
C. intersect along a straight line D. intersect along a plane
isi2015-mma linear-algebra system-of-equations
and . Then,
Then equals
A. B. C. D.
isi2016-mmamma linear-algebra matrices system-of-equations
The locus of all such that this system has at least two distinct solution for ( ) is
is
A. B. C. D.
isi2019-mma linear-algebra system-of-equations
Let be the vector space of all matrices such that the sum of the elements in any row or any column is the same.
Then the dimension of is
A. B. C. D.
isi2019-mma engineering-mathematics linear-algebra vector-space non-gate
Let be the number of strings consisting of and such that no initial segment of has more than
Now consider the following problem. A person stands on the edge of a swimming pool holding a bag of red and
blue balls. He draws a ball out one at a time and discards it. If he draws a blue ball, he takes one step back, if he draws a red
ball, he moves one step forward. What is the probability that the person remains dry?
A. B.
C. D.
A basket contains some white and blue marbles. Two marbles are drawn randomly from the basket without
replacement. The probability of selecting first a white and then a blue marble is . The probability of selecting a
white marble in the first draw is . What is the probability of selecting a blue marble in the second draw, given that the first
marble drawn was white?
A. B. C. D.
isi2017-dcg probability balls-in-bins
of all email you receive is spam. Your spam filter is reliable: that is, of the mails it marks as spam are
indeed spam and of spam mails are correctly labeled as spam. If you see a mail marked spam by your filter, what
is the probability that it really is spam?
A. B. C. D.
cmi2013 probability conditional-probability
Varsha lives alone and dislikes cooking, so she goes out for dinner every evening. She has two favourite restaurants,
and , to which she travels by local train. The train to runs every
minutes, at and minutes past the hour. The train to runs every minutes, at
and minutes past the hour. She reaches the station at a random time between pm and pm and chooses
between the two restaurants based on the next available train/ What is the probability that she ends up eating in
?
A. B. C. D.
cmi2016 conditional-probability random-variable
You are given two coins and that look identical. The probability that coin turns up heads is , while the
probability that coin turns up heads is You choose one of the coins at random and toss it twice. If both the
outcomes are heads, what is the probability that you chose coin
A. B. C. D.
cmi2018 conditional-probability
There are switches on a switchboard, some of which are on and some of which are off. In one move, you pick any
switches and toggle each of them-if the switch you pick is currently off, you turn it on, if it is on, you turn it off. Your
aim is to execute a sequence of moves and turn all switches on. For which of the following initial configurations is this not
possible? Each configuration lists the initial positions of the switches in sequence, from switch to switch
A. (off,on,off,on,off,off,on) B. (off,on,on,on,on,on,off)
C. (on,off,on,on,on,on,on) D. (off,off,off,off,off,on,off)
cmi2018 conditional-probability
Two coins are tossed independently where (head occurs when coin is tossed) . Given that at least one
head has occurred, the probability that coins produced different outcomes is
A. B.
C. D. none of the above
isi2015-mma probability independent-events
A. B.
C. D.
isi2016-mmamma probability independent-events
A. B. C. D. none of these
isi2017-dcg probability independent-events
A. B. C. D. none of these
isi2018-dcg probability number-system
The number of cars arriving at a service station per day follows a Poisson distribution with mean . The service
station can provide service to a maximum of cars per day. Then the expected number of cars that do not get service
per day equals
A. B.
C. D.
isi2015-mma poisson-distribution expectation
A. B.
C. D.
isi2015 engineering-mathematics poisson-distribution
Suppose and are two independent random variables both following Poisson distribution with parameter . What is
the value of ?
A. B. C. D.
isi2016-mmamma probability random-variable poisson-distribution expectation
You have two normal, fair, dice, with faces labelled . If you throw both dice, which of the following is true
about the total value shown by the dice?
A. The probability that the total is is less than the probability that the total is .
B. The probability that the total is is equal to the probability that the total is .
C. The probability that the total is is greater than the probability that the total is .
D. None of the above.
cmi2010 probability
You have two six-sided cubic dice but they are numbered in a strange manner. On the first die, two opposite faces are
numbered , two opposite faces are numbered and the last pair of opposite faces are numbered . On the second die,
the three pairs of opposing faces are numbered , and . Both dice are fair: each side has an equal probability of coming face
up when tossed. Which of the following statements is not true of this pair of unusual dice?
A. The probability that the sum of the values shown by the dice is is the same as probability that the sum is .
B. The probability that the sum is odd is higher than the probability that the sum is even.
C. The probability that the sum is strictly less than is the same as the probability that the sum is strictly greater than .
D. The probability that the sum is a multiple of is the same as the probability that the sum is a prime number.
cmi2011 probability
You have a bag with black balls and white balls. Without looking, you pick up two balls from the bag and
apply the following rule. If both balls are of the same colour, you throw them both away. Otherwise, you throw away
the black ball and return the white ball to the bag. You keep repeating this process. If at some stage there is exactly one ball left
in the bag, which of the following is true?
cmi2011 probability
A man has three cats. At least one is male. What is the probability that all three are male?
A. B. C. D.
cmi2012 probability
The houses on one side of a street are numbered with even numbers starting at and going up to . A free
newspaper is delivered on Monday to different houses chosen at random from these . Find the probability that at
least of these newspapers are delivered to houses with numbers strictly greater than .
A. B. C. D.
cmi2014 probability
You arrive at a snack bar and you can’t decide whether to order a lime juice or a lassi. You decide to throw a fair -
sided die to make the choice, as follows.
A. B. C. D.
cmi2015 probability
An FM radio channel has a repository of songs. Each day, the channel plays distinct songs that are chosen
randomly from the repository.
Mary decides to tune in to the radio channel on the weekend after her exams. What is the probability that no song gets repeated
during these days?
A. B.
C. D.
Suppose you alternate between throwing a normal six-sided fair die and tossing a fair coin. You start by throwing the
die. What is the probability that you will see a on the die before you see tails on the coin?
A. B. C. D.
cmi2019 probability
Ravi asked his neighbor to water a delicate plant while he is away. Without water, the plant would die with probability
4/5 and with water it would die with probability 3/20. The probability that Ravi's neighbor would remember to water
the plant is 9/10. If the plant actually died, what is the probability that Ravi's neighbor forgot to water the plant?
There are four machines and it is known that exactly two of them are faulty. They are tested one by one in a random
order till both the faulty machines are identified. The probability that only two tests are required is
A. B. C. D.
A box contains fair and biased coins. Each biased coin has a probability of head . A coin is drawn at random from
the box and tossed. Then the second coin is drawn at random from the box ( without replacing the first one). Given that
the first coin has shown head, the conditional probability that the second coin is fair is
A. B. C. D.
Let , and and be chosen independently from the set , each value being equally likely. What is
the probability that the arithmetic mean of and is the same as their geometric mean?
A. B. C. D.
isi2017-mma engineering-mathematics probability
A die is thrown thrice. If the first throw is a then the probability of getting as the sum of three throws is
A. B. C. D. none of these
isi2018-dcg probability
Consider a large village, where only two newspapers and are available to the families. It is known that the
proportion of families
i. not taking is ,
ii. not taking is ,
iii. taking only is .
The probability that a randomly chosen family from the village takes only is
There are eight coins, seven of which have the same weight and the other one weighs more. In order to find the coin
having more weight, a person randomly chooses two coins and puts one coin on each side of a common balance. If
these two coins are found to have the same weight, the person then randomly chooses two more coins from the rest and follows
the same method as before. The probability that the coin will be identified at the second draw is
A. B. C. D.
isi2018-mma engineering-mathematics probability
Let and be the four vertices of a square. A particle starts from the
point at time and moves either to or to with equal probability. Similarly, in each of the subsequent steps, it
randomly chooses one of its adjacent vertices and moves there. Let be the minimum number of steps required to cover all
four vertices. The probability is
A. B. C. D.
isi2018-mma engineering-mathematics probability
Consider the set of all functions from to ,where . If a function is chosen from this
set at random, the probability that it will be strictly increasing is
A. B.
C. D.
isi2018-mma engineering-mathematics probability
The chance of a student getting admitted to colleges and are and , respectively. Assume that the
colleges admit students independently. If the student is told that he has been admitted to at least one of these colleges, what is
the probability that he has got admitted to college ?
A. B. C. D.
isi2019-mma engineering-mathematics discrete-mathematics probability
A coin with probability of getting head, is tossed until a head appears for the first time. If the probability
that the number of tosses required is even is , then the value of is
A. B. C. D.
isi2019-mma probability
Let be i.i.d. random variables each assuming the value and with probability each. Then, the
A. B. C. D.
isi2014 probability random-variable
A permutation of is chosen at random. Then the probability that the numbers and appear as neighbour
equals
A. B. C. D.
isi2015-mma probability random-variable permutation-and-combination
Suppose that is chosen uniformly from and given , is chosen uniformly from
Then
A. B.
C. D.
Ball Mart has different items in stock across all its stores worldwide. The company has collected billing data for
customer transactions. Each individual bill has at most distinct items in it. Ball Mart’s CEO wants to optimize
the company’s inventory and has asked for a list of those items that appear in at least of the billed transactions. Which of
the following is the most precise upper bound one can compute for the number of such items, given the data?
A. B. C. D.
cmi2013 numerical-ability
A. Either or B. Either or
C. Either or D. None of these
cmi2014 numerical-ability
A cook has a kitchen at the top of a hill, where she can prepare rotis. Each roti costs one rupee to prepare. She can sell
rotis for two rupees a piece at a stall down the hill. Once she goes down the steep hill, she can not climb back in time
make more rotis.
Suppose the cook starts at the top with rupees. What are all the possible amounts of money she can have at the end?
cmi2015 numerical-ability descriptive
A cook has a kitchen at the top of a hill, where she can prepare rotis. Each roti costs one rupee to prepare. She can sell
rotis for two rupees a piece at a stall down the hill. Once she goes down the steep hill, she can not climb back in time
make more rotis.
Suppose the cook can hitch a quick ride from her stall downhill back to the kitchen uphill, by offering a paan to a truck driver.
If she starts at the top with paans and rupee, what is the minimum and maximum amount of money she can have at the
end?
cmi2015 descriptive numerical-ability
Let be a matrix having non-zero entries. For , let be the number of non-zero entries in
the -th row, and for , let be the number of non-zero entries in the -th column.
A. B. and
C. D. takes any value except and
isi2017-mma general-aptitude numerical-ability
A. B. C. D.
isi2017-mma general-aptitude numerical-ability
If and are the opposite end points of a diameter of a circle, then the equation of the circle is given by
A. B.
C. D.
isi2017-mma general-aptitude numerical-ability
What is the smallest degree of a polynomial with real coefficients and having root and
[Here 1 is a cube root of unity.]
A. B. C. D.
isi2017-mma general-aptitude numerical-ability
A. B. C. D. infinitely many
isi2017-mma general-aptitude numerical-ability
If and are the roots of the equation , then an equation whose roots are
is given by
A. B. C. D.
isi2017-mma general-aptitude numerical-ability
The graph of a cubic polynomial is shown below. If is a constant such that has three real solutions,
which of the following could be a possible value of ?
A. B. C. D.
isi2017-mma general-aptitude numerical-ability
is
A. true for every B. true if and only if
C. not true for D. true for even integers , not true
for odd
isi2017-mma general-aptitude numerical-ability
The number of isosceles (but not equilateral) triangles with integer sides and no side exceeding is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
The angle between the tangents drawn from the point to the parabola is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
The -axis divides the circle into two parts. The area of the smaller part is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
One needs to choose six real numbers such that the product of any five of them is equal to other
number. The number of such choices is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
The greatest common divisor of all numbers of the form , where is a prime, is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
Let and be two positive integers such that and where are positive
integers with Then is same as
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
If is a root of , then is
A. B. C. D.
isi2018-mma general-aptitude numerical-ability
Let and be positive integers, each greater than .Prove that divides if and only if divides .
isi2018-pcb-a general-aptitude numerical-ability descriptive
A. B. C. D.
How many triplets of real numbers are simultaneous solutions of the equations and ?
A. B. C. D. infinitely many
isi2019-mma general-aptitude numerical-ability
Given a positive integer , we define as the highest power of that divides . If is a prime number greater
than , then
A. B.
C. D. None of the above is necessarily true
isi2019-mma general-aptitude numerical-ability
If , then
A. B.
C. D.
isi2019-mma general-aptitude numerical-ability
The sum of all digit numbers that leave a remainder of when divided by is:
A. B. C. D.
isi2019-mma general-aptitude numerical-ability
A. B.
C. D.
isi2015-dcg numerical-ability geometry area
The area of the shaded region in the following figure (all the arcs are circular) is
A. B. C. D.
isi2017-dcg numerical-ability geometry area
A. B. C. D.
isi2014-dcg numerical-ability arithmetic-series
If the sum of the first terms of an arithmetic progression is , then the sum of squares of these terms is
A. B.
C. D.
isi2014-dcg numerical-ability arithmetic-series
The sequence is in
A. B. C. D. none of these
isi2017-dcg numerical-ability arithmetic-series
A. B.
C. D.
A. B. C. D.
isi2015-dcg numerical-ability number-system binomial-theorem
Consider six distinct points in a plane. Let and denote the minimum and maximum distance between any pair of
points. Show that .
The area of the largest square that can be drawn inside a circle with unit radius is
A.
B.
C.
D. None of the above
cmi2010 circle
The equation of any circle passing through the origin and with its centre on the -axis is given by
The angle between the tangents drawn from the point to the circle is
A. B. C. D.
isi2017-dcg numerical-ability geometry circle trigonometry
A. B. C. D. None of these
isi2015-dcg numerical-ability number-system coefficients
A. B. C. D.
isi2015-mma numerical-ability number-system congruent-modulo non-gate
An advertisement for a tennis magazine states, "If I'm not playing tennis, I'm watching tennis. And If I'm not watching
tennis, I'm reading about tennis." We can assume that the speaker can do at most one of these activities at a time. What
is the speaker doing?
A. Playing tennis B. Watching tennis
C. Reading about tennis D. None of the above
cmi2016 logical-reasoning conjunction
The condition that ensures that the roots of the equation are in is
A. B.
C. D.
isi2015-dcg numerical-ability cubic-equations
If and are the roots of the equation , then an equation whose roots are
and is given by
A. B. C. D.
isi2017-mmamma numerical-ability cubic-equations roots
Suppose all the roots of the equation (where is a real number) are real. Prove that exactly one
root is positive.
isi2017-pcb-a numerical-ability cubic-equations roots descriptive
A. B. C. D.
isi2014-dcg numerical-ability number-system factors
The number of ways in which the number can be expressed as a product of two factors is equal to
A. B. C. D.
isi2014-dcg numerical-ability number-system factors
A. B. C. D.
isi2015-dcg numerical-ability number-system factors
A. B. C. D. None of these
isi2015-dcg numerical-ability number-system factors
A. B. C. D. None of these
isi2016-dcg numerical-ability number-system factors
Suppose are in geometric progression and . Which one of the following is always true?
Let be the maximum number of unit disks (disks of radius ) that can be placed inside a disk of radius so that
each unit disk lies entirely within the larger disk and no two unit disks overlap. Then:
A. B.
C. D.
cmi2014 numerical-ability geometry
The vertices of a triangle are given. For an arbitrary point in the plane, give an algorithm to test if belongs to
the interior of . (The interior of does not include its edges).
descriptive isi2013 numerical-ability geometry
Four squares of sides each are cut off from the four corners of a square metal sheet having side The
residual sheet is then folded into an open box which is then filled with a liquid costing Rs. per The value of
for which the cost of filling the box completely with the liquid is maximized, is
A. B. C. D.
isi2016-dcg numerical-ability geometry
A. B. C. D. None of these
isi2016-dcg numerical-ability inequality
A. B. C. D. None of these
isi2016-dcg numerical-ability summation inequality
Let . Then
A. B.
C. D. no such real number is possible.
isi2018-dcg numerical-ability number-system inequality
A. B. C. D.
isi2014-dcg numerical-ability integer-solutions
The area of the region formed by line segments joining the points of intersection of the circle
with the two axes in succession in a definite order (clockwise or anticlockwise) is
A. B. C. D.
isi2018-dcg circle intersection non-gate
A. B. C. D.
isi2017-dcg numerical-ability inverse-trigonometry
The length of the chord on the straight line intercepted by the circle passing through the points
and is
A. B. C. D.
isi2015-dcg numerical-ability geometry lines circle
If the coordinates of the middle point of the portion of a line intercepted between the coordinate axes are , then
the equation of the straight line is
A. B. C. D.
isi2017-dcg numerical-ability geometry lines
If are in , then the straight line will always pass through the point whose coordinates are
A. B. C. D.
isi2017-dcg numerical-ability geometry lines arithmetic-series
A.
B.
C. There exist and such that and
D. None of these
Let where denotes the greatest integer less than or equal to . Then
A. B. C. D.
isi2014-dcg numerical-ability logarithms
The value of is
A. B. C. D. None of these
isi2015-dcg numerical-ability logarithms
The sequence is in
The value of is
A. B. C. D. None of these
isi2016-dcg numerical-ability logarithms summation
A. B. C. D. none of these
isi2017-dcg numerical-ability logarithms summation
The solution of is
A. B. C. D. none of these
isi2017-dcg numerical-ability logarithms
Lavanya has to complete courses for her degree. There are six compulsory courses: Basic and Advanced
Mathematics, Basic and Advanced Physics and Basic and Advanced Electronics. She also has to complete six Optional
Courses. Each course takes one semester to complete. There are some constraints because of prerequisites.
For Mathematics, Physics and Electronics, the Basic course must be completed before starting the Advanced course.
Advanced Physics must be completed before starting Basic Electronics.
Advanced Mathematics must be completed before starting Advanced Physics.
The Optional Courses can be done in any order, but no more than two Optional Courses can be taken in a semester
Given these constraints, what is the minimum number of semesters that Lavanya needs to complete her course requirements.
A. B. C. D.
cmi2011 numerical-ability logical-reasoning
A valuable sword belonging to the Grand King was stolen, and the three suspects were Ibn, Hasan, and Abu. Ibn
claimed that Hasan stole it, and Hasan claimed that Abu stole it. It was not clear that one of them stole it, but it was
later learnt that no innocent person had lied. It was also learnt that the sword was stolen by only one person.
Who stole the sword?
Amma baked a cake and left it on the table to cool. Before going for her bath, she told her four children that they
should not touch the cake as it was to be cut only the next day. However when she got back from her bath she found
that someone had eaten a large piece of the cake. Since only her four children were present at home when this happened, she
questioned them about who ate a piece of the cake. The four answers she got were:
If exactly one of them was telling the truth and exactly one of them actually ate the piece of cake, who is the culprit that Amma
is going to punish?
A company is due to send a shipment to a client and the CEO has resigned. To select a new CEO, some candidates have
been interviewed. One of them will be chosen through a vote. If the workers union resort to a strike and the candidates
have to be interviewed again, then the shipment deadline will be missed. If there are more abstainers than voters in the vote to
choose the new CEO, then the candidates have to be interviewed again. Suppose that the shipment was sent on time. Which of
the following is a valid conclusion?
cmi2014 logical-reasoning
Avinash is taller than Abhay. Bharat is taller than Vinu and Vinay is taller than Bharat. Which of the following is a
minimal set of additional information that can determine the tallest person?
A. Vinay is taller than Avinash and B. Avinash is taller than Vinay.
Abhay is taller than Bharat.
C. Abhay is shorter than Vinay. D. None of the above.
cmi2014 logical-reasoning
Four siblings go shopping with their father. If Abhay gets shoes, then Asha does not get a necklace. If Arun gets a T-
shirt, then Aditi gets bangles. If Abhay does not get shoes or Aditi gets bangles, the mother will be happy. Which of the
following is TRUE?
cmi2017 logical-reasoning
Akash, Bharani, Chetan and Deepa are invited to a party. If Bharani and Chetan attend, then Deepa will attend too. If
Bharani does not attend, then Akash will not attend. If Deepa does not attend, which of the following is true?
A. Chetan does not attend B. Akash does not attend
C. either (A) or (B) D. none of the above
cmi2018 logical-reasoning
In a running race, Geetha finishes ahead of Shalini and Vani finishes after Aparna. Divya finishes ahead of Aparna.
Which of the following is a minimal set of additional information that can determine the winner?
A. Geetha finishes ahead of Divya and B. Aparna finishes ahead of Shalini.
Vani finishes ahead of Shalini.
C. Divya finishes ahead of Geetha. D. None of the above.
cmi2018 logical-reasoning
A student requests a recommendation letter from a professor. The professor gives three sealed envelopes. Each
envelope contains either a good recommendation letter or a bad recommendation letter.
Let there be a pile of chips in the center of a table. Suppose there are two players who could alternately remove
one, two or three chips from the pile. At least one chip must be removed, but no more than three chips can be removed
in a single move. The player that removes the last chip wins. Does the first player (the player who starts playing the game) have
a winning strategy in this game, that is, whatever moves his opponent makes, he can always make his moves in a certain way
ensuring his win? Justify your answer.
isi2018-pcb-a general-aptitude numerical-ability logical-reasoning descriptive
The medians and of the triangle with vertices , and are mutually perpendicular if
A. B. C. D.
isi2015-dcg numerical-ability geometry triangles median
A. B. C. D.
isi2015-mma numerical-ability geometry median non-gate
If are positive real variables whose sum is a constant , then the minimum value of is
A. B.
C. D. None of the above
isi2015-mma numerical-ability number-system minimum-value non-gate
The symbol reads as "divides", and as "does not divide". For instance, and are both true. Consider the
following statements.
A. B. C. D. None of these
isi2015-dcg numerical-ability number-system
A.
B.
C.
D.
A. B.
C. D. none of the above
isi2015-mma number-system non-gate
A. B. C. D.
isi2016-dcg numerical-ability number-system
A. B. C. D. None of these
isi2016-dcg numerical-ability number-system
Suppose there are positive real numbers such that their sum is 20 and the product is strictly greater than 1. What is
the maximum possible value of n?
A. 18 B. 19 C. 20 D. 21
A. B. C. D.
isi2016-mmamma numerical-ability number-system
A. B. C. D.
isi2016-mmamma numerical-ability number-system
Let and be real numbers such that and . Prove that for all positive
integers .
isi2017-pcb-a numerical-ability number-system descriptive
The number of parallelograms that can be formed from a set of four parallel lines intersecting another set of three
parallel lines is
A. B. C. D.
isi2018-dcg numerical-ability number-system geometry parallelograms
In a certain town, families own a car, own a phone, own neither a car nor a phone and families
own both a car and a phone. Consider the following statements in this regard:
A basket of fruit is being arranged out of apples, bananas, and oranges. What is the smallest number of pieces of fruit
that should be put in the basket in order to guarantee that either there are at least apples or at least bananas or at
least oranges?
A. B. C. D.
cmi2012 numerical-ability pigeonhole-principle
There are students in a class. The students have formed committees. Each committee consists of more than half of
the students. Show that there is at least one student who is a member of more than half of the committees.
cmi2014 descriptive numerical-ability pigeonhole-principle
A group of boys plucked a total of apples. Prove that two of those boys plucked the same number of apples.
descriptive isi2012 numerical-ability pigeonhole-principle
Prove that in any sequence of integers, there will always be a subsequence of consecutive elements in the
sequence, whose sum is divisible by .
descriptive isi2015-pcb-a numerical-ability pigeonhole-principle
A. B. C. D.
isi2015-mma numerical-ability number-system polynomial roots non-gate
Let and be the roots of the quadratic equation , and and be the roots of the quadratic
equation . If and are in then equals
A. B. C. D.
isi2014-dcg quadratic-equations
The conditions on , and under which the roots of the quadratic equation and
, are unequal magnitude but of the opposite signs, are the following:
A. and have the same sign while has the opposite sign.
B. and have the same sign while has the opposite sign; or and have the same sign while has the opposite sign.
C. and have the same sign.
D. , and have the same sign.
A. B.
C. D.
isi2014-dcg numerical-ability geometry quadratic-equations
A. B. C. D. infinitely many
isi2015-mma numerical-ability quadratic-equations trigonometry
Two opposite vertices of a rectangle are and while the other two vertices lie on the straight line
. Then the value of is
A. B. C. D.
isi2014-dcg numerical-ability geometry rectangles lines
A. B. C. D.
isi2015-dcg numerical-ability number-system remainder-theorem
Let be the – digit number of which all the digits are equal to . Then the number is,
A. divisible by but not divisible by B. divisible by but not divisible by
C. divisible by D. None of the above
isi2015-dcg numerical-ability number-system remainder-theorem
The number of positive integers which are less than or equal to and are divisible by none of , and equals
A. B. C. D.
isi2015-mma numerical-ability number-system remainder-theorem
Let be the -digit number of which all the digits are equal to Then the number is ,
A. divisible by but not divisible by B. divisible by but not divisible by
C. divisible by D. None of the above
isi2016-dcg numerical-ability number-system remainder-theorem
A. B. C. D.
isi2016-dcg numerical-ability number-system remainder-theorem
A. B. C. D.
isi2016-dcg numerical-ability number-system remainder-theorem
Suppose a 6 digit number is formed by rearranging the digits of the number 123456. If is divisible by 5, then the
set of all possible remainders when is divided by 45 is
1.
2.
3.
4.
Consider the equation where and are all real and positive. State which of the
following statements is always correct.
A. B. C. D.
isi2014-dcg numerical-ability trigonometry roots
If and be the roots of the equation , then the equation with roots and is
A. B. C. D.
isi2015-dcg numerical-ability quadratic-equations roots
If one root of a quadratic equation be equal to the power of the other, then
A. B.
C. D.
isi2015-dcg numerical-ability quadratic-equations roots
A. B. C. D.
isi2015-dcg numerical-ability quadratic-equations roots
If and be the roots of the equation then the equation with roots and is
A. B. C. D. None of these
isi2016-dcg numerical-ability quadratic-equations roots
A. B. C. D.
isi2016-dcg numerical-ability quadratic-equations roots
If one root of a quadratic equation be equal to the n th power of the other, then
1.
2.
3.
4.
The condition that ensures that the roots of the equation are in H.P. is
A. B.
C. D.
isi2016-dcg numerical-ability quadratic-equations roots
A. B. C. D.
isi2016-dcg numerical-ability quadratic-equations roots
Suppose is a real number for which all the roots of the equation are real. Then
A. B. C. D.
isi2016-mmamma numerical-ability quadratic-equations roots
A. B. C. D.
isi2016-mmamma trigonometry quadratic-equations roots
A. B. C. D.
isi2017-dcg numerical-ability quadratic-equations roots
A. B. C. D.
isi2018-dcg numerical-ability polynomials roots
A. B. C. D.
isi2015-dcg numerical-ability sequence-series
A. B. C. D.
isi2016-dcg numerical-ability sequence-series
In the passing out batch, students know Java, know Python and know C++. Of these, know both Java and
Python, know both Python and C++ and know both Java and C++ and know all three languages. If there are
students in the class, how many know none of these three languages?
A. B. C. D.
cmi2013 numerical-ability sets
Consider a circle with centre at origin and radius . A square is inscribed in the circle whose sides are parallel to the
an axes. The coordinates of one of the vertices of this square are
A. B. C. D.
isi2014-dcg numerical-ability geometry circle squares
Four squares of sides cm each are cut off from the four corners of a square metal sheet having side cm. The
residual sheet is then folded into an open box which is then filled with a liquid costing Rs. with . The value of
for which the cost of filling the box completely with the liquid is maximized, is
A. B. C. D.
isi2015-dcg numerical-ability geometry squares
Find the value of , where the summation is over all integers and such that .
isi2013 numerical-ability summation numerical-answers
A. B. C. D. non-existent
isi2014-dcg numerical-ability summation
The sum is
A. B. C. D.
isi2014-dcg numerical-ability summation non-gate
A. B. C. D. None of these
isi2015-dcg numerical-ability summation
A. B. C. D. None of these
isi2015-dcg numerical-ability summation
Let . Then,
A. B.
C. D. none of the above holds
isi2015-mma numerical-ability summation
A. B. C. D. None of these
isi2016-dcg numerical-ability summation
The value of is
A. B. C. D.
isi2017-dcg numerical-ability summation
is
A. B.
C. D. not a convergent series
isi2018-dcg numerical-ability sequence-series summation
A. B. C. D.
isi2018-mma engineering-mathematics linear-algebra system-of-equations
A. B. C. D. All of these
isi2015-dcg numerical-ability geometry triangles
If are the sides of a triangle such that , then (where are the angles
opposite to the sides of respectively) is
A. B. C. D.
isi2017-dcg numerical-ability geometry triangles
A. B. C. D.
isi2015-dcg numerical-ability trigonometry
If in a , , then lies in
A. B.
C. D.
isi2015-dcg numerical-ability geometry trigonometry
The value of is
A. B. C. D. None of these
isi2015-dcg numerical-ability trigonometry
A. B. C. D. more than
isi2015-dcg numerical-ability trigonometry
A. B. C. D.
isi2015-dcg numerical-ability trigonometry
If then equals
A. B. or
C. or D. None of these
isi2015-dcg numerical-ability trigonometry
The value of is
A. B. C. D. None of these
isi2015-dcg numerical-ability trigonometry
If , then equals
A. B. C. D. None of these
isi2015-dcg numerical-ability trigonometry
Let . Then is
A. B. C. D.
isi2015-mma numerical-ability trigonometry non-gate
A. B. C. D.
isi2017-dcg numerical-ability trigonometry
If , then is equal to
A. B. C. D. none of these
isi2017-dcg numerical-ability trigonometry
A. B. C. D. none of these
isi2017-dcg numerical-ability trigonometry geometry
A. B. C. D.
isi2018-dcg numerical-ability number-system unit-digit
Water pours into a rectangular tank of depth which was initially half-filled. The rate at which the height of
the water rises is inversely proportional to the height of the water at that instant. If the height of the water after an hour
is observed to be , how much time, in hours, will be required to fill up the tank?
A. B. C. D.
isi2016-dcg numerical-ability work-time
If is the area of the region bounded by the curve and the portion of the -axis between and , then
equals
A. B. C. D.
isi2014-dcg calculus definite-integrals area
The area under the curve in the positive quadrant and bounded by the line is equal to
A. B. C. D.
isi2014-dcg curves area
The volume of the solid, generated by revolving about the horizontal line the region bounded by ,
and , is
A. B.
C. D.
isi2016-dcg area curves non-gate
A. B. D.
C.
isi2016-dcg curves area non-gate
A. B. C. D.
isi2016-dcg curves area non-gate
The area (in square unit) of the portion enclosed by the curve and the axes of reference is
A. B. C. D.
isi2017-dcg non-gate geometry area
The area lying in the first quadrant and bounded by the circle and lines is given by
A. B. C. D.
isi2017-mmamma circle area non-gate descriptive
The area of the region bounded by the curves and -axis in the first quadrant is
A. B. C. D.
isi2018-dcg curves area non-gate
Find the centroid of the triangle whose sides are given by the following equations:
A. B. C. D.
isi2016-mmamma triangles centroid non-gate
A. B.
C. D. none of the above
isi2015-mma cubes non-gate
A box with a square base of length and height has an open top and its volume is cubic centimetres, as shown in
the figure below. The values of and that minimize the surface area of the box are
A. cm cm B. cm cm
C. cm cm D. none of these.
isi2018-dcg cubes non-gate
isi2014-dcg curves
Consider the family of curves in the plane given by , where is a real parameter. Let be the family of
curves having the following property: every member of intersect each member of orthogonally. Then is given
by
A. B. C. D.
isi2015-mma curves
Let the position of a particle in three dimensional space at time be . Then the length of the path
traversed by the particle between the times and is
A. B. C. D.
isi2015-mma curves non-gate
If the curve passes through the point when , then the equation of the curve in rectangular co-ordinates is
A. B.
C. D.
isi2015-mma trigonometry curves non-gate
In an ellipse, the distance between its foci is and its minor axis is Then its eccentricity is
A. B. C. D.
If and are the foci of the ellipse and is a point on the ellipse, then the perimeter of the triangle
is
A. B.
C. D. dependent on the coordinates of
isi2019-mma non-gate geometry
A. B. C. D.
isi2019-mma non-gate geometry
If the distance between the foci of a hyperbola is and its eccentricity is then the equation of the hyperbola is
A. B. C. D.
isi2016-dcg hyperbola curves non-gate
If then is
A. B. C. D. None of these
isi2016-dcg trigonometry inverse non-gate
The value of is
A. B. C. D.
isi2018-dcg trigonometry inverse non-gate
If the tangent at the point with coordinates on the curve is perpendicular to the straight line
, then
A. B.
C. D. no such point exists
isi2015-mma lines non-gate
A. B. C. D.
isi2015-mma lines non-gate
The length of the chord on the straight line intercepted by the circle passing through the points
and is
A. B. C. D.
isi2016-dcg lines non-gate
Let be the point of intersection of the lines and . Let be the point of reflection of the point
with respect to the -axis. Then the equation of the straight line through that produces a right angled triangle
with , and lies on the line , is
A. B. C. D.
isi2018-dcg lines triangles non-gate
There are three circles of equal diameter ( units each) as shown in the figure below. The straight line passes
through the centres of all the three circles. The straight line is a tangent to the third circle at and cuts the second
circle at the points and as shown in the figure.Then the length of the line segment is
Suppose the circle with equation cuts the parabola at four distinct
points. If denotes the sum of the ordinates of these four points, then the set of possible values of is
A. B. C. D.
isi2015-mma circle parabola non-gate
A straight line touches the circle and also the parabola Then the equation of the straight
line is
A. B. C. D.
isi2016-dcg lines parabola non-gate
Four tangents are drawn to the ellipse at the ends of its latera recta. The area of the quadrilateral so
formed is
A. B. C. D.
isi2016-dcg ellipses quadrilateral area non-gate
If a square of side and an equilateral triangle of side are inscribed in a circle then equals
A. B. C. D.
isi2015-mma triangles non-gate
The medians and of the triangle with vertices and are mutually perpendicular if
A. B. C. D.
isi2016-dcg triangles non-gate
If in a then lies in
A. B.
C. D.
isi2016-dcg geometry triangles trigonometry non-gate
A. B. C. D. All of these
isi2016-dcg triangles non-gate
A. B. C. D.
isi2018-dcg triangles non-gate
Let be the set of distinct divisors of a positive integer ( includes 1 and ). Then show that
.
hint:
If and then
A. B. C. D.
isi2016-dcg trigonometry non-gate
The value of is
A. B. C. D. None of these
isi2016-dcg trigonometry non-gate
A. B. C. D. more than
isi2016-dcg trigonometry non-gate
A. B. C. D.
isi2016-dcg trigonometry non-gate
If then equals
A. B. or
C. or D. None of these
isi2016-dcg trigonometry non-gate
The value of is
A. B. C. D. None of these
isi2016-dcg trigonometry non-gate
A. B.
C. D.
isi2018-dcg trigonometry non-gate
A. B. C. D.
isi2015-mma complex-number non-gate
A.
B.
C. the expression may not always be a real number and hence maximum does not make sense
D. none of the above
A. B. C. D.
isi2016-mmamma complex-number non-gate
,
where . Then which of the following statements is true?
isi2019-mma complex-number
Let be a sequence of non-negative real numbers such that the series is convergent. If is a real number
such that the series diverges, then
A. B.
C. D.
isi2016-mmamma sequence-series convergence-divergence summation non-gate
Further, let and be the tangents to these curves and , respectively, at the point . Then the angle between these
two tangents, and , is
A. B. C. D.
isi2014-dcg curves
If is a solution of
A. B.
C. D.
isi2015-mma differential-equation non-gate
A. as
B. as
C. exists and is finite
D. none of the above is true
The differential equation of the system of circles touching the -axis at the origin is
A. B.
C. D.
isi2015-mma differential-equation non-gate
A. B. C. D.
isi2015-mma differential-equation non-gate
A. B.
C. D.
isi2018-mma non-gate differential-equation
A. B.
C. D.
A.
B.
C.
D.
A. B. C. D.
isi2016-mma differentiation non-gate
represents
A. A pair of circles having the same B. A circle and an ellipse
radius
C. A pair of circles having different radii D. none of the above
isi2014-dcg circle ellipses
In an ellipse, the distance between its foci is and its minor axis is . hen its eccentricity is
A. B. C. D.
isi2015-dcg geometry ellipses
A. B.
C. D. none of these
isi2015-mma differential-equation ellipses non-gate
satisfies
A. for every
B. for every
C. if and if
D. if and if
A. B. C. D.
isi2015-mma differential-equation general-solution non-gate
If the distance between the foci of a hyperbola is and its eccentricity is , then the equation of the hyperbola is
A. B. C. D.
isi2015-dcg geometry hyperbola
Let
Then
A. B.
C. D.
isi2015-mma inequality non-gate
Let be a positive real number and be a positive integer. Which of the following inequalities is true?
A. B.
C. D. none of the above
The smallest positive number for which the inequality holds for all and is
A.
B.
C.
D. there is no smallest positive value of ; any will make the inequality hold.
If a focal chord of the parabola cuts it at two distinct points and , then
A. B. C. D.
isi2014-dcg parabola non-gate
A straight line touches the circle and also the parabola . Then the equation of the straight line
is
A. B. C. D.
isi2015-dcg geometry parabola
Let
Then is
A. not continuous at
B. continuous at but does not have first order partial derivatives
C. continuous at and has first order partial derivatives, but not differentiable at
D. differentiable at
A. B. C. D.
isi2015-mma partial-derivatives non-gate
Let
Then
Four tangents are drawn to the ellipse at the ends of its latera recta. The area of the quadrilateral so
formed is
A. B. C. D.
isi2015-dcg geometry ellipses quadrilateral
A. B.
C. D.
isi2015-mma summation non-gate
Then
The value of – is
A. B. C. D.
isi2019-mma non-gate trignometry
is
A. B. C. D.
isi2019-mma non-gate trignometry
is equal to
A. B.
C. D.
isi2019-mma non-gate trignometry
An operating system contains three resource classes. The number of resource units in these classes are
respectively. The current resource allocation state is shown below:
g(){
z = w;
z = z + 2*w;
print(z);
}
We start with set to and execute and in parallel-that is, at each step we either execute one statement from or
one statement from . What is the set of possible values printed by
A.
B.
C.
D.
f(){ g(){
x = x+1; y = y+1;
x = y*y; y = x*x;
x = x-y; y = y-x;
} }
Suppose we start with initial values of for and for and then execute and in parallel-that is, at each step we either
execute one statement from or one statement from Which of the following is not a possible final state?
A. B.
C. D.
cmi2011 operating-system concurrency
Consider the following extract from a program, written in a C-like language, that computes the transpose of a matrix.
for (i=0; i<N; i++)
for (j=0; j<N; j++)
B[i,j]=A[i,j];
and are matrices with floating point entries that are stored in memory in row-major order as shown in the
example below:
A[N-
A[0,N-
A[0,0] A[0,1] A[0,2] ... A[1,0] A[1,1] ... 1,N-
1]
1]
This program runs under an OS that uses demand-paging. Considering memory references to the matrix entries, and
using the information given below, compute the page fault rate for the matrix transposition code given above.
In a Buddy memory allocation system, a process is allocated an amount of memory whose size is the smallest power of
that is greater than or equal to the amount requested by the process.
A system using buddy memory allocation has memory. For a given sequence of nine processes, their respective memory
requirements in are
i. Illustrate with an allocation diagram to justify whether all the requests, in the given order, can be complied with. Assume
that memory once allocated to a process is no longer available during the entire span of the above sequence.
ii. Calculate the total memory wasted due to fragmentation in your memory allocation by the above scheme.
Consider a -stage instruction pipeline. The stages and the corresponding stage delays are given below.
Assume that there is no delay between two consecutive stages. Consider a processor with a branch prediction mechanism by
which it is always able to correctly predict the direction of the branch at the stage itself, without executing the branch
instruction.A program consisting of a sequence of instructions , is executed in the pipeline, where the
instruction is the only branch instruction and its branch target is the instruction .
a. Draw the pipeline diagram over time showing how the instructions flow through the pipeline stages in this
processor.
b. Calculate the time needed to execute the program.
Consider a uniprocessor system with four processes having the following arrival and burst times:
i. Calculate the average waiting time and also the average turnaround time if shortest (remaining) job first (SJF) scheduling
policy is used with pre-emption. Assume that the context switching time is zero. Note that in SJF, if at any point there is a
tie, then the job that arrived earlier will get priority.
ii. Now consider the continuous arrival of new jobs at times following , with CPU burst times of units
each. In this case, what will be the turnaround time of ? Justify your answer
Consider scheduling processes which are created in this order at almost the same instant. Assume
that all processes have exactly one CPU burst of duration units (and no I/O bursts). Compute the average waiting
time and average turn-around time if the scheduling policy is:
i. FCFS
ii. RR with time slice units .
Assume that it takes units of time to switch from one running process to another and units of time to switch from a
terminated process to a running process.
Suppose Steps I and III together take units of time. The scheduling algorithm takes units of time, where is the
number of ready-to-run processes. The scheduling policy is round-robin with a time slice of ms. Compute the CPU
utilization for the following scenario: processes become ready at almost the same instant in the order each
process requires exactly one CPU burst of ms and no I/O burst.
f(){ g( ) {
x = x-50; a = a+x;
y = y+50; a = a+y;
} }
Suppose we start with initial values of for for , and for , and then execute and in parallel - that is, at each
step we either execute one statement from or one statement from . Which of the following is not a possible final value of ?
A. B. C. D.
cmi2012 operating-system process-synchronization
One of your classmates has suggested the following modified version of a standard scheme for solving the -process
Show that the above scheme does not guarantee mutual exclusion by constructing an appropriate interleaved sequence of
instructions executed by two processes and .
Modify the above scheme so that it becomes a correct solution to the -process CSP.
Two processes and have a common shared variable count. While increments it, decrements it. Given that
is a register, the corresponding assembly language codes are:
count-
count++
-
MOV MOV
ADD #1 SUB #1
MOV MOV
Give an example to justify whether a race condition may occur if and are executed simultaneously.
Suppose that an operating system provides two functions, which puts the calling process on the blocked queue,
and which moves process to the runnable queue if it is currently on the blocked queue (otherwise, its
behaviour is unpredictable). Consider two processes and running the code given below. The intended behaviour of the
code is to have and run forever, alternately printing their names on the screen.
Suppose the currently available count of resources is given by . What is the minimum value of for which this
is a safe state? Justify your answer.
descriptive isi2013-pcb-cs operating-system resource-allocation
Consider a paging system with the page table stored in memory. If a memory reference takes nanoseconds, how
long does a paged memory reference take? If we add a Translation Lookaside Buffer (TLB) and percent of all page-
table references are TLB hits, what will then be the effective memory reference time? Assume that finding a page-table entry in
the TLB takes nanoseconds, if the entry is present.
isi2017-pcb-cs operating-system paging tlb descriptive
You are given a array of size . Your are told that comprises three consecutive runs - first a run of 's, then a run
of 's and finally a run of 's. Moreover, you are provided an index of such that . Design an time
algorithm to determine the number of 's (i.e., length of the second run) in .
data-structures arrays isi2015
Let be an AVL tree for storing a set of integers. Insertions and deletions in can hence be done in time.
Given two integers and , you have to output nab, the number of integers in T whose value lies within
in time.
i. For this purpose, what modification of and its insertion algorithm are required?
ii. Give a pseudo-code for computing .
When a user submits a query, a search engine does the following. For every webpage that has been visited by the search
engine, it computes a score indicating how relevant that page is to the query. Finally, it reports the pages with the top k
scores on the screen, for a number specified by the user. A good data structure for accumulating the scores and ranking them
is:
Suppose we constructed the binary search tree shown below by starting with an empty tree and inserting one element at
a time from an input sequence, without any rotations or other manipulations. Which of the following assertions about
the order of elements in the input sequence be true?
A. came after and came after . B. came before and came after .
C. came after and came before D. came before and came before
. .
cmi2017 data-structures binary-search-tree
Let be a rooted binary tree of nodes. Two nodes of are said to be a sibling pair if they are the children of the
same parent. For example, given the binary tree in Figure 1, the sibling pairs are (2, 3) and (6, 7). Design an time
algorithm that prints all the sibling pairs of .
Let and be two complete binary trees that are heaps as well. Assume and are max-heaps, each of size .
Design and analyze an efficient algorithm to merge and to a new max-heap of size .
descriptive isi2014-pcb-cs algorithms binary-tree heap
A finite sequence of bits is represented as a list with values from the set {0,1}—for example, [0,1,0], [1,0,1,1], . . . .
[ ] denotes the empty list, and [b] is the list consisting of one bit b. The function returns the length (number
of bits) in the list . For a nonempty list , returns the first element of l, and tail(l) returns the list obtained by removing
the first element from l. The operator ++ denotes list concatenation.
For example:
head([0,1,0]) = 0, tail([0,1,0]) = [1,0],
head([1]) = 1, tail([1]) = [ ], and
[0,1,0]++[1] = [0,1,0,1].
Consider the following functions:
takes as input two bits and returns a bit.
op(a,b)
if (a = b) return(0)
else return(1)
endif
A finite sequence of bits is represented as a list with values from the set —for example,
denotes the empty list, and is the list consisting of one bit . For a nonempty list
returns the first element of , and returns the list obtained by removing the first element from denotes
a new list formed by adding a at the head of list .
For example:
,
and
.
Consider the following functions:
takes takes as input two bits and returns a bit.
xor(a,b)
if (a == b) return(0)
else return(1)
endif
We use the notation to denote a list of integers. denotes the empty list, and is the list consisting
of one integer . For a nonempty list l, returns the first element of , and returns the list obtained by
removing the first element from . The function returns the length of a list. For example,
.
.
.
We use or, and and not to denote the usual operations on boolean values and .
Consider the following functions, each of which takes a list of integers as input and returns a boolean value.
f(l)
if (length(l) < 2) then return(true)
else return(g(l) or h(l))
g(l)
if (length(l) < 2) then return(true)
else
if (head(l) < head(tail(l)) then return h(tail(l))
else return(false)
h(l)
if (length(l) < 2) then return(true)
else
if (head(l) > head(tail(l)) then return g(tail(l))
else return(false)
When does return the value true for an input ? Explain your answer.
Consider a linked list containing nodes, where each node contains two pointers and . For each node,
points to the next node of the list. Describe how pointer should be set up for each node so that you will be
able to locate the -th node from the start node in the list traversing no more than nodes.
A First In First Out queue is a data structure supporting the operation Enque, Deque, Print, Enque(x) adds the item
to the tail of the queue. Deque removes the element at the head of the queue and returns its value. Print prints the head
of the queue.
A. You are given a queue containing elements. Using a single additional temporary variable write down a sequence of
statements each being one of Enque, Deque, Print so that the output of the program results in the elements of the queue
being printed in reverse order.
B. If the queue had elements to begin with, how many statements would you need to print the queue in reverse order?
Suppose that the figure to the right is a binary search tree. The letters indicate the names of the nodes, not the values
that are stored. What is the predecessor node, in terms of value, of the root node
A. B. C. D.
cmi2019 data-structures trees binary-search-tree
i. Consider the array that represents a heap. Draw the heap after removing the element
ii. List all the distinct integer keys such that, when is inserted in the Binary Search Tree of Figure its height increases.
Note that you are not allowed to insert an already existing key again. Justify your answer.
In the code fragment given below, start and end are integer values and prime(x) is a function that returns true if x is a
prime number and false otherwise.
i:=0; j:=0; k:=0;
from (m := start;
m <= end;
m := m+1){
if (prime(m)){
i := i+m;
k := k-m;
}else{
j :=j-m;
k := k+m;
}
}
What does the following function compute in terms of and , for integer value of and Note that
denotes the quotient(integer part) of for integers and . For instance is
function foo(n,d){
x := 0;
while (n >= 1) {
x := x+1;
n := n//d;
}
return(x);
}
cmi2018 identify-function
A. B.
Which of the following relationships holds in general between the of a variable and the of a variable (in
a language like C or Java)?
What does the following function compute in terms of and , for integer values of ? Note that the operation
denotes floating point division, even if the arguments are both integers.
function foo(n,d){
if (d == 0){
return 1;
}else{
if (d < 0){
return foo(n,d+1)/n;
}else{
return n*foo(n,d-1);
}}}
f(){ g(){
w=5; z=w+1;
w=2*z+2; z=3*z-w;
} print(z);
}
We start with and set to and execute and in parallel—that is, at each step we either execute one statement from
or one statement from . Which of the following is not a possible value printed by ?
A. B. C. D.
cmi2017 programming output
What will be the output of the following C program? If you think it will give a runtime error, you need to mention it. In
either case, your answer must include proper justifications without which no credit will be given.
#include<stdio.h>
main()
{
unsigned char i, j, a[]={1, 2, 3, 4, 5};
int n;
i=j=n=5;
while(i-- !=0) n+=a[i];
while(j++ !=0) n+=2;
printf("i=%d, j=%d, n=%d\n", i, j, n);
while(j-- !=0) a[0]+=n;
printf("j=%d, a[0]=%d\n", j, a[0]);
}
Trace the execution of the code inside the for loop indexed by i when i = 35.
What will be the output of the program if t = 130 (instead of 16)? Justify.
Write a complete ANSI C code using recursion to calculate the of the digits of an integer number (i) consisting
of maximum 5 digits. For example, (1) = if , then your program should print , (2) if , then
.
isi2017-pcb-cs programming programming-in-c descriptive
Write a program to fins all permutations of a string (having at most 6 characters). For example, a string of
characters like has 6 possible permutations:
isi2017-pcb-cs programming programming-in-c descriptive
How many asterisks in terms of will be printed by the following C function, when called as where
Justify your answer.
Assume that bytes are used to store an integer in C and is such that can be stored in bytes.
void count(int n){
printf("*");
if(n>1){
count(n/3);
count(n/3);
count(n/3);
}
}
For a regular expression , let be the language generated by . If is an expression that has no Kleene star
occurring in it, which of the following is true about in general?
A. is empty B. is finite
C. Complement of is empty D. B o t h and its complement are
infinite
cmi2016 regular-languages regular-expressions closure-property
Let . Let be arbitrary subsets of . We define the following operations on such sets:
Is it true that for all choices of and ? If yes, give a proof. If not,
provide suitable and for which this equation fails.
Let and
The language is:
A. regular, but not context-free B. context-free, but not regular
C. both regular and context-free D. neither regular nor context-free
cmi2019 regular-languages context-free-languages closure-property
Let us assume a binary alphabet Two words are said to be conjugates if there exist
such that and Prove that and are conjugates if and only if there exists
such that
cmi2019 theory-of-computation conjugates strings
Let the valid moves along a staircase be (one step up) and (one step down). For example, the string
represents the sequence of moves as two steps up, then one step down, and then again one step up. Suppose a person is
initially at the base of the staircase. A string denoting a sequence of steps that takes the person below the base is invalid. For
example, the sequence is invalid. Let be the language defined by the set of valid strings which represent
scenarios in which the person never returns to the base of the staircase after the final step.
Q C4 b) If it is known that the language L 1= is not a context free language (CFL). Now consider the
language L2= . We can prove that L 2 is not CFL by converting L 2 into L 1 by applying two operation,
both know to be closed on CFLs. What are two operation you will use for this construction.
You have a laptop with a fixed amount of memory and hard disk space and no external storage devices connected (CD,
USB drives, . . . ). Which of the following is the most accurate formal model of your laptop?
A. Turing machine B. Linear bounded automaton
C. Pushdown automaton D. Finite state automaton
cmi2011 theory-of-computation context-sensitive non-gate
Indicate whether the following statements are true or false, providing a short explanation to substantiate your answers.
i. A DFA with states must accept at least one string of length greater than .
Indicate whether the following statement is true or false, providing a short explanation to substantiate your answers.
A DFA that has states and accepts an infinite language must accept at least one string such that , where
denotes the length of .
descriptive cmi2010 finite-automata
Indicate whether the following statement is true or false, providing a short explanation to substantiate your answers.
If a language is accepted by an NFA with states then there is a DFA with no more than states accepting .
descriptive cmi2010 finite-automata
a. Construct a finite automaton that accepts the set of all strings such that
.
A. Construct a finite automaton that accepts exactly those strings such that
.
For a binary string define to be the value of interpreted as a binary number, where is
the most significant bit. More formally, is given by
Design a finite automaton that accepts exactly the set of binary strings such that is divisible by either 4 or 5.
For a string over the alphabet , define to be the value of interpreted as a ternary
number, where is the most significant digit. More formally, is given by
Design a finite automaton that accepts exactly the set of strings such that is divisible by 4.
) We consider an operation that takes as input a string and erases all occurrences of the pattern from
. Formally, it can be defined as follows:
Erase (w):=
For a language , we define to be the set of strings obtained by applying the operation to each string in
:=
Let . Given words , we say that extends if is of the form for some . Given
a fixed word , we are interested in identifying whether a finite state automaton accepts some word that extends .
Describe an algorithm that takes as input a finite state automaton (DFA or NFA) over and a word and
reports “Yes” if some word in the language of extends and “No” if no word in the language of extends .
cmi2017 theory-of-computation finite-automata descriptive
Consider an alphabet Design a deterministic finite-state automaton (DFA) that accepts all strings in
in which the digits appear in non-decreasing sequence, from left to right. For example, the string and would
be accepted, whereas will not be accepted.
isi2017-pcb-cs theory-of-computation finite-automata
Consider the set of all words over the alphabet where the number of ’s is not divisible by 2 or 7 and no
appears after a . This language is:
A. regular B. not known to be regular
C. context-free but not regular D. recursively enumerable but not
context-free
cmi2013 theory-of-computation identify-class-language
Let . For a word let denote the number of 's in and let denote the number of 's
in . Consider the following language:
Consider an alphabet
Let be the language given by the regular expression and let be the language
Define
Design a context free grammar for the language consisting of all strings over that are not the form for any
string
pushdown-automata theory-of-computation isi2015
We have constructed a polynomial time reduction from problem A to problem B. Which of the following is not a
possible scenario?
a. b. c. d.
cmi2017 theory-of-computation regular-expressions
A. B. C. D.
Recall that a typical URL has the following form. It starts with a protocol specifier, followed by a colon (:) and two
forward slashes (/), followed by a hostname and a domain name. This is followed by an optional path specifier. Some
example URLs are given below.
{http://www.isical.ac.in/}
{http://www.isical.ac.in/deanoffice/results.html}
{http://www.isical.ac.in/deanoffice/results/jrf/}
Assuming that A-Z, a-z, and are the only characters that can be used in a host / domain / file / directory name, write a
regular expression for URLs.
descriptive isi2011-pcb-cs regular-expressions
Write a regular expression for all strings of ’s and ’s in which the total number of ’s to the right of each is even.
Justify your answer.
descriptive isi2013-pcb-cs theory-of-computation regular-expressions
i. Let L be a regular language over . Define the reverse of the language to be the language
, where denotes the string in reverse. For example
. Show that is regular.
ii. Let , contains an odd number of and as a substring Construct a regular expression for
the language .
Let L be a language accepted by a finite automaton. Let be some subset of , containing 2011
strings. Which of the following statements is true? Justify your answer.
A. is always regular.
B. is regular only when —that is, when and do not have any common string.
C. is never regular.
D. is regular only if contains (the empty string).
Let Suppose is regular and there is a non-deterministic automaton which recognizes . Define the
reverse of the language to be the language - here denotes the
string read in reverse. For example .
i. Show that is regular, How can you use to construct an automata to recognize .
Let Suppose is regular and there is a non-deterministic automaton which recognizes . Define the
reverse of the language to be the language - here denotes the
string read in reverse. For example .
i. Show that the language where is regular. How can you use to
One of these operations necessarily leads to a regular language and the other may not. Identify which is which. For the regular
operation, give a proof that it is regular. For the non-regular operation, give an example of an
such that applying the operation on it results in a non-regular language.
Let and be languages over an alphabet such that . Which of the following is true:
Let be the set of strings over containing an unequal number of s and s. Prove that
i. is not regular.
ii. is regular.
Prove that the languages and constructed above are nonregular and is regular.
descriptive isi2015-pcb-cs theory-of-computation regular-languages
Design a Turing machine that recognizes the unary language consisting of all strings of 0’s whose length is a power of
2, i.e.,