3 Coding Questions, test duration 30 min, and pen-and-paper test.
Lovely Professional University, Phagwara, Punjab. 05 February 2016.
Q1) Write a program to compute the following: 1+(2*3)+(4*5*6)+…. up to n times. Where n is the given input.
Q2) Write a program to find a loop in a linked list.
Q3) For a given number, find the nearest prime number.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.