Você está na página 1de 5

SignUP

Hot Jobs
Placement Papers
Careers
Campus Pulse
Recruiters
Discussion Forum

Alter Systems Test Paper: 1 |


PlacementWeek Papers
Home >> Placementweek >> Alter>> Test Paper :1 This Alter
Paper is viewed by 104407 times Company List

Ads by Google
Paper Cone machinery
Automatic High Speed Machiner y
For High Quality Textile Cones
www.sodaltech.in
Go2Paper
The Online Paper Marketplace
Bu y/Sell All Paper Grades.
www.go2paper.com
Proceq - Parotester 2
Roll Hardness Tester for objective
and rapid evaluation of foils, etc.
www.proceqasia.com
Notebooks Clairefontaine
Expressive papers for schools,
offices, arts, leisure, decoration
www.clairefontaine.com
Mondi Packaging
Release Liner Solutions
For Your Success
www.mondigroup.com
Photo Paper
designer stationer y, certificates,
business cards, envelopes
www.Geographics.com
Test Paper :1

Paper Type : Technical - C & C++

Posted B y : admin

Sample Test Paper :Alter Engineering

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

What is the difference between malloc, calloc and realloc?

What does malloc return in C and C++?

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

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?

Declare a pointer to a function that takes a char pointer


as argument and returns a void pointer.

How do we open a binar y file in Read/Write mode in C?

C++

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

what do you mean by exception handling?

What are "pure virtual" functions?

What is the difference between member functions and


static member functions?

What is the4 difference between delete[] and delete?

Question on Copy constructor.

What are namespaces?

One question on namespace.


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.

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

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

Difference between function overloading and function overriding.

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?

View Comments

Comments / Solutions
its really nice n very intersting to find the answers Posted by:JAGADESH

Comments / Solutions
11 is answer of 1st question Posted by:pandurang raut

Comments / Solutions
11 is not the answer to ques 1.
it shows some Posted by:sudhansu

Comments / Solutions
11 IS THE ANSWER FOR Q NO 1 Posted by:MD BADRU

Comments / Solutions
its very useful for us very informative thanks a lot Posted
b y:durgalakshmi Enter Your Comments

Web freshersworld.com
Career Map | Defence Careers | GATE | GRE | MBA |Higher Studies | Cool
Tests | Build Resume | Interview Tips
Contact US|Tell A Friend| Advertise with Us | Feedback| Sign Up |
President's Note

Você também pode gostar