Custom Search

HOT VACANCIES

Monday, February 25, 2008

Altair Engineering placement paper

Sample Test Paper :Altair Engineering

1. int b=10;
int *p=&b;
*p++;
printf("%d",*p);
what is the output?

2. What is the difference between malloc, calloc and realloc?

3. What does malloc return in C and C++?

4. main()
{
char *a="hello";
char *b="bye";
char *c="hai";
int x=10,y=100;
c=(x)?a:b;
printf("%s",c);
}
whats the output?

5. void main()
{
int a,b;
a=sumdig(123);
b=sumdig(123);
printf("%d %d",a,b);
}
int sumdig(int n)
{
static int sum;
int d;
if(n!=0)
{
d=n%10;
n=(n-d)/10;
sum=sum+d;
sumdig(n);
}
else
return s;
}
what is the output?

6. Declare a pointer to a function that takes a char pointer
as argument and returns a void pointer.

7. How do we open a binary file in Read/Write mode in C?

C++

8. class A
{
public:
A()
{
}
~A();
};
class derived:public A
{
derived();
};
what is wrong with this type of declaration?

9. what do you mean by exception handling?

10. What are "pure virtual" functions?

11. What is the difference between member functions and
static member functions?

12. What is the4 difference between delete[] and delete?

13. Question on Copy constructor.

14. What are namespaces?

15. One question on namespace.

16. What are pass by valu and pass by reference?
what is the disadvantage of pass by value?
I didnt get this. if you have the answer plz tell me.

17. How to invoke a C function using a C++ program?

18. char *str;
char *str1="Hello World";
sscanf(str1,"%s",str);
what is the output?

19. Difference between function overloading and function overriding.

20. There is a base class with a member function fnsub(). There are
two classes super1 and super2 which are subclasses of the base class sub.
if and pointer object is created of the class sub which points to any
of the two classes super1 and super2, if fnsub() is called which one
will be inoked?

6 comments:

Anonymous said...

My partner and I absolutely love your blog and find most of your post's to be exactly what I'm looking for.

Would you offer guest writers to write content to suit your
needs? I wouldn't mind producing a post or elaborating on some of the subjects you write concerning here. Again, awesome weblog!

my web site :: wordpress grundlagenschulung

Anonymous said...

Good day! I know this is kinda off topic nevertheless I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a
blog post or vice-versa? My blog discusses a lot of
the same subjects as yours and I think we could greatly benefit from each other.
If you're interested feel free to send me an email. I look forward to hearing from you! Superb blog by the way!

Review my web-site low carb sauces

Anonymous said...

Hi there, after reading this remarkable post i am also
delighted to share my know-how here with friends.


Feel free to visit my blog post :: solaraktien kaufen

Anonymous said...

It is not my first time to visit this site, i
am browsing this site dailly and get fastidious
facts from here daily.

Also visit my blog post; steinzeiternährung

Anonymous said...

If some one needs expert view about blogging and site-building after that i propose
him/her to pay a visit this weblog, Keep
up the good job.

Feel free to surf to my page ... paleo diät
my page > diät erfolge vorher nachher

Anonymous said...

Thanks for one's marvelous posting! I certainly enjoyed reading it, you can be a great author. I will ensure that I bookmark your blog and will eventually come back from now on. I want to encourage you continue your great posts, have a nice morning!

Feel free to surf to my homepage :: diät leicht gemacht
Also see my page: zitronen kapseln zum abnehmen

FOR MORE PAPERS AND OTHER PLACEMENT RELATED INFORMATION VISIT BELOW MENTIONED LINKS

Followers