Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
No answer
No selected answer
No upvoted answer
Previous GATE
Featured
Recent questions without an upvoted answer
1
votes
1
answer
19951
Time complexity
Worst case time complexity of following code? Please explain in detail. void function(int n) { int count = 0; for (int i=0; i<n; i++) for (int j=i; j< i*i; j++) if (j%i == 0) { for (int k=0; k<j; k++) printf("*"); } }
Worst case time complexity of following code? Please explain in detail.void function(int n) { int count = 0; for (int i=0; i<n; i++) for (int j=i; j< i*i; j++) if (j%i ==...
♥_Less
4.5k
views
♥_Less
asked
Dec 4, 2017
Algorithms
time-complexity
algorithms
programming-in-c
asymptotic-notation
+
–
0
votes
0
answers
19952
MadeEasy Test Series: Databases - B Tree
Suppose size of block 1000 bytes search key of 12 bytes, pointer size 8 bytes. How many maximum records in DB file which can index by dense B+ tree of 2 levels? given ans is 2499 but I am getting 2450
Suppose size of block 1000 bytes search key of 12 bytes, pointer size 8 bytes. How many maximum records in DB file which can index by dense B+ tree of 2 levels?given ans ...
sunaina rawat
427
views
sunaina rawat
asked
Dec 4, 2017
Databases
made-easy-test-series
databases
b-tree
+
–
1
votes
0
answers
19953
MadeEasy Test Series: Databases - Indexing
Which of the following statement is/are true? For any data file it is possible to construct two separate sparse first level indexes on different keys. For any data file, it is possible to construct two separate dense first level indexes ... possible to construct a sparse first level index and a dense second level index,both should be useful. All the above
Which of the following statement is/are true?For any data file it is possible to construct two separate sparse first level indexes on different keys.For any data file, it...
shivangi5
625
views
shivangi5
asked
Dec 4, 2017
Databases
made-easy-test-series
databases
indexing
+
–
3
votes
1
answer
19954
MadeEasy Test Series: Databases - Er Diagram
In the solution they have merged E1 R4 E4 , E2 R3 E3 R5 , R6 E5. MY DOUBT IS , why cant we only merge R4 E4 instead of E1 R4 E4. since there is total participation on the E4 side of the relation and it would also decrease the number of attributes .
In the solution they have merged E1 R4 E4 , E2 R3 E3 R5 , R6 E5.MY DOUBT IS , why cant we only merge R4 E4 instead of E1 R4 E4. since there is total participation on the ...
shaurya vardhan
1.2k
views
shaurya vardhan
asked
Dec 4, 2017
Databases
databases
er-diagram
er-to-relational
rdbms
made-easy-test-series
+
–
1
votes
0
answers
19955
Practice: Deadlock
Deadlock Question
Deadlock Question
Vasu_gate2017
629
views
Vasu_gate2017
asked
Dec 4, 2017
0
votes
0
answers
19956
Made Easy Test Series
Consider the following relational schema R(ABCDE) with: Functional Dependency: {A → B, C → D, BD → E, E → C} The number of given FD’s violate 3NF?
Consider the following relational schema R(ABCDE) with:Functional Dependency: {A → B, C → D, BD → E, E → C}The number of given FD’s violate 3NF?
Brij Mohan Gupta
308
views
Brij Mohan Gupta
asked
Dec 4, 2017
0
votes
0
answers
19957
C programing
Harikesh Kumar
194
views
Harikesh Kumar
asked
Dec 4, 2017
Programming in C
programming-in-c
+
–
0
votes
0
answers
19958
test series
Total number of AND gates present inside a 6-bit carry look ahead generator circuit is
Total number of AND gates present inside a 6-bit carrylook ahead generator circuit is
Chandrabhan Vishwa 1
348
views
Chandrabhan Vishwa 1
asked
Dec 4, 2017
2
votes
1
answer
19959
Identify the language
$L = \{ wcww^r |\ w,c\ \epsilon\ ( a + b\ )^* \}$ Identify the language.
$L = \{ wcww^r |\ w,c\ \epsilon\ ( a + b\ )^* \}$Identify the language.
Tuhin Dutta
443
views
Tuhin Dutta
asked
Dec 4, 2017
Theory of Computation
theory-of-computation
identify-class-language
+
–
0
votes
1
answer
19960
made-easy
A 3 bit down counter is used to control the output of the multiplexer as shown in the figure. The counter is intially at (101)2 then output of multiplexer will follow the sequence i m getting I2,0,I1,0 is it correct?
A 3 bit down counter is used to control the output of the multiplexer as shown in the figure. The counter is intially at (101)2 then output of multiplexer will follow the...
Jaspreet Kaur Bains
372
views
Jaspreet Kaur Bains
asked
Dec 4, 2017
Digital Logic
digital-logic
+
–
2
votes
1
answer
19961
Doubt in CSL and CFL
$a) \{\ 0^i\ 1^j\ 2^k\ \ | where\ i\ \neq j\ or\ j\ \neq k\ \}$ $b) \{\ 0^i\ 1^j\ 2^k\ \ | where\ i\ \neq j\ and\ j\ \neq k\ \}$ a) CFL(union of two OR-ed comparisons ) b) CSL( Double comaprison ) Am I correct?
$a) \{\ 0^i\ 1^j\ 2^k\ \ | where\ i\ \neq j\ or\ j\ \neq k\ \}$$b) \{\ 0^i\ 1^j\ 2^k\ \ | where\ i\ \neq j\ and\ j\ \neq k\ \}$a) CFL(union of two OR-ed compa...
Tuhin Dutta
709
views
Tuhin Dutta
asked
Dec 4, 2017
Theory of Computation
theory-of-computation
context-sensitive
context-free-language
+
–
0
votes
0
answers
19962
Isro gate nielit
Please explain the answer as much details as possible
Please explain the answer as much details as possible
Harikesh Kumar
342
views
Harikesh Kumar
asked
Dec 4, 2017
Operating System
operating-system
+
–
1
votes
0
answers
19963
Deadlock implies No Progress (in process synchronization) ?
Hi Guys, Deadlock implies no progress. This statement is mentioned at many places. But i just want to verify my reasoning with respect to Progress definition Progress If no process is executing in its critical section and some ... of Deadlock. If my reasoning is not complete or incorrect then please notify. It will be a great help.
Hi Guys,Deadlock implies no progress. This statement is mentioned at many places. But i just want to verify my reasoning with respect to Progress definition ProgressIf no...
Chhotu
832
views
Chhotu
asked
Dec 4, 2017
Operating System
process-synchronization
deadlock-prevention-avoidance-detection
critical-section
progress
+
–
1
votes
0
answers
19964
Simple doubt in Reg Exp of TOC
why $bb^*$ is $b^*$ and not $b^+$? Ref: $a^*(bb^*a + a)a^*\\=a^*(bb^*+\epsilon)aa^*\\=a^*b^*aa^*\\=a^*b^*a^*a$
why $bb^*$ is $b^*$ and not $b^+$?Ref:$a^*(bb^*a + a)a^*\\=a^*(bb^*+\epsilon)aa^*\\=a^*b^*aa^*\\=a^*b^*a^*a$
Tuhin Dutta
459
views
Tuhin Dutta
asked
Dec 4, 2017
Theory of Computation
theory-of-computation
regular-expression
finite-automata
+
–
0
votes
0
answers
19965
Self Doubt
Can someone explain the 3rd line of proof. a^i = a^i operation a^(j-i) ?
Can someone explain the 3rd line of proof. a^i = a^i operation a^(j-i) ?
Jatin18
279
views
Jatin18
asked
Dec 4, 2017
Set Theory & Algebra
discrete-mathematics
+
–
0
votes
0
answers
19966
asynchronous ciricuit
In the sequential circuit shown below, if the initial value of the output Q1Q0 is 00. What are the next four values of Q1Q0? When Q0 changes from 0 to 1(positive edge triggered)......Q1 toggles doubt 1 - is it because the input to T flip flop is 1 and ... filp flop was 0 then even upon triggering Q1 will remain as Q1? doubt 3 - what will be the case if D flip flop was used
In the sequential circuit shown below, if the initial value of the output Q1Q0 is 00. What are the next four values of Q1Q0?When Q0 changes from 0 to 1(positive edge trig...
A_i_$_h
364
views
A_i_$_h
asked
Dec 4, 2017
–1
votes
0
answers
19967
tautology
neelesh bhakt
408
views
neelesh bhakt
asked
Dec 4, 2017
0
votes
0
answers
19968
Test series
For the following relational tables, Grocery(Grocery_ID, Name, Category,Exp_date,Mfg_date) Sale_Grocery(SaleID,Grocery_ID) Sale(SaleID, Price) What is the total money made by selling Tomato_Sauce by December 2017? Choose correct SQL query from below for above ... Sale_Grocery.SaleID WHERE ((Exp_date < '2017-31-12') AND Grocery.Name = Tomato_Sauce'); None of these
For the following relational tables,Grocery(Grocery_ID, Name, Category,Exp_date,Mfg_date)Sale_Grocery(SaleID,Grocery_ID)Sale(SaleID, Price)What is the total money made by...
heena singh
200
views
heena singh
asked
Dec 4, 2017
0
votes
1
answer
19969
context free grammar
(a^i)(b^j)(c^m)(d^n) where i+j=m+n what will be the CFG for this
(a^i)(b^j)(c^m)(d^n) where i+j=m+n what will be the CFG for this
virat bansal
329
views
virat bansal
asked
Dec 4, 2017
0
votes
0
answers
19970
test series
A half adder is implement with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 μsec. A 4-bit ripple carry binary adder is implemented by using full adders. The total propagation delay of this 4-bit binary adder is
A half adder is implement with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of ...
Chandrabhan Vishwa 1
220
views
Chandrabhan Vishwa 1
asked
Dec 4, 2017
0
votes
0
answers
19971
Test series
Consider the join of a relation R with a relation S. If R has 100 tuples and S has 9 tuples then the maximum and minimum sizes of the join respectively under referential integrity constraint: Consider the join of a relation R with a relation S. If R has 100 tuples and S has ... the max. & min. No. of tuples in their join is max of tuples from both the table. 9+100 and 0 9*100 and 9
Consider the join of a relation R with a relation S. If R has 100 tuples and S has 9 tuples then the maximum and minimum sizes of the join respectively under referential ...
heena singh
228
views
heena singh
asked
Dec 4, 2017
0
votes
1
answer
19972
2 phase locking
how does a 2 phase locking protocol cause deadlock ? and why is it conflict serializable
how does a 2 phase locking protocol cause deadlock ?and why is it conflict serializable
A_i_$_h
673
views
A_i_$_h
asked
Dec 4, 2017
0
votes
0
answers
19973
Set Theory
neelesh bhakt
254
views
neelesh bhakt
asked
Dec 4, 2017
0
votes
2
answers
19974
Programming doubt
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ char c=125; c=c+10; printf("%d",c); return 0; } (A) 135 (B) 115 (C) -121 (D) -8 (E) Compiler error
What will be output if you will compile and execute the following c code? #include<stdio.h>int main(){char c=125;c=c+10;printf("%d",c); return 0;}(A) 135(B) 115(C) -121(D...
Surya Dhanraj
667
views
Surya Dhanraj
asked
Dec 4, 2017
0
votes
3
answers
19975
MadeEasy Test Series: Digital Logic - Adder
A 1-bit full adder circuit takes 5 ns to generate the carry-out bit and 10 ns for the sum-bit. When 4, 1-bit full adders are cascaded, the maximum rate of additions per second will be _______ × 107.
A 1-bit full adder circuit takes 5 ns to generate the carry-out bit and 10 ns for the sum-bit. When 4, 1-bit full adders are cascaded, the maximum rate of additions per s...
shivangi5
1.4k
views
shivangi5
asked
Dec 4, 2017
Digital Logic
made-easy-test-series
digital-logic
adder
+
–
0
votes
0
answers
19976
Tree data structure
How many binary trees are possible with given preorder:- ABCD And given postorder:- cdba
How many binary trees are possible with given preorder:- ABCDAnd given postorder:- cdba
Swami patil
189
views
Swami patil
asked
Dec 4, 2017
0
votes
0
answers
19977
DFA and Reg Exp
$ L = \{ wxwy \ | \ \ x,y,w \ \ \epsilon\ ( a + b )^+ \} $ Draw the DFA and also write the Reg exp for the above language.
$ L = \{ wxwy \ | \ \ x,y,w \ \ \epsilon\ ( a + b )^+ \} $Draw the DFA and also write the Reg exp for the above language.
Tuhin Dutta
588
views
Tuhin Dutta
asked
Dec 4, 2017
Theory of Computation
regular-expression
finite-automata
theory-of-computation
+
–
0
votes
0
answers
19978
data structure
what is complexity 1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stack plz someone tell?
what is complexity1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stackplz someone tell?
aaru14
236
views
aaru14
asked
Dec 4, 2017
Programming in C
data-structures
+
–
0
votes
0
answers
19979
Stanford(Quiz)
Network A consists of a hub with twenty ports, each connected to exactly one end host. Network B is identical, except the hub is replaced by a switch. Which of the following are true? If the end hosts in both networks try to send the same ... can be successfully transferred simultaneously between the end hosts. The nodes in Network B can be further apart than the nodes in Network A.
Network A consists of a hub with twenty ports, each connected to exactly one end host. Network B is identical, except the hub is replaced by a switch. Which of the follow...
vijay_jr
947
views
vijay_jr
asked
Dec 4, 2017
Computer Networks
computer-networks
network-switching
routers-bridge-hubs-switches
+
–
2
votes
1
answer
19980
OS, GATE2018
ashish pal
1.0k
views
ashish pal
asked
Dec 4, 2017
Operating System
operating-system
paging
+
–
Page:
« prev
1
...
661
662
663
664
665
666
667
668
669
670
671
...
1006
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register