Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Nagarro C Interview Questions
Questions Answers Views Company eMail

Technical Ability Test: This was difficult. three questions to be attempted in 60 min. The Coplete Technical Paper was as follows: Write the Pseudo code for the following: 1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list) 2. Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9 so Larger numbers are created by gluing the digit togather. For Examle 123 is pareci Write a program that reads in a lojban string(representing a no less than or equal to 1,000,000) and output it in numbers. 3. Where now stands that small knot of villages known as the Endians, a mighty forest once stood. Indeed, legand has it that you could have stoodon the edge of the wood and seen it stretch out for miles, were it not for the trees getting in the way. In one section of the forest, the trees stood in a row and were of hight from 1 to n, each hight occurring once and once only. A tree was only visible if there were no higher trees before it in the row. For example, if the heights were 324165, the only visible trees would have been those of height 3,4 & 6. Write a Program that takes an array of integers representing the heights of the trees in the row as input and prints the list of the visible trees. //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// ////////////////// Ques1: Given an array containing k nos in the range 1..n and another scratch array of size n. Write an program to remove the duplicates from the array. Ques2: Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37 Ques3: Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: Ques4: An array of size 5X5 is given to us. The elements from 1 to 25 are to be inserted in the array, such that starting from a particular position for an element i, the next element i+1can be inserted only at the mentioned positions (u,v), and if these all positions are occupied then it returns giving a count of how many positions have been occupied in the array: //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// ////////////////// Example: if the starting element is 1 with the given positions (1,2), then next element 2 can be placed at any one of the positions marked with *. _ _ _ _ _ 1 _ _ _ * _ _ _ _ _ _ _ * _ _ * _ _ _ _ 2. Four questions of programming in c++, questions were:( 1:30 hr) a) Bubble sort through recursion b) Display Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 … c) Perform the functionality of 2-D array through 1-D array and in it the functions to be performed were: (1) Display the array in 2-D format (2) Display a particular element (3) Display a particular row (4) Display a particular column d) Give an efficient program for string matching like: Text: this is the code in the text which you have to search by code Pattern: Code Count the no. of occurrences of the pattern to be searched //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// ////////////////// a) suppose u r given a 4*3 rectangle like (take these values from user) Now u have to calculate the no. of squares in this rectangle like: No. of squares of dimension 1 is 12 No. of squares of dimension 2 is 6 No. of squares of dimension 3 is 2 No. of squares of dimension 4 is 0 Total no. of squares are 20. b) Suppose u r given a string. U have to find the occurance of the characters A-Z in that string. Each character must appear in the string and must appear only once. If It that occurs in string more than one time return 1 showing it is a perfect string otherwise return 0 showing it is not a perfect string. c) Suppose u r given 10000 marks. U have to pick up top 20 top marks from them and display it on the screen. (Use the optimal sorting algorithm) d) Suppose u have a chess board. U have to insert 8 queens on the chessboard in the style that the queens don’t intersect in the diagonals, columns and rows. If they intersect return 1 else return 0.(that is no more than one queen should be present either in row or column or diagonals.) If the queen is inserted at a position in the chessboard, its count is 1.

3444

2. Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9 so Larger numbers are created by gluing the digit togather. For Examle 123 is pareci Write a program that reads in a lojban string(representing a no less than or equal to 1,000,000) and output it in numbers.

3 7925

1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do

1 19927

Post New Nagarro C Interview Questions




Un-Answered Questions

How do I find something on an excel spreadsheet?

285


Function of nozzle holden

2363


Decibel.

2082


How do I automatically color code in excel?

307


How can we align layers of an image relative to each other?

52






What is a template in grails?

5


What is gcd? What are its advantages over nsthread?

1


What is auto-flush attribute?

572


If 24 KVA AVR having Input voltage 200-400v, Output voltage 415+-1%, what will be the voltage if Load is 13A.

1710


Tell me about % include and % eval? : sas-macro

678


What is a server instance?

471


How does a style sheet work?

275


1. What happens when too much cylinder oil is injected in the working cylinder? 2. Is the unit and normal value fuel ratio of an average diesel engine? 3. What is the formula for 1 HP of a two-cycle engine? 4. Name the indicator diagram. 5. What are the 3 parts in indicator diagram? 6. What are the causes of damage of diesel engine exhaust Valve? 7. What are the causes of I.O. high temperature in a diesel engine? 8. What trouble could result if the main engine is using a low grade of fuel? 9. What are the causes of liner high temperature? 10. What happen when too much cylinder oil is injected in the working cylinder? 11. How many lubricating holes are there in cylinder? 12. What are the defects in exhaust valve? 13. How do you control cylinder liner wear? 14. How much is the specific fuel consumption of an average diesel engine? 15. Purpose of lubricator in a large diesel engine. 16. Explain how the cylinder lubrication on main engine is done? 17. Explain the function of cooling water expansion tank. 18. Explain the causes of the exhaust valve leakage. 19. What is the purpose of I.O. circulation before and after starting of engine? 20. Names the valve connected in cylinder head of the engine. 21. Name the safety devices of diesel engine? 22. What is injection tag? 23. Explain how to measure crank web deflection? 24. In a 4 cycle engine the intake valve begins to open at? 25. What causes cylinder liner-wear down? 26. What causes diesel engine to automatically stop? 27. What causes crankcase explosion? 28. What do you call the clearing of air inside cylinder after combustion? 29. What is the circulation of I.O. pump of diesel engine? 30. What causes diesel engine trouble when using heavy oil? 31. What causes turbocharger surging? 32. What pressure is highest L.O. Gravity Head or S.W. of the stern tube circulation 33. What is fuel catalytic cracking 34. Contaminants of fuel oil 35. Crankcase oil mist detector 36. Inspection for intermediate shaft bearing. 37. What are the causes of main engine black smoke? 38. Causes of emergency trip of diesel engine 39. What are the causes if one cylinder in a diesel engine has a high temperature? 40. Explain how the lubricating oil circulates in a diesel engine. 41. What are the causes of damage to propellers? 42. What causes friction in the cylinder? 43. What causes damage to impellers? 44. In a four-stroke diesel engine, In what engine exhaust valve will open? 45. How is propeller fitted in shaft? 46. What valves are fitted in a four-stroke diesel engine? 47. What are the automatic tripping devices of diesel generator? 48. What is the purpose of thrust bearing? 49. What is fuel oil viscosity, specific gravity? 50. What are the causes of low compression in the main engine? 51. What do you measure in the banana and mountain diagram? 52. What is a brake horse power? 53. What are the requirements of a good fuel? 54. What is the purpose of a setting tank? 55. What is the purpose of a turning gear? 56. What is the purpose of starting air? 57. What is the purpose of engine preheating? 58. What is the purpose of air blow? 59. What is the purpose of stern tube? 60. Where can you find thermometers in diesel engines? 61. What would happen if there is air in fuel oil? 62. What type of pump is lubricator pump? 63. What is the purpose of piston rings? 64. The advantage of a controllable pitch propeller? 65. Explain the fresh water cooling system. 66. What are the typical indicator diagrams? 67. What is the trunk type and crosshead type piston 68. What is higher IMP or BHR 69. What is the sensitive part of the liner 70. Discuss how to prepare the M/E in the standby condition 71. Explain how to clean LO 72. Explain the principle of Suizer Fuel oil injection pump 73. What is the volume develop by the piston from BDC to TDC 74. Enumerate some trouble of fuel injection valve 75. Causes of M/E high exhaust valve temperature 76. What is the purpose of scrapper ring 77. What are the items to inspect after cylinder liner is pulled out 78. What resistance the ship encounter when the vessel is at sea 79. What will you do in case of scavenging fire 80. Draw the flow of F.O. diagram from service tank to Main Engine? 81. What are the types of cleaning main engine Turbo Charger blower side? 82. What are the causes of main engine Turbo Charger blower side dirty? 83. Sketch the jacket cooling system? 84. What will cause if you run your engine in critical RPM continuously? 85. What are the properties of fuel oil? 86. What will you check if one cylinder of your engine is not like the others? 87. What do you do when in your duty, ME alarm oil mist detect high density? 88. Classification of bunkers? 89. What is the purpose of increasing the pressure on the F.O. system of the engine? 90. What are the advantages of white metal? 91. What is the use of white metal? 92. What is the cause of cylindrical liner overheating? 93. What are you going to inspect or check when you open the crankcase? 94. Draw L.O. system in diesel engine? 95. What is the specific gravity of F.O. and D.O? 96. What is pour point? 97. What is flashpoint? 98. What materials are used for engine propeller? 99. How fuel oil consumed by medium engine? 100. What is the remedy if due exchanging, valve broke out during engine running operation? 101. At 50 Centigrade (Fuel oil) what is its cast? 102. At 50 Centigrade (Diesel oil) what is its cast? 103. What do you call a piston travel from TDC to BDC? 104. What happened if the exhaust valve is leaking? 105. Why and what cause of leak fuel oil in high pressure pipe of main engine? 106. What device installed in the F.O. system when excess oil return to drain tank? 107. What parameters to be reported when we send lubricating oil for shore analysis? 108. Heavy fuel oil sulfur content and counter measures? 109. What will happen when engine stays in critical speed of 58-65 RPM? 110. What are the causes of L.O. high temperature? 111. How do you detect starting valve leaks? 112. What are the causes of dirty lubricating oil? 113. Identify the parts of indicator diagram? 114. What are the symptoms of broke piston ring? 115. How much pressure on air reservoir? 116. Name the parts of piston through connecting rod? 117. What are the causes of positive and negative propeller slip? 118. What will be the cause of scavenging fire? 119. What will you do when scavenge fire happened? 120. What do you going to observe, when a diesel engine is running? 121. Where is the expansion tank located? 122. How the F.W.C. system of diesel engine circulate? 123. What is mean effective press? 124. Draw a crankshaft and show the parts? 125. What is the lower part of connecting rod? 126. What should you do before you start the engine? 127. When you will install a new piston ring, what will be the position of it? 128. What is max pressure? 129. What are the things to do when approaching the port? 130. What will be the cause of the loose compression in a cylinder? 131. What is the maximum P-max for a cylinder in M/E. 132. What is the indication of leaking starting valve of an engine? 133. What is the thermal efficiency of a diesel engine? 134. What will be the cause of high temperature in one cylinder of D/E?

4668


how to insert/update a csv file by comparing it with another csv file?

1650


What is sequential sorting?

513