Data Structures & Java
Data Structures & Java
((A + B) - C) * D $ (E + F)
AB – C * DEF + $ /
A + B * C (D / E) – F
+ - AB - * C + D E
Q8) Find the sum of data in nodes of circular queue stored as integers
Q10) Functions for finding total number of nodes having even values of double linked list
Q11) Functions for finding total number of nodes having odd values of double linked list
Q12) Functions for inserting node at any location in a single linked list
Q17) Function for finding total number of nodes having even values
Q19) calculate the depth of a binary tree if total number of nodes in binary tree are 255
Q20) Function for preorder traversal of binary search tree
Q27) Function for push and pop operation on a stack using array
Q28) Function to search an element from integer array using binary search
A
B C
E F D
Compute the row major and column major address of the member n[12][20]. The base
address is 3000
Java
Q1) Write an awt application which will have 3 scrollbars and a text field. Change background
colour of the text field when scrollbars are scrolled
Q2) write a threaded application which will change caption of the button after every second.
Initially caption of the button is “I”
Q3) write an application which will accept a filename using command line. Show the number of
lines present in that file.
Q4) write an application which will accept a number using command line If the given number is
not a prime, throw “not a prime number exception”
Q5) write an application which will create following threads: thread A printing cumulative sum
of natural numbers & thread B printing alternative characters a,c,e,…
Q6) write an application which will accept age using command line. If age >60 throw senior
citizen exception
Q7) write an application which will accept a filename using command line encrypt the contents
and display it
Q8) write a book class with attributes bookno, title, author, book availability status. Write 3
constructors and a method to check the availability of given book
Q9) write applet which will display 3 scrollbars & when scrollbar value is changed, set
background colour accordingly
2 3
4 5 6