Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Prashant.
1
votes
201
FUNCTION
347
views
answered
Nov 9, 2016
36
votes
202
GATE CSE 2004 | Question: 3
A single array $A[1 \ldots \text{MAXSIZE}]$ is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables $top1$ and $top2$ $(top1 < top 2)$ point to the location of the topmost element in each of the stacks. If the space is to ... $(top1 = \text{MAXSIZE} / 2)$ or $(top2 = \text{MAXSIZE})$ $top1 = top2 - 1$
A single array $A[1 \ldots \text{MAXSIZE}]$ is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables $top1$ and $top2$ $(top1 < top...
35.6k
views
answered
Nov 9, 2016
DS
gatecse-2004
data-structures
stack
easy
+
–
35
votes
203
GATE CSE 1987 | Question: 1-II
The total number of Boolean functions which can be realised with four variables is: $4$ $17$ $256$ $65, 536$
The total number of Boolean functions which can be realised with four variables is:$4$$17$$256$$65, 536$
5.0k
views
answered
Nov 7, 2016
Digital Logic
gate1987
digital-logic
boolean-algebra
functions
combinatory
+
–
5
votes
204
cpu scheduling
explanation please...??? and what is the difference between convoy effect and starvation?
explanation please...???and what is the difference between convoy effect and starvation?
3.1k
views
answered
Nov 7, 2016
Operating System
process-scheduling
operating-system
+
–
2
votes
205
cpu scheduling
come up with a full understanding explanation......
come up with a full understanding explanation......
335
views
answered
Nov 7, 2016
Operating System
process-scheduling
+
–
1
votes
206
cpu scheduling
211
views
answered
Nov 7, 2016
2
votes
207
complexity
457
views
answered
Nov 7, 2016
Algorithms
time-complexity
algorithms
asymptotic-notation
test-series
+
–
0
votes
208
GateBook TOC Grand Test 1 Q 16
287
views
answered
Nov 7, 2016
4
votes
209
TOC Grand Test 1 Question 1
332
views
answered
Nov 7, 2016
3
votes
210
A palindrome is a string whose reversal is identical to the string. How many bit strings of length n are palindromes?
A palindrome is a string whose reversal is identical to the string. How many bit strings of length n are palindromes? 2⌈n⁄2⌉ 2(⌊ n/2⌋ ) 2⌈n⁄2⌉ -1 2(�...
6.7k
views
answered
Nov 7, 2016
Combinatory
counting
combinatory
+
–
2
votes
211
Converting weak entity in ER diagram to RDBMS relation
Consider the following ER diagram: Which one of the following is correct attribute set for one of the minimized RDBMS table for above ER diagram? a. Parts(Part-id, P-id, Part-name) with primary key: Part-id, P-id b. Parts(Part-id, ... id) with primary key: P-id d. Trainer(Trainer-id, Trainer-name, Part-id) with primary key: Trainer-id, Part-id
Consider the following ER diagram:Which one of the following is correct attribute set for one of the minimized RDBMS table for above ER diagram?a. Parts(Part-id, P-id, Pa...
4.6k
views
answered
Nov 6, 2016
7
votes
212
What is "Strict recoverable" schedule?
Consider the following schedule: $S: r_1(A), w_2(A), Commit_2, w_1(A),w_3(A), Commit_3, Commit_1$ Which of the following is true? a. Schedule is view serializable schedule and strict recoverable schedule b. Schedule is ... know what is "strict schedule" and "recoverable schedule", But then what it means by "strict recoverable"?
Consider the following schedule:$S: r_1(A), w_2(A), Commit_2, w_1(A),w_3(A), Commit_3, Commit_1$Which of the following is true?a. Schedule is view serializable schedule a...
6.8k
views
answered
Nov 6, 2016
Unknown Category
concurrency
databases
transaction-and-concurrency
+
–
3
votes
213
Min Heap
he minimum number of swaps required to build a min heap tree is _____________. Assume that array of n elements is provided 0 n/2 n n+1
he minimum number of swaps required to build a min heap tree is _____________. Assume that array of n elements is provided 0 n/2 n n+1
823
views
answered
Nov 6, 2016
4
votes
214
AVL tree
Following keys are inserted into a binary search tree and AVL tree in given order, keys : 45 30 8 36 60 51 The following nodes are added into corresponding BST and AVL tree then what is the difference in height of BST and AVL tree ? Keys : 4 16 25 are added afterwards in the corresponding trees
Following keys are inserted into a binary search tree and AVL tree in given order,keys : 45 30 8 36 60 51The following nodes are added into corresponding BST and AVL tree...
685
views
answered
Nov 6, 2016
4
votes
215
AVL Tree
Following keys are inserted into a binary search tree and AVL tree in given order, keys : 45 30 8 36 60 51 What is the difference in the height of the binary search tree and AVL tree ?
Following keys are inserted into a binary search tree and AVL tree in given order,keys : 45 30 8 36 60 51What is the difference in the height of the binary search tree an...
433
views
answered
Nov 6, 2016
3
votes
216
DMA is
DMA is a)Processor by itself b) Feature of the computer c)Part of processor d)A dedicated h/w device
DMA is a)Processor by itself b) Feature of the computer c)Part of processor d)A dedicated h/w device
239
views
answered
Nov 5, 2016
1
votes
217
How does following SQL translates to relational algebra divide operation?
Book claims that below query translates to relational algebra expression $P/Q$. Can anyone explain how does the below query translates to relational algebra expression $P/Q$? Assume $Q$ has attributes $B_1,B_2,...,B_m$ ... addition the attributes $A_1,A_2,...,A_n$. How above query equates to relation algebra expression $P/Q$?
Book claims that below query translates to relational algebra expression $P/Q$. Can anyone explain how does the below query translates to relational algebra expression $P...
1.3k
views
answered
Nov 5, 2016
Databases
relational-algebra
sql
databases
relational-calculus
+
–
2
votes
218
Address of a 2 - dimensional Array in row major order
791
views
answered
Nov 5, 2016
2
votes
219
Address of a 2 - dimensional Array
283
views
answered
Nov 5, 2016
1
votes
220
Design an AVL tree ?
216
views
answered
Nov 5, 2016
4
votes
221
Macro
Consider the following C program # include<stdio.h> # define fun(i, j) i * j # define gun(q) q * q int main( ) { int i = 4; int j = 3; printf(“%d”, fun(fun(i + 2, j), gun(j + 2))); return 0; } The output of the program is _______
Consider the following C program# include<stdio.h # define fun(i, j) i * j # define gun(q) q * q int main( ) { int i = 4; int j = 3; printf(“%d”, fun(fun(i + 2, j), g...
524
views
answered
Nov 5, 2016
3
votes
222
Array
Consider the following C program # include<stdio.h> int main( ) { static int p[ ] = {10, 20, 30, 40, 50, 60}; static int *q[ ] = {p+2, p+1, p, p+3, p+4, p+5}; static int **r[] = {q+4, q+5, q+1, q, q+2, q+3} int ***pt; pt = r + 2; printf(“%d”, ***(pt+3) - **(q+1)); } The output of the above program is ____
Consider the following C program# include<stdio.h int main( ) { static int p[ ] = {10, 20, 30, 40, 50, 60}; static int *q[ ] = {p+2, p+1, p, p+3, p+4, p+5}; static int r...
218
views
answered
Nov 5, 2016
0
votes
223
worst case lower bound
What is the meaning of upper bound and worst case lower bound here?
What is the meaning of upper bound and worst case lower bound here?
1.0k
views
answered
Nov 5, 2016
Algorithms
asymptotic-notation
algorithms
time-complexity
+
–
2
votes
224
ME-ALGORITHM(BASIC LEVEL)-Q26
Consider the vertices a' and b' that are simultaneously on the function call stack at some point during the execution of DFS from vertices s' in diagraph. Which of the following must be true? S1: There exist directed path from s to a' and directed path from s to ... the above statements is/are true? a. S1 only b. S1 and S2 only c. S1 and S3 only d. S1, S2 and S3
Consider the vertices ‘a’ and ‘b’ that are simultaneously on the function call stack at some point during the execution ofDFS from vertices ‘s’ in diagraph. W...
1.8k
views
answered
Nov 5, 2016
Algorithms
depth-first-search
graph-algorithms
made-easy-test-series
+
–
1
votes
225
Connectors
282
views
answered
Nov 4, 2016
2
votes
226
SQL query
when we calculated avg fun in sql then we exclude the null value or not in count (sum/count) somewhere it consider null vlaue also in count soomwher not?? wht is actual procedure
when we calculated avg fun in sql then we exclude the null value or not in count (sum/count)somewhere it consider null vlaue also in count soomwher not??wht is actual pro...
303
views
answered
Nov 4, 2016
2
votes
227
SQL query
A relational schema for a train reservation database is given below. Passenger: (pid, pname, age) Reservation: (pid, class, tid) What pids are returned by the following SQL query for the above instance of the tables? SELECT pid FROM Reservation WHERE class= 'AC' AND EXISTS (SELECT * ... C) 1, 3 (D) 1, 5 in this que i get the ans but i what is the meanig of 1 here in every option
A relational schema for a train reservation database is given below. Passenger: (pid, pname, age) Reservation: (pid, class, tid) What pids are returned by the following S...
1.1k
views
answered
Nov 4, 2016
19
votes
228
GATE IT 2005 | Question: 69
In an inventory management system implemented at a trading corporation, there are several tables designed to hold all the information. Amongst these, the following two tables hold information on which items are supplied by which suppliers, and which warehouse ... who do not supply any item supply exactly one item supply one or more items supply two or more items
In an inventory management system implemented at a trading corporation, there are several tables designed to hold all the information. Amongst these, the following two ta...
14.3k
views
answered
Nov 4, 2016
Databases
gateit-2005
databases
sql
normal
+
–
5
votes
229
How many address operations are possible
A computer has 40 bit instruction code . It uses one register operand and one memory operand .There are 128 general purpose regsiters and 256 M bytes of RAM If there are n 2 address operations which uses both register and memory then how many one address operations are possible a) (16-n)x 2^7 b)(32-n)x 2^6 c)64x 2^18 d)none
A computer has 40 bit instruction code . It uses one register operand and one memory operand .There are 128 general purpose regsiters and 256 M bytes of RAM If there are ...
2.1k
views
answered
Nov 4, 2016
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
12
...
21
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register