Most viewed questions in Programming and DS

42 votes
2 answers
96
What does the following fragment of C program print?char c[] = "GATE2011"; char *p = c; printf("%s", p + p[3] - p );$\text{GATE2011}$$\text{E2011}$$2011$$011$
2 votes
5 answers
101
The minimum number of fields with each node of doubly linked list is1234
43 votes
8 answers
102
An Abstract Data Type (ADT) is:same as an abstract classa data type that cannot be instantiateda data type for which only the operations defined on it can be used, but no...
44 votes
5 answers
103
The concatenation of two lists is to be performed on $O(1)$ time. Which of the following implementations of a list should be used?Singly linked listDoubly linked listCirc...
1 votes
1 answer
106
8. What are the worst case and average case complexities of a binary search tree?a) O(n), O(n)b) O(logn), O(logn)c) O(logn), O(n)d) O(n), O(logn)
7 votes
4 answers
108
The number of possible ordered trees with 3 nodes A, B, C is:(a) 16 (b) 12 (c) 6 (d) 10 what is ordered tree alignment?
38 votes
7 answers
110
Let $T$ be a tree with $10$ vertices. The sum of the degrees of all the vertices in $T$ is ________