One of the diagonals of a rhombus is double the other diagonal. Its area is 36 sq.cm. Find the largest diagonal length?
6
8
10
12
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The simple interest on a sum of money for 3 years at 623% per annum is $6750. What will be the compound interest on the same sum at the same rate for the same period, compounded annually?

Rs 8125

Rs 6655

Rs 7210

None of these

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Find the odd man out from the given series

2, 6, 12, 20, 32, 42, 56, 72

12

20

32

42

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The sides of a rectangle are in the ratio 4:5 and its area is 2000 sq.m. Find the perimeter of the rectangle?

158m

150m

400m

180m

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The probability that Harshini will get married within 365 days is ‘a’ and the probability that her colleague Sony gets married within 365 days is ‘b’. Find the probability that only one of the two gets married at the end of 365 days.

a+b-2ab

a-b+2ab

a+b-ab

a-b+ab

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Ten years ago, John was half of Akbar’s age. If the ratio of their present ages is 3:4, what will be the total percentage?
25
35
30
45
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the deductions follows?

Statement 1: Some toys are Cows.

Statement 2: Some toys are Rabbits.

Deduction 1: All toys are Cows and Rabbits.

Deduction 2: Some cows are Rabbits

Only deduction 1 follows
Only deduction 2 follows
Both deductions follows
None of the deductions follows
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Caterpillar: Butterfly :: __?__: Cockroach

Maggot

Nymph

Wriggler

Workers

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

The process of reshaping something is known as _________.

sculpture

art

moulding

image processing.

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What does the underlined phrase mean?

The newspaper sale was not good, so the manager took the bull by the horns and replaced the editor.

Make the situation worse
Face the problem in a fearless manner

Take decisions by oneself for good
To remove a person from a Job
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Suppose cursor points to a node in a linked list (using the node definition with member functions called data and link). What Boolean expression will be true when the cursor points to the tail node of the list?
(cursor->link( ) == NULL)
(cursor == NULL)
(cursor->data( ) == NULL)
(cursor = cursor->link())
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following graph. If we run breadth first search on this graph starting at any vertex, which one of the following is a possible order for visiting the nodes ?

MNOPQR
NQMPOR
QMNPRO
QMNPOR
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which traversal is the most suitable for deleting all the nodes in a binary tree ? (You can assume the tree to be binary)
Inorder
Preorder
Postorder
Any traversal
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the output of the following program?

#include<stdio.h>

void main()

{int a=3,b=6;

float x=4.5;

if(a*b>x*x)

printf("linkon\n");

else if(a*b>(int)x*x)

printf("lily\n");

else if(a*b>(int)x*(int)x)

printf("logan\n");

}

linkon
logan
lily
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Assume that the operators +, ­, × are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x , +, ­. Find the postfix expression corresponding to the infix expression a + b × c ­ d ^ e ^ f .
abc × + def ^ ^
abc × + de ^ f ^
ab + c × d ­ e ^ f ^
+ a × bc ^ ^ def
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Number of times ‘fan’ will be printed by the following program is?(2 marks)

#include <stdio.h>

int main()

{

int i = 524;

for (; i; i >>= 1)

printf("fan\n",i);

return 0;

}

9
10
11
Code will give compiler error
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

#include<stdio.h>

f1(int b)

{

if(b==0)

return 0;

else

{

printf("a");

f1(b--);

}

}

void main()

{

int a;

a=f1(10);

printf("%d", a);

}

What will be the output of the above program?

a
aaaaaaaaaa
Compiler error
Infinite loop
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What will be the output of the following program?

#include<stdio.h>

void main()

{

char arr[]="\0";

printf("%d",printf("%s",arr));

if(printf("%s\t",arr))

printf("Good\n");

else

printf("Nice\n");

}

0 Good
1 Good
0 Nice
1 Nice
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
There are 2 strings named as X and Y, Find the length of the longest common subsequence(LCS) of the giving below two string X and Y is_______(NAT)

X = bcadsce

Y = csadesg

4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The following Knapsack bag. The Knapsack bag maximum Capacity is 60. Find out the maximum profit for Greedy Knapsack or Fractional Knapsack___? (Upto 1 decimal)

Objects

P

Q

R

S

T

V

W

X

Weights

20

10

15

5

30

4

19

8

Profits

36

25

30

9

30

15

19

18

129.4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
O(n^2)
O(n^4)
Ω(n^3)
Θ(n^4)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?
512
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following min heap tree. The number of element comparisons required to maintain the heap property after deletion of root are __________.

5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following is/are True? [ MSQ]
A complete Binary Tree in a min heap tree if every parent node is minimum compared with its children.
A complete Binary tree is a min heap tree if every parent node is greater than its left child and less than or equal to its right child.
Heap sort is an inplace sorting technique
Heap sort is stable.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

Consider the given below transition table over 𝛴={a,b,c} where q0 is initial state and all are final states.

Consider all the strings accepted by above FA which is ending with “a” and having length less than equal to 2021. The number of strings will be _________.

2021
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following languages L1 and L2

L1=(a+b)*ab

L2=(a+b)*b

Consider a language L3= L1 U L2. The minimal DFA which accepts L3 will have ______number of states.

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following context free grammar G and select the language generated by grammar.

S→ 0S1 | 0A | 1B

A→ 0A | ∈

B→ 1B | ∈

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the language L generated by regular expression R=a*b*. Select the correct regular expression for L(complement).
b*a*
b(a+b)*
b(a+b)*a
a*bb*a(a+b)*
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following options and select the correct option/ options. [MSQ]
Whether a Turing machine accepts empty string is undecidable.
Emptiness problem and membership problem are decidable for Context sensitive languages.
Whether a halting Turing machine rejects empty string is decidable.
Equality problem for DCFL is decidable but subset problems for DCFL is undecidable.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following language L generated by regular expression R=a(a+b)*. Select the regular expression which generates L complement.
b(a+b)*
(a+b)*b
b*(a+b)*
b(a+b)* + ∈
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements and select the correct option/ options. [MSQ]
Every regular language has LL(1) grammar.
Every regular language has LR(0) grammar.
If grammar contains null production then it cannot be LR(0).
Any grammar may have shift-shift conflict while parsing for LR(0) parser.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following SDT which converts infix to prefix.

E→ 𝛃1

E→ T

T→𝛃2

T→F

F→(E)

F→id {print id.lexval ;}

Select the correct entries in place of 𝛃1 and 𝛃2 from the options.

𝛃1={print ‘+’;} E1+T and 𝛃2= {print ‘*’ ;} T1*F
𝛃1={print ‘*’ ;} T1*F and 𝛃2={print ‘+’;} E1+T
𝛃1={print ‘*’;} E1+T and 𝛃2= {print ‘+’ ;} T1*F
𝛃1={print ‘+’ ;} T1*F and 𝛃2={print ‘*’;} E1+T
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following expression R such that

R: a*b + c # d

Here # is one of the operator from set {+, −, *}, where the precedence and associativity of these operators are same as defined in C language. If the CPU with single register is used to evaluate the expression R, then what could be possible value of operator #, if expression need to be evaluated without storing the intermediate value into memory, i.e., without swapping any intermediate value from register into memory and fetching back from memory into register.

# can be any operator from set {+, −, *}.
# can be any operator from set {+, −}.
# can be any operator from set {−, *}.
# can only be operator {+}.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following code segment

Select the correct option/ options. [MSQ]

Variable “u” is live in statement 2 but not live in statement 3.
Variable “w” is not live in statement 3
Variable “w” is live in statement 6.
Variable “u” is not live in statement 1 and variable “v” is not live in statement 5.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following statement(s) is/are CORRECT about the NULL value in relational model?

S1: To fill a column in tuple when the column does not really “exist” for the particular tuple.

S2: To leave columns in a tuple marked as “unknown” when the actual value is unknown.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider 3 transactions T1, T2 and T3 having 2, 3 and 4 operations respectively. The total number of schedules possible for the given three transactions is ___________.
24
288
1260
15120
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following is true about 2-phase locking protocol?

S1: Lock upgradation and degradation are allowed only in the shrinking phase.

S2: 2-phase locking allows lock degradation in shrinking phase.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Given a relation R(MNPQT) and set of FD’s

F1 = {M → TN, P → QM} and

F2 = {M → N, P → Q, P → MT, MN → T}

Which of the following statement is true?

F1 and F2 are not equivalent
F1 and F2 are equivalent
We can’t say
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider the following five processes, with their arrival times and execution times given in milliseconds.

Assuming no context switch overhead the average waiting time using Round‐robin with time slice of 3 ms (assume P1 starts executing first in the beginning) (in ms):

5.1

5.0

5.4

5.6

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following correspond to entry and exit sections of a process Pi in view of Peterson solution to critical section problem.
Entry section:flag[i] = TRUE; turn = j; while (flag[j] && turn == j);

Exit section: flag[i] = TRUE;

Entry section:flag[i] = TRUE; turn = j; while (flag[j] && turn == j);

Exit section: flag[i] = FALSE;

Entry section:flag[i] = TRUE; turn = i; while (flag[j] && turn == j);

Exit section: flag[i] = FALSE;

None of these.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a computer system with a 32-bit logical address and 4KB page size. The system supports up to 512MB of physical memory. How many entries will be there in an inverted page table?
128K
512K
1M
256K
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a parent process that has forked a child process in the program below:

int count = 0;

ret = fork();

if(ret == 0) {

printf("count in child=%d\n", count);

}

else {

count = 1;

}

After the child process is forked, suppose that the parent process is scheduled first, before the child process. Assume that the child process is scheduled for the first time only after the parent completes its execution. Now which of the following statement(s) is/are TRUE ? [MSQ]

The value of the variable count as printed in the child process is 0.
The value of the variable count as printed in the child process is 1.
The value of the variable count as printed in the parent process is 0.
None of the above.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

Consider the information about the following processes :

The CPU utilization using the Shortest Job First (SJF) Scheduling policy is :

100%

86.95%

95.65%

85.71%

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following statements:

S1: In 802.11, each station before transmitting a data frame, the station must send an RTS frame and receive corresponding CTS frame in order to avoid the hidden terminal problem.

S2: 802.11 frames using a 32-bit checksum, to detect error present in the received frame.

S3: 802.11 uses exponential backoff algorithm when two or more station senses the channel busy.

Which of the following options is true?

Only S1 and S3
Only S2 and S3
Only S1 and S2
All the statement
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements:


S1: Token bucket shapes bursty traffic into fixed-rate traffic by averaging the data rate.

S2: Leaky buckets are more restrictive compared to the token bucket.

S3: A choke packet is a congestion-control mechanism in which a packet is sent by a node to the source to inform it of congestion.


Which of the given statements are false?

Only S2
Only S1
Both S2 and S3
All of these
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Two computes C1 and C2 are configured as follows:


• C1 has IP address 197.168.76.24 and network mask 255.255.192.0.

• C2 has IP address 197.168.114.28 and network mask 255.255.224.0.


Which one of the following statements is true?

C1 and C2 both assume they are on the same network.
C2 assumes C1 is on the same network, but C1 assumes C2 is on a different network.
C1 assumes C2 is on some network, but C2 assumes C1 is on a different network.
C1 and C2 both assume they are on different networks.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 196.225.128.0/18. The ISP wants to give half of this chunk of addresses to organization A and a quarter to organization B, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to A and B?
196.225.168.0/19 and 196.225.184.0/20
196.225.128.0/19 and 196.225.160.0/20
196.225.192.0/20 and 196.225.224.0/19
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following are distributive lattice [MSQ]

[Note: Dn is the divisor set of n]

[D29,\]
[D36,/]
[D24,/]
[D7, /]
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A bag contain 10 red and 10 blue pens.

A blindfold person selects a single pen at a time without replacement. _______ number of selections to be taken place that atleast 4 blue pens are selected.

14
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Given that a 33matrix

is a singular matrix when x = ________

0
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
The eigen vector for the least eigen value of the matrix

[-11 5 ]^T
[1 -1]^T
[-2 -1 ]^T
[-3 5]^T
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Choose the correct statements. A, B are matrices, k is constant.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following statements are true [MSQ]
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
There are three minor exams(assignments) for this semester in an IIT. A student attempts all three assignments . The student can be promoted either he pass in assignment 1 and assignment 2 or pass in assignment 1 and assignment 3. The probability of the student being passed in assignments 1,2,3 are p,q,0.5. The probability that the student is promoted is 0.5, then the relation between p,q is given by
pq-1=p
pq+p=1
p^2+q=1
p^2+q^2=1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Which of the following is an I/O transfer mode? [MSQ]

Programmed I/O

Interrupt driven I/O

DMA(Direct memory access)

None of them

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

Consider a RISC machine where each instruction is exactly 2 bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence

If the target of the branch instruction is i, then the decimal value of the Offset is _______

-4
-6
-10
-8
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a microprogrammed control unit which supports 128 instructions, each of which on an average takes 10 micro operations. The system supports 16 flag conditions and two groups of control signals which are a total of 50 control signals. Group-1 has to generate one or none of 30 control signals and group-2 can have at most 20 from the remaining control signals. What are the number of bits required to represent the flag conditions, control signals respectively in the control word?
5, 20
25, 5
4, 25
4, 20
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider a computer system which uses 16 bit physical addresses. It has 2KB direct mapped cache. Each cache block is of size 64Bytes. Given that it is a byte addressable memory, what are the number of cache hits and misses respectively if the following word addresses are accessed in a sequence:

28, 144, 2176, 2180, 128, 2180, 2185.

The given word addresses are in decimal values and the cache is initially empty.

3, 4
2, 5
4, 3
5, 2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3.

The total number of clock cycles required to execute the program is

35
34
33
32
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
An XNOR function with inputs X and Y is implemented by using a 2x1 MUX. If the selection input is Y, then the inputs to the MUX are ____
I0= X’, I1=X
I0=X, I1=X
I0=X, I1=X’
I0=X’, I1=X’
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Minimum number digits required to represent (1024)10 in binary is____
11
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Minimum number of NOR gates required to implement XNOR function with two inputs is _________. Assume FANIN of NOR gate is 2 and inputs are available in true and complement form
3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
A Full Adder is implemented by using a ROM which consists of a decoder and a ROM matrix. The size of the ROM matrix is____
2^3 x2
2^2 x 1
2^4 x 2
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following function

f(w,x,y,z)= Σ(4,5,7,12,13,14,15).

Which of the following is false? [MSQ]

wxy is a prime implicant
wxz’ is prime implicant but not essential Prime implicant
xy’ is essential prime implicant
xz is prime implicant
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00