Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
0
votes
1
answer
4771
What is the difference B/W call-by-value and call-by-name ?
Amit Sharma
391
views
Amit Sharma
asked
Jun 3, 2016
Programming in C
programming
+
–
6
votes
3
answers
4772
ISRO2009-29
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is 1267 1164 1264 1169
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting addres...
Desert_Warrior
16.0k
views
Desert_Warrior
asked
Jun 3, 2016
Programming in C
isro2009
array
programming
+
–
2
votes
0
answers
4773
ISI2012-PCB-CS-5b
Let $T$ be an AVL tree for storing a set of $n$ integers. Insertions and deletions in $T$ can hence be done in $O(\log n)$ time. Given two integers $a$ and $b, \: a < b$, you have to output nab, the number of integers in T whose ... $T$ and its insertion algorithm are required? Give a pseudo-code for computing $n_{ab}$.
Let $T$ be an AVL tree for storing a set of $n$ integers. Insertions and deletions in $T$ can hence be done in $O(\log n)$ time. Given two integers $a$ and $b, \: a < b$,...
go_editor
392
views
go_editor
asked
Jun 3, 2016
DS
descriptive
isi2012-pcb-cs
data-structures
avl-tree
+
–
0
votes
0
answers
4774
height of the binary tree..
A weight balanced tree is a binary tree in which for each node, the no. of nodes in the left subtree is atleast half and at most twice the no. of nodes in the right sub tree. The maximum possible height of such a tree with n nodes is best described by which of the following? (a) log2n (b) log4/3n (c) log3n (d) log3/2n
A weight balanced tree is a binary tree in which for each node, the no. of nodes in the left subtree is atleast half and at most twice the no. of nodes in the right sub t...
padmaja
247
views
padmaja
asked
Jun 2, 2016
DS
data-structures
+
–
0
votes
1
answer
4775
C \ predict the output
void main() { int i=100,j=10,k; int *p=&j; k=i/(*p); printf("%d",k); } OPTIONS : [ a] 0 [b] 10 [c] 100 [d] None of the above
void main() { int i=100,j=10,k; int *p=&j; k=i/(*p); printf("%d",k); }OPTIONS : [ a] 0 [b] 10 [c] 100 [d] None of the above
Desert_Warrior
704
views
Desert_Warrior
asked
Jun 2, 2016
Programming in C
programming-in-c
output
+
–
0
votes
1
answer
4776
C \ predict output
Desert_Warrior
375
views
Desert_Warrior
asked
Jun 2, 2016
Programming in C
programming-in-c
output
+
–
0
votes
1
answer
4777
C \ predict output
int main(){ static int arr[20]; int x=0; arr[x] = x++; printf("\n %d %d %d", arr[0],arr[1],x); } OPTIONS : A) 000 b) 101 c) 001 D) can't say
int main(){ static int arr[20]; int x=0; arr[x] = x++; printf("\n %d %d %d", arr[0],arr ,x); }OPTIONS :A) 000b) 101c) 001D) can't say
Desert_Warrior
737
views
Desert_Warrior
asked
Jun 2, 2016
Programming in C
programming-in-c
output
array
+
–
0
votes
1
answer
4778
C\ predict output
main(){ int i=400,j=300; printf("%d..%d"); } OPTIONS :
main(){ int i=400,j=300; printf("%d..%d"); }OPTIONS :
Desert_Warrior
924
views
Desert_Warrior
asked
Jun 2, 2016
Programming in C
programming-in-c
output
+
–
0
votes
2
answers
4779
C \ predict the output
int main(){ int x=5,y; x++; printf("x=%d\n",x); y=x= ++x+10/x; printf("new x= %d",x); } OPTIONS :
int main(){ int x=5,y; x++; printf("x=%d\n",x); y=x= ++x+10/x; printf("new x= %d",x); }OPTIONS :
Desert_Warrior
1.5k
views
Desert_Warrior
asked
Jun 2, 2016
Programming in C
programming-in-c
output
+
–
0
votes
2
answers
4780
What is the size of stack?
Consider the following infix expression which is to be converted to postfix expression using stack. (((P+Q)*(R+S))/T)+(A*(B+C))
Consider the following infix expression which is to be converted to postfix expression using stack.(((P+Q)*(R+S))/T)+(A*(B+C))
gshivam63
1.8k
views
gshivam63
asked
Jun 2, 2016
0
votes
2
answers
4781
Calculate address
Consider 3 dimensional array A[90][30][40] stored in a linear array in column major order. If the base address starts at 10, what is the location of A[20][20][30]? Assume the first element us stored at A[1][1][1].
Consider 3 dimensional array A[90][30][40] stored in a linear array in column major order. If the base address starts at 10, what is the location of A[20][20][30]? Assume...
gshivam63
7.7k
views
gshivam63
asked
Jun 2, 2016
–1
votes
3
answers
4782
What is height of bst?
The following numbers are inserted into an empty bst in given order 10,1,3,5,15,12,16. What is the height of the bst( the height is the maximum distance of a leaf node from the root)
The following numbers are inserted into an empty bst in given order 10,1,3,5,15,12,16. What is the height of the bst( the height is the maximum distance of a leaf node fr...
gshivam63
4.2k
views
gshivam63
asked
Jun 2, 2016
0
votes
1
answer
4783
storage classes in arguments
why we can not have storage classes identifier in arguments and what is actual arguments/formal arguments/paramater etc
why we can not have storage classes identifier in argumentsand what is actual arguments/formal arguments/paramater etc
Sanjay Sharma
559
views
Sanjay Sharma
asked
Jun 2, 2016
Programming in C
functions
storage-classes-in-c
+
–
3
votes
1
answer
4784
Which is correct and why?
Assume that there are two lower triangular matrices A and B of size n*n. If matrix A and transpose of B are fit into a rectangular matrix C of size n*(n+1), then a) B[i,j]=C[i,j+1] b)B[i,j]=C[j+1,i] c)B[i,j]=C[j, i+1]
Assume that there are two lower triangular matrices A and B of size n*n. If matrix A and transpose of B are fit into a rectangular matrix C of size n*(n+1), thena) B[i,j]...
gshivam63
1.3k
views
gshivam63
asked
Jun 1, 2016
5
votes
1
answer
4785
What is the expected number of probes in a successful search
consider an open address hash table with a total of 10000 slots containing 9800 entries. a) 2 b) 3 c) 4 d) 4.5
consider an open address hash table with a total of 10000 slots containing 9800 entries. a) 2b) 3c) 4d) 4.5
gshivam63
6.9k
views
gshivam63
asked
Jun 1, 2016
1
votes
1
answer
4786
Which of the following in correct
Assume that there are two lower triangular matrices A and B of size n*n. If matrix A and transpose of B are fit into a rectangular matrix C of size n*(n+1), then a) B[i,j]=C[i,j+1] b)B[i,j]=C[j+1,i] c)B[i,j]=C[j, i+1]
Assume that there are two lower triangular matrices A and B of size n*n. If matrix A and transpose of B are fit into a rectangular matrix C of size n*(n+1), thena) B[i,j]...
gshivam63
769
views
gshivam63
asked
Jun 1, 2016
0
votes
0
answers
4787
compiler
In which file the compiler manage the various objects, which are used in windows programming ? (A) Control File (B) Binary File (C) Text File (D) Obj File
In which file the compiler manage thevarious objects, which are used inwindows programming ?(A) Control File(B) Binary File(C) Text File(D) Obj File
Sanjay Sharma
326
views
Sanjay Sharma
asked
Jun 1, 2016
0
votes
0
answers
4788
c++ constructor
70. Assume that we have constructor functions for both base class and derived class. Now consider the declaration in main( ). Base * P = New Derived; in what sequence will the constructor be called ? (A) Derived class constructor followed by Base ... by derived class constructor. (C) Base class constructor will not be called. (D) Derived class constructor will not be called
70. Assume that we have constructorfunctions for both base class andderived class. Now consider thedeclaration in main( ). Base * P = NewDerived; in what sequence will th...
Sanjay Sharma
359
views
Sanjay Sharma
asked
Jun 1, 2016
1
votes
1
answer
4789
BST
A data structure is required for storing the set of integers such that each of the following operations can be done in O(log n) time, where n is the number of elements in the set 1. Deletion of the smallest element 2. Insertion of an element if it is not already present in ... not a balance bst b) a balance bst but not a heap c.) Both balance bst and a heap d.) Neither balance bst nor a heap
A data structure is required for storing the set of integers such that each of the following operations can be done in O(log n) time, where n is the number of elements in...
gshivam63
821
views
gshivam63
asked
May 31, 2016
DS
data-structures
avl-tree
+
–
0
votes
2
answers
4790
Post order traversal
Post order traversal of a BST is 35,50,55,60,50,100.then what can you say about the tree? (A) Min heap (B) Max heap (C) Strict binary tree (D) None of these
Post order traversal of a BST is 35,50,55,60,50,100.then what can you say about the tree?(A) Min heap(B) Max heap(C) Strict binary tree(D) None of these
gshivam63
2.9k
views
gshivam63
asked
May 31, 2016
DS
data-structures
binary-search-tree
+
–
Page:
« prev
1
...
234
235
236
237
238
239
240
241
242
243
244
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register