Alter Placement Question Papers




Alter Placement Question Papers

Filed under:

Alter Placement Question Papers

Sample Test Paper :Alter 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 sub, 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?

Related Plament Papers and Companies

Cadence Placement Question Papers

Cadence Placement Question Papers The tests were : 1. Analytical reasoning: maths 2. diagrammatic reasoning: In this, we were given 8 diagrams and had to select the9th corresponding dg frm the givn choices. U have to be very fast in this test. 3. problems to be solved using Venn diagrams. 4. This test was to check our adaptation to the computer screen.We had to solve abt 30 qs in 15 min. U have to be very very fast in this also.

Nucleus Placement Question Papers

Nucleus Placement Question Papers English Section: 1. gruesome=? (4 choces were given) ans:frightful 2. barbarian=? ans:uncivilized 3. serene=? ans:calm 4. 4 sentences were given,they asked u to choose right senctence. ans: How's the weather 5. Mirror on the wall.They asked to replace on word with meaningful option. ans: mirror at the wall. (Plz check.) 6. He sometimes works________night. a)all b)at c)all of the above d)none of above ans: c(check) 7. The document______delivered. ans: has been(plz check) 8. ____ is it from manchaster to london. ans: How far 9. I have______my car. ans: driven 10. Correct the sentence....They have been doing it since 12 months. ans: replace 'since' with 'for' Logical reasoning 1.

Oracle

Oracle Placement Question Paper 1. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The one who was not last or first was a math major.The one who came in third had black hair. Linda had red hair. Amy had no musical abilities. Who was first? (A) Cindy (B) Amy (C) Linda (D) None of these 2. Two twins have certain peculiar characteristics. One of them always lies on Monday, Wednesday, Friday. The other always lies on Tuesdays, Thursday and Saturdays. On the other days they tell the truth. You are

Grapcity Placement Question Papers

Grapcity Placement Question Papers 1.Is it possible for a member function of a class to activate another member function of the same class? a. no b. yes,but only public member functions. c. Yes, only private member functions d. Yes, both public & private member functions can be activated 2. Can 2 classes contain member functions with the same name? a. no b. yes, but only if the 2 classes have the same name c. yes, but only if the main program does not declare both kinds d. yes, this is always allowed 3.what is the purpose of template functions? a. to allow a single function to be used with varying types of

DSQ Placement Question Papers

DSQ Placement Question Papers 1.Is it possible for a member function of a class to activate another member function of the same class? a. no b. yes,but only public member functions. c. Yes, only private member functions d. Yes, both public & private member functions can be activated 2. Can 2 classes contain member functions with the same name? a. no b. yes, but only if the 2 classes have the same name c. yes, but only if the main program does not declare both kinds d. yes, this is always allowed 3.what is the purpose of template functions? a. to allow a single function to be used with varying types

  • Resources













  • Placement Papers Archives