Professional Documents
Culture Documents
GJHKJ
GJHKJ
1.void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{ printf("EXAM"); } }
What is the output?
1) XAM is printed 2) exam is printed 3) Compiler Error 4) Nothing is printed
33. Which of the following data structure is not linear data structure?
1) Arrays 2) Linked lists 3) Both of above 4) None of above
34. Which of the following data structure is linear data structure?
1) Trees 2) Graphs 3) Arrays 4) None of above
35. The operation of processing each element in the list is known as
1) Sorting 2) Merging 3) Inserting 4) Traversal
36. . Finding the location of the element with a given value is:
1) Traversal 2) Search 3) Sort 4) None of above
37. Arrays are best data structures
1) for relatively permanent collections of data
2) for the size of the structure and the data in the structure are constantly ch
anging
3) for both of above situation
4) for none of above situation
38. Linked lists are best suited
1) for relatively permanent collections of data
2) for the size of the structure and the data in the structure are constantly ch
anging
3) for both of above situation
4) for none of above situation
39. Each array declaration need not give, implicitly or explicitly, the informat
ion about
1) the name of array 2) the data type of array
3) the first data from the set to be stored 4) the index set of the array
40. The elements of an array are stored successively in memory cells because
1) by this way computer can keep track only the address of the first element and
the addresses of other elements can be calculated
2) the architecture of computer memory does not allow arrays to store other than
serially
3) both of above 4) none of above
41. A cyclic graph has:
1). a shape like a unicycle 2) a graph that cycles from vertices to edges
3) a cycle of two or more nodes 4) a cycle of three or more nodes
42. A(n) _______________________ graph is a graph in which each vertex
has a connection to every other vertex.
1) directed 2) cyclic 3) fully connected 4) None of the above