Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

IBS Placement paper For Freshers part-2

Be First!
by February 23, 2016 IBS, Placement Papers with Answers

IBS11.What do you mean by inline function?

The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application’s performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.
12.Write a program that ask for user input from 5 to 9 then calculate the average

#include “iostream.h”
int main() {
int MAX = 4;
int total = 0;
int average;
int numb;
for (int i=0; icout << “Please enter your input between 5 and 9: “;
cin >> numb;
while ( numb<5>9) {
cout << “Invalid input, please re-enter: “;
cin >> numb;
}
total = total + numb;
}
average = total/MAX;
cout << “The average number is: ” <<>return 0;
}

13.What is public, protected, private?

Public, protected and private are three access specifiers in C++.
Public data members and member functions are accessible outside the class.
Protected data members and member functions are only available to derived classes.
Private data members and member functions can’t be accessed outside the class. However there is an exception can be using friend classes.

14.What is skeleton and stub? what is the purpose of those?

Stub is a client side representation of the server, which takes care of communicating with the remote server. Skeleton is the server side representation. But that is no more in use… it is deprecated long before in JDK.

15.What is the final keyword denotes?

final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.

16.What is the significance of ListIterator?

You can iterate back and forth.

17.What is the major difference between LinkedList and ArrayList?

LinkedList are meant for sequential accessing. ArrayList are meant for random accessing.

18.What is nested class?

If all the methods of a inner class is static then it is a nested class.

19.What is inner class?

If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class.

20.What is composition?

Holding the reference of the other class within some other class is known as composition.

(109)

Previous
Next

Leave a Reply