/*******************section B ********************************/
------------part A (c and unix, 10 questions were asked)-----------
1.void main()
{
extern int a;
a=10;
printf("%d",sizeof(a));
}
will
a. give linker error- a not defined
b. print 10
c. give compiler error
ans a;
2.int a[10];
a[0]=12;
a[12]=17;
printf("%d,%d",a[0],a[12]);
will compiler show any error?
ans no;
3.socket() is a
a.system call
b. library function
c.both
d. none
ans b;
4.the parameter of sizeof operatror is
a.data type
b.variable
c.both
d.none
ans c;
5.the argument of switch command is of type
a.character
b.integer
c.both
d.all of the above
6.
----------------part b(c++ ,10 question)
1. differance between pointer and referance
2.inheritance of a class is relationship like
a. IS A(answer)
b. HAS A
c.
d.
3.In c++ differance between structure and class
a.
b.
c.
d.access specifier (answer)
4.default parameter implies
5.
guidelines: have a command on these topics
virtual functon
multiple inheritance( 2 questions)
operator overloading
------------------------------------
No comments:
Post a Comment