Choose a topic to test your knowledge and improve your Data structure skills
Which of the following statement is true about char ****a ?
Are *ptr++ and ++*ptr are same?
What will be the output of the following code? Void main(){int a=10;int *b=&a;int **c=&b;printf("%d %d %d",a,*b,**c);}
Which of the following is a collection of different data type elements?
What is the similarity between structure,union and enum?
The members of the union are accessed by____
How many bits are absolutely necessary to store an ASCII character ?
The result of 0001 1010 & 0000 1000 is ___
The result of 0001 1010^0001 0000 is____
The result of 0001 1010 << 2 is____
The most significant bit is lost in following operation
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; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int i=4,x; x=++i + ++i + ++i; printf("%d",x); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int a=2; if(a==2){ a=~a+2<<1; printf("%d",a); } else{ break; } return 0; }
. #include <stdio.h> #include <string.h> int main(){ int i=0; for(;i<=2;) printf(" %d",++i); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int array[]={10,20,30,40}; printf("%d",-2[array]); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater than"); else printf("Less than"); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> #define max 5; int main(){ int i=0; i=max++; printf("%d",i++); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ double far* p,q; printf("%d",sizeof(p)+sizeof q); return 0; }
C language was invented by
The data type created by the data abstraction process is called
A variable which is visible only in the function in which it is defined, is called
Which of the following data structure is linear type ?
Unsigned integers occupies
Unsigned integers occupies
In C, if you pass an array as an argument to a function, what actually gets passed?
Which data structure allows deleting data elements from front and inserting at rear?
Queue is a -------------- List .
A node in a linked list must contain at least
Consider that n elements are to be sorted. What is the worst case time complexity of Bubble sort?
The complexity of linear search algorithm is
Which of the following data structure is linear data structure?
What is the maximun number of dimensions an array in C may have?
An external variable
The declaration "unsigned u" indicates u is a/an
A declaration "short int" is used for variables
Which of the following 'C' type is not a primitive data structure?
The program fragment int i = 263 ; putchar (i) ; prints
The variables which can be accessed by all modules in a program, are called
The main measures of efficiency of an algorithm are
The worst case occures in linear search algorithms when
the terms push and pop are related to
What will be the output of the program? #include<stdio.h> int main() { int X=40; { int X=20; printf("%d ", X); } printf("%d ", X); return 0; }
What additional requirement is placed on an array, so that binary search may be used to locate an entry?
One difference between a queue and a stack is:
If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?
Which of the following formulas in big-O notation best represent the expression n²+35n+6?
What term is used to describe an O(n) algorithm
The keyword used to transfer control from a function back to the calling function is
How many times the program will print "Amrutvahini" ? #include<stdio.h> int main() { printf("Amrutvahini"); main(); return 0; }
What will be the output of the program? #include<stdio.h> int i; int fun(); int main() { while(i) { fun(); main(); } printf("Hello "); return 0; } int fun() { printf("Hi"); }
In a linked list, the pointer of the last node contains a special value, called the ______ pointer.
In a ________ linked list, the last node's link field points to the first node of the list.
The second part of the node, is called _______ field, and contains the address of the next node in the list.
The link list also contains a list pointer variable called start or ________.
A ________ linked list is a linked list structure in which each node has a pointer to both its successor and predecessor.
_____ list is a special list that is maintained, which consists of unused memory cells.
______ is a technique using which a computer periodically collects all the deleted space onto the free storage list.
___ attacks the problem of fragmentation by moving all the allocated blocks to one end of memory, thus combining all the holes.
A ________ linked list is a linked list which always contains a special node, called the header node.
A polynomial can be represented in a _______ by just storing the coefficient and exponent of each term.
______ refers to situation where one wants to delete data form a data structure that is empty
________ is an organization that provides faster request and return time response.
_____ attacks the problem of fragmentation by moving all the allocated blocks to one end of memory, thus combining all the holes.
A _______ list structure can be traversed in two directions-- in the forward direction from beginning of the list to end, or in the backward direction, from the end of the list to the beginning.
____ header list combines the advantages of a two-way list and a circular header list.
In linked list,a node contain
In linked list,the logical order of elements
Null pointer is used to tell
List pointer variable in linked list contains address of the
Because of linear structure of linked list having linear ordering,there is similarity between linked list and array in
Searching of linked list requires linked list to be created
A circular list can be used to represent
To insert a node in a circular list at rear end it should be inserted at …...of the queue
In a circularly linked list organisation ,insertion of a record involves the modifications of
What is true about linked kist?
A node of linked list contains_______
Which nodes contains a null pointer in a linked list?
Deletion of a node from an empty linked list will cause________
Insertion in a linked list requires modification of____pointers