Q3➡| Engineering Mathematics 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?
Q5➡| Software Engineering 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 Ll. The product will have to be maintained for five years. Various parameters for the company are given in the table below.
Total cost of the project includes cost of development and maintenance. What is the LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2?
Q6➡| Operating Systems Let the time taken to switch between user and kernel modes of execution be t1 while the time taken to switch between two processes be t2. Which of the following is TRUE?
i ➥ (t1) > (t2)
ii ➥ (t1) = (t2)
iii ➥ (t1) < (t2)
iv ➥ Nothing can be said about the relation between t1 and t2
Q7➡| Software Engineering 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 person-months?
Q9➡| HTML 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?
i ➥ Embed web objects from different sites into the same page
ii ➥ Refresh the page automatically after a specified interval
iii ➥ Automatically redirect to another page upon download
Q11➡| Computer Organization A computer handles several interrupt sources of which the following are relevant for this question. . Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high) . Interrupt from Mouse(raises interrupt if the mouse is moved or a button is pressed) . Interrupt from Keyboard(raises interrupt when a key is pressed or released) . Interrupt from Hard Disk(raises interrupt when a disk read is completed) Which one of these will be handled at the HIGHEST priority?
Q12➡| Database Management System Consider a relational table with a single record for each registered student with the following attributes. Registration_Num:Unique registration number of each registered student UID:Unique identity number, unique at the national level for each citizen BankAccount_Num:Unique account number at the bank. A student can have multiple accounts or join accounts. This attribute stores the primary account number. Name: Name of the student Hostel_Room: Room number of the hostel Which one of the following option is INCORRECT?
i ➥BankAccount_Num is a candidate key
ii ➥ Registration_Num can be a primary key
iii ➥ UID is a candidate key if all students are from the same country
iv ➥ If S is a superkey such that S∩UID is NULL then S∪UID is also a superkey
Q16➡| Operating Systems 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 following is TRUE?
i ➥ On per-thread basis, the OS maintains only CPU register state
ii ➥ The OS does not maintain a separate stack for each thread
iii ➥ On per-thread basis, the OS does not maintain virtual memory state
iv ➥ On per thread basis, the OS maintains only scheduling and accounting information
Q18➡| Engineering Mathematics If the difference between the expectation of the square of a random variable (E[X2]) and the square of the expectation of the random variable (E[X])2 is denoted by R, then
Q19➡| Compiler Design 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?
Q20➡| Operating Systems Let the page fault service time to 10 ms in a computer with average memory access time being 20 ns. If one page fault is generated for every 106 memory accesses, what is the effective access time for the memory?
Q21➡| Computer Organization 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 memory?
Q23➡| Data Structures 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?
Q24➡| Theory of Computation 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 p*q* and Q be [pnqn | n ∈ N]). Then which of the following is ALWAYS regular?
Q25➡| Theory of Computation 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 Li denote the length of the longest monotonically increasing sequence starting at index i in the array Initialize Ln-1=1. For all i such that 0≤i≤n-2
Finally the length of the longest monotonically increasing sequence is Max(L0, L1, …, Ln-1). Which of the following statements is TRUE?
i ➥ The algorithm uses dynamic programming paradigm
ii ➥ The algorithm has a linear complexity and uses branch and bound paradigm
iii ➥ The algorithm has a non-linear polynomial complexity and uses branch and bound paradigm
iv ➥ The algorithm uses divide and conquer paradigm
Q26➡| Theory of Computation Consider the languages L1,L2 and L3 as given below. L1 = {0p1q | p,q∈N}, L2 = {0p1q | p,q∈N and p=q} and L3 = {0p1q0r | p,q,r∈N and p=q=r}. Which of the following statements is NOT TRUE?
i ➥ Push Down Automate (PDA) can be used to recognize L1 and L2
ii ➥ L1 is a regular language
iii ➥ All the three languages are context free
iv ➥ Turing machines can be used to recognize all the languages
Q27➡|Compiler Design 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 (7↓3↑4↑3↓2)?
Q28➡| Computer Organization On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory. Initialize the address register Initialize the count to 500
LOOP: Load a byte from device Store in memory at address given by address register Increment the address register Decrement the count If count != 0 go to LOOP
Assume that each statement in this program is equivalent to 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 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?
Q29➡| Data Structures 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?
Q32➡| Database Management System 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=1) 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;
Q33➡| Engineering Mathematics Consider a finite sequence of random values X = [x1, x2, …, xn]. Let μx be the mean and σx be the standard deviation of X. Let another finite sequence Y of equal length be derived from this as yi = a * xi + b, where a and b are positive constants. Let μy be the mean and σy be the standard deviation of this sequence. Which one of the following statements is INCORRECT?
i ➥ Index position of mode of X in X is the same as the index position of mode of Y in Y.
ii ➥ Index position of median of X in X is the same as the index position of median of Y in Y.