Daily Archives: February 4, 2020
OUTPUT 2019
The following function Mystery( ) is a part of some class. What will the function Mystery ( ) return when the value of num=43629, x=3 and y=4 respectively? Show the dry run/ working. Mystery ( 43629 , 3 , 4 … Continue reading
OUTPUT 2017
The following function magicfun( ) is a part of some class. What will the function magicfun( ) return, when the value of n=7 and n=10, respectively? Show the dry run/working: (i) when n=7 OUTPUT : magicfun(7) magicfun(3) * 10 + … Continue reading
OUTPUT 2015
The following function is a part of some class. Assume ‘x’ and ‘y’ are positiveintegers, greater than 0. Answer the given questions along with dry run / working. (i) What will be returned bysomeFun(24,2)? (ii) What will be returned bysomeFun(84,2)?(iii) … Continue reading
OUTPUT 2016
The following function Check( ) is a part of some class. What will the function Check( ) return when the values of both ‘m’ and ‘n’ are equal to 5? Show the dry run / working OUTPUT : Check(5,5) 6 … Continue reading
Linked List 2019
A linked list is formed from the objects of the class Node. The class structure of the Node is given below: class Node { int num; Node next; } Write an Algorithm OR a Method to find and display the … Continue reading
Linked List 2018
A linked list is formed from the objects of the class Node. The class structure of the Node is given below: class Node { int n; Node link; } Write an Algorithm OR a Method to search for a number … Continue reading
Linked List 2017
A linked list is formed from the objects of the class Node. The class structure of the Node is given below: class Node { int num; Node next; } Write an Algorithm OR a Method to count the nodes that … Continue reading
Linked List 2016
A linked list is formed from the objects of the class Node. The class structure of the Node is given below: class Node { String name; Node next; } Write an Algorithm OR a Method to search for a given … Continue reading
Linked list 2015
A linked list is formed from the objects of the class: class Nodes{int num;Nodes next;}Write an Algorithm OR a Method to print the sum of nodes that contains only odd integers of an existing linked list.The method declaration is as … Continue reading