End Test Now
The simplified SOP (Sum of Product) form of the Boolean expression is
Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?
The minimum number of D flip-flops needed to design a mod-258 counter is
9
8
512
258
A thread is usually defined as a ‘light weight process’ because an operating system (OS) maintains smaller data structures for a thread than for a process. In relation to this, which of the followings is TRUE?
On per-thread basis, the OS maintains only CPU register state
The OS does not maintain a separate stack for each thread
On per-thread basis, the OS does not maintain virtual memory state
On per thread basis, the OS maintains only scheduling and accounting information
K4 and Q3 are graphs with the following structures
K4 is planar while Q3 is not
Both K4 and Q3 are planar
Q3 is planar while K4 is not
Neither K4 not Q3 is planar
If the difference between the expectation of the square of random variable and the square of the expectation of the random variable is denoted by R then
R = 0
R<0
R 0
R>0
The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
Finite state automata
Deterministic pushdown automata
Non-Deterministic pushdown automata
Turing machine
Let the page fault service time be 10ms in a computer with average memory access time being 20ns. If one page fault is generated for every memory accesses, what is the effective access time for the memory?
21ns
30ns
23ns
35ns
Consider a hypothetical processor with an instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?
Immediate Addressing
Register Addressing
Register Indirect Scaled Addressing
Base Indexed Addressing
What does the following fragment of C-program print?char c[ ] = “GATE2011”;char *p =c;printf “%s”, p+p [3] – p [1]);
GATE2011
E201
2011
011
A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array A [0 : n – 1] is given below.Let denote the length of the longest monotonically increasing sequence starting at index i in the array Finally the length of the longest monotonically increasing sequence is Max Which of the following statements is TRUE?
The algorithm uses dynamic programming paradigm
The algorithm has a linear complexity and uses branch and bound paradigm
The algorithm has a non-linear polynomial complexity and uses branch and bound paradigm
The algorithm uses divide and conquer paradigm.
Let P be a regular language and Q be a context free language such that Q P. (For example, let P be the language represented by the regular expression and Q be {}). Then which of the following is ALWAYS regular?
P – Q
In a compiler, keywords of a language are recognized during
parsing of the program
the code generation
the lexical analysis of the program
dataflow analysis
A layer-4 firewall (a device that can look at all protocol headers up to the transport layer) CANNOT
block entire HTTP traffic during 9:00PM and 5:00AM
block all ICMP traffic
stop incoming traffic from a specific IP address but allow outgoing traffic to the same IP address
block TCP traffic from a specific user on a multi-user system during 9:00PM and 5:00AM
If two fair coins are flipped and at least one of the outcomes is known to be a head, what is the probability that both outcomes are heads?
1/3
1/4
1/2
2/3
Consider different activities related to email.m1: Send an email from a mail client to a mail serverm2: Download an email from mailbox server to a mail clientm3: Checking email in a web browserWhich is the application level protocol used in each activity?
m1:HTTP m2:SMTP m3:POP
m1:SMTP m2:FTP m3:HTTP
m1: SMTP m2: POP m3: HTTP
m1: POP m2: SMTP m3:IMAP
A company needs to develop a strategy for software product development for which it has a choice of two programming languages L1 and L2. The number of lines of code (LOC) developed using L2 is estimated to be twice the LOC developed with L1. the product will have to be maintained for five years. Various parameters for the company are given in the table below.
4000
5000
4333
4667
Let the time taken to switch between user and kernel modes of execution be while the time taken to switch between two processes be . Which of the following is TRUE?
Nothing can be said about the relation between and
A company needs to develop digital signal processing software for one of its newest inventions. The software is expected to have 40000 lines of code. The company needs to determine the effort in person-months needed to develop this software using the basic COCOMO model. The multiplicative factor for this model is given as 2.8 for the software development on embedded systems, while the exponentiation factor is given as 1.20. What is the estimated effort in personmonths?
234.25
932.50
287.80
122.40
Which of the following pairs have DIFFERENT expressive power?
Deterministic finite automata (DFA) and Non-deterministic finite automata (NFA)
Deterministic push down automata (DPDA) and Non-deterministic push down automata (NPDA)
Deterministic single-tape Turing machine and Non-deterministic single tape Turing machine
Single-tape Turing machine and multi-tape Turing machine
HTML (Hyper Text Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?
Embed web objects from different sites into the same page
Refresh the page automatically after a specified interval
Automatically redirect to another page upon download
Display the client time as part of the page
Which of the following is NOT desired in a good Software Requirement Specifications (SRS) document?
Algorithms for Software Implementation
Goals of Implementation
Non Functional Requirements
Functional Requirements
A computer handles several interrupt sources of which the following are relevant for this question.Interrupt from CPU temperature sensorInterrupt from MouseInterrupt from KeyboardInterrupt from Hard Disk
Interrupt from Hard Disk
Interrupt from Mouse
Interrupt from Keyboard
Interrupt from CPU temp sensor
Consider a relational table with a single record for each registered student with the following attributes.1. Registration_Number: Unique registration number for each registered student2. UID: Unique Identity number, unique at the national level for each citizen3. Bank Account_Number: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attributes stores the primary account number4. Name: Name of the Student 5. Hostel_Room: Room number of the hostelWhich of the following options is INCORRECT?
Bank Account_Number is a candidate key
Registration_Number can be a primary key
UID is a candidate key if all students are from the same country
If S is a superkey such that S UID is NULL then S UID is also a superkey
Which of the given options provides the increasing order of asymptotic complexityoffunctions ? (n) = (n) = (n) =
Four matrices and are dimensions p × q, q × r, r × s and s × t respectively can be multiplied in several ways with different number of total scalar multiplications. For example When multiplied as the total number of scalar multiplications is pqr+rst+prt. When multiplied as , the total number of scalar multiplications is pqr+prs+pst.If p=10, q=100, r=20, s=5 and t=80, then the minimum number of scalar multiplications needed is
248000
44000
19000
25000
Consider a relational table r with sufficient number of records, having attributes and let 1 p n. Two queries Q1 and Q2 are given below.Q1 : where c is a const Q2 : where and are constantsThe database can be configured to do ordered indexing on or hashing on . Which of the following statements is TRUE?
Ordered indexing will always outperform hashing for both queries
Hashing will always outperform ordered indexing for both queries
Hashing will outperform ordered indexing on Q1, but not on Q2
Hashing will outperform ordered indexing on Q2, but not on Q1.
Consider the matrix as given below.Which one of the following provides the CORRECT values of eigenvalues of the matrix?
1,4,3
3,7,3
7,3,2
1,2,3
Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure.What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the corresponding non-pipeline implementation?
4.0
2.5
1.1
3.0
Definition of a language L with alphabet {a} is given as followingL = { | k > 0, and n is a positive integer constant}What is the minimum number of states needed in a DFA to recognize L?
k+1
n+1
An 8KB direct mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following.1 Valid bit1 Modified bitAs many bits as the minimum needed to identify the memory block mapped in the cache.What is the total size of memory needed at the cache controller to store metadata (tags) for the cache?
4864 bits
6144bits
6656bits
5376bits
An application loads 100 libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as 10ms. Rotational speed of disk is 6000rpm. If all 100 libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data from the disk block once the head has been positioned at the start of the block may be neglected)
0.50s
1.50s
1.25s
1.00s
A deterministic finite automation (DFA)D with alphabet = {a,b} is given below
The following is comment written for a C function/* This function computes the roots of a quadratic equationa.x^2+b.x+c=0. The function stores two real rootsin *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases.(i) When coefficient a is zero irrespective of discriminant(ii) When discriminant is positive(iii) When discrimanant is zero (iv) When discrimanant is negativeOnly in cases ii and iii , the stored roots are valid.Otherwise 0 is stored in the roots. the function returns 0 when the roots are valid and -1 otherwise.The functin also ensures root1>=root2. int get_QuadRoots float a, ( float b, float c, float *root1, float *root2); * /A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.
T1,T2,T3,T6
T1,T3,T4,T5
T2,T4,T5,T6
T2,T3,T4,T5
Database table by name Loan_Records is given below.
What is the output of the following SQL query?SELECT count(*)FROM((SELECT Borrower. Bank_Manager FROM Loan_Records) AS SNATURAL JOIN(SELECT Bank_Manager, Loan_Amount FROM Loan_Records) AS T);
3
5
6
Consider two binary operators and with the precedence of operator being lower than that of the operator . Operator is right associative while operator , is left associative. Which one of the following represents the parse tree for expression ?
Consider the languages L1, L2 and L3 as given belowWhich of the following statements is NOT TRUE?
Push Down Automata (PDA) can be used to recognize L1 and L2
L1 is a regular language
All the three languages are context free
Turing machines can be used to recognize all the languages
LOOP: Load a byte from device
Assume that each statement in this program is equivalent to a machine instruction which takes one clock cycle to execute if it is a non-load/store instruction. The load-store instructions take two clock cycles to execute.The designer of the system also has an alternate approach of using the DMA controller to implement the same transfer. The DMA controller requires 20 clock cycles for initialization and other overheads. Each DMA transfer cycle takes two clock cycles to transfer one byte of data from the device to the memory.What is the approximate speedup when the DMA controller based design is used in place of the interrupt driven program based input-output?
3.4
4.4
5.1
6.7
We are given a set of n distinct elements and an unlabeled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
0
1
n!
Which one of the following options is CORRECT given three positive integers x, y and z, and a predicate
P(x) being true means that x is a prime number
P(x) being true means that x is a number other than 1
P(x) is always true irrespective of the value of x
P(x) being true means that x has exactly two factors other than 1 and x
Given i = , what will be the evaluation of the definite integral ?
2
- i
i
Consider a database table T containing two columns X and Y each of type integer. After the creation of the table, one record (X= 1, Y=l) is inserted in the table.Let MX and MY denote the respective maximum values of X and Y among all records in the table at any point in time. Using MX and MY, new records are inserted in the table 128 times with X and Y values being MX+1, 2*MY+1 respectively. It may be noted that each time after the insertion, values of MX and MY change.What will be the output of the following SQL query after the steps mentioned above are carried out?SELECT Y FROM T WHERE X=7;
127
255
129
257
Consider a finite sequence of random values X = . Let be the mean and be the standard deviation of X .Let another finite sequence Y of equal length be derived from this as where a and b are positive constants. Let be the mean and be the standard deviation of this sequence. Which one of the following statements is INCORRECT?
Index position of mode of X in X is the same as the index position of mode of Y in Y.
Index position of median of X in X is the same as the index position of median of Y in Y.
A deck of 5 cards (each carrying a distinct number from 1 to 5) is shuffled thoroughly. Two cards are then removed one at a time from the deck. What is the probability that the two cards are selected with the number on the first card being one higher than the number on the second card?
1/5
4/25
2/5
Consider the following table of arrival time and burst time for three processes P0, P1 and P2.
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?
5.0 ms
4.33 ms
6.33 ms
7.33 ms
Consider evaluating the following expression tree on a machine with load-store architecture in which memory can be accessed only through load and store instructions. The variables a, b, c, d and e are initially stored in memory. The binary operators used in this expression tree can be evaluated by the machine only when the operands are in registers. The instructions produce result only in a register. If no intermediate results can be stored in memory, what is the minimum number of registers needed to evaluate this expression?
Directions for next two questions: Consider the following recursive C function that takes two argumentsunsigned int foo unsigned int n, unsigned int r {if (n > 0) return (n%r) + foo (n / r, r) );else return 0;}What is the return value of the function foo when it is called as foo (513, 2)?
What is the return value of the function foo when it is called as foo (345, 10) ?
345
12
Directions for next two questions: Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.
4
If at some instance prior to the occurrence of the clock edge, P. Q and R have a value 0, 1 and 0 respectively, what shall be the value of PQR after the clock edge?
000
001
010
Directions for next two questions: An undirected graph G(V,E) contains n ( n >2 ) nodes named Two nodes are connected if and only if 0 < |i ? j| 2. Each edge is assigned a weight i + j. A sample graph with n = 4 is shown below
6n – 11
2n + 1
The length of the path from in the MST of previous question with n = 10 is
11
25
31
41
Directions for next two questions: Consider a network with five nodes, N1 to N5, as shown below
(3. 2, 0, 2, 5)
(3, 2, 0, 2, 6)
(7, 2, 0, 2, 5)
(7, 2, 0, 2, 6)
After the update in the previous question, the link N1-N2 goes down. N2 will reflect this change immediately in its distance vector as cost, . After the NEXT ROUND of update, what will be the cost to N1 in the distance vector of N3?
10
If Log (P) = (1/2)Log (Q) = (1/3) Log ( R), then which of the following options is TRUE?
Choose the most appropriate word(s) from the options given below to complete the following sentence. I contemplated________Singapore for my vacation but decided against it.
To visit
having to visit
visiting
for a visit
Choose the most appropriate word from the options given below to complete the following sentence. If you are trying to make a strong impression on your audience, you cannot do so by being understated, tentative or___.
Hyperbolic
Restrained
Argumentative
Indifferent
Choose the word from the options given below that is most nearly opposite in meaning to the given word: Amalgamate
Merge
Split
Collect
Separate
Which of the following options is the closest in the meaning to the word below: Inexplicable
Incomprehensible
Indelible
Inextricable
Infallible
P, Q, R and S are four types of dangerous microbes recently found in a human habitat. The area of each circle with its diameter printed in brackets represents the growth of a single microbe surviving human immunity system within 24 hours of entering the body. The danger to human beings varies proportionately with the toxicity, potency and growth attributed to a microbe shown in the figure below
P
Q
R
S
The variable cost (V) of manufacturing a product varies according to the equation V= 4q, where q is the quantity produced. The fixed cost (F) of production of same product reduces with q according to the equation F = 100/q. How many units should be produced to minimize the total cost (V+F)?
7
A transporter receives the same number of orders each day. Currently, he has some pending orders (backlog) to be shipped. If he uses 7 trucks, then at the end of the 4th day he can clear all the orders. Alternatively, if he uses only 3 trucks, then all the orders are cleared at the end of the 10th day. What is the minimum number of trucks required so that there will be no pending order at the end of the 5th day?
A container originally contains 10 litres of pure spirit. From this container 1 litre of spirit is replaced with 1 litre of water. Subsequently, 1 litre of the mixture is again replaced with 1 litre of water and this process is repeated one more time. How much spirit is now left in the container?
7.58 litres
7.84 litres
7 litres
Few school curricula include a unit on how to deal with bereavement and grief, and yet all students at some point in their lives suffer from losses through death and parting. Based on the above passage which topic would not be included in a unit on bereavement?
how to write a letter of condolence
what emotional stages are passed through in the healing process
what the leading causes of death are
how to give support to a grieving friend
When you are sure that you have answered as many questions as possible, click the ‘Done’ button below and view your results.