© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu


  Home Placement Paper Kit Technical Questions ► C and C++ ▼

241.What is an algorithm (in terms of the STL/C++ standard library)?

242. How would you use bsearch() function to search a name stored in array of pointers to string?

243.What is std::auto_ptr?

244. How would you use the functions sin(), pow(), sqrt()?

245.What is destructor?

246. How would you use the functions memcpy(), memset(), memmove()?

247.What is default constructor?

248. How would you use the functions fseek(), fread(), fwrite() and ftell()?

249.What is copy constructor?

250. How would you use the functions randomize() and random()?

251.What is wrong with this statement? std::auto_ptr ptr(new char[10]);

252. How would you obtain current time and difference between two times?

253. When are copy constructors called?

254. How would you implement a substr() function thatextracts a sub string from a given string?

255. Can you explain the term "resource acquisition is initialization?"

256. What is the difference between the functions rand(), random(), srand() and randomize()?

257.What is conversion constructor?

258. What is the difference between the functions memmove() and memcpy()?

259. What are the differences between a struct in C and in C++?

260. How do you print a string on the printer?

261. Can you use the function fprintf() to display the output on the screen?

262.What is inheritance?

263. What is Namespace?

264. What are the types of STL containers?.

265. Difference between “vector” and “array”?

266. Explain polymorphism. Provide an example.

267. Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return(sum of 3, 5 and 7)

268. You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?

269. Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number.

270. How to write a program such that it will delete itself after exectution?

271. Can we generate a C++ source code from the binary file?

272. What are inline functions?

273. Differentiate between a FOR loop and a WHILE loop?

274. What are its uses?

275. What are the different storage classes in C?

276. Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

277.what is the diff between "new" and "operator new" ?

278. What is the difference between Structure and Unions?

279. What is diff between malloc()/free() and new/delete?

280. What are the advantages of using Unions?

Page 7

1 2 3 4 5 6 7 8 9 10 11 12 13
SLogix Student Projects

⇓Student Projects⇓
⇑Student Projects⇑
bottom