Data Structures and Algorithms Questions And Answers.


1.Which of these best describes an array?
A. A data structure that shows a hierarchical behaviour
B. Container of objects of similar types
C. Arrays are immutable once initialised
D. Array is not a data structure

2.How do you initialize an array in C?
A. int arr[3] = (1,2,3);
B. int arr(3) = {1,2,3};
C. int arr[3] = {1,2,3};
D. int arr(3) = (1,2,3);

3.Process of inserting an element in stack is called ?
A. Create
B. Push
C. Evaluation
D. Pop

4.Process of removing an element from stack is called ?
A. Create
B. Push
C. Evaluation
D. Pop

5.The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
A. AB+ CD*E – FG /**
B. AB + CD* E – F **G /
C. AB + CD* E – *F *G /
D. AB + CDE * – * F *G /

Read More..



Online Test : Take an Online Data Structures and Algorithms Aptitude Test Now!



Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS