Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Sunday, 20 July 2008

Technical - C & C++ Paper - 4

Nautix C,C++ & Unix paper:

C++ paper:

  1. cin is an
    a.function
    b.object
    c.class.

  2. I con,t remember the ques but the ans is Virtual base class

  3. what is the use of scope resolution operator?

  4. Advantage of inline function?

  5. copy constructor is
    ans:call by value.

  6. ques on vertual destructor?

  7. template one ques?

  8. one q, on container class?

C paper

  1. How will u terminate the statement?
    ans: ;

  2. select the wrong one
    a. a+=1;
    b. a*=2;
    c. a**=1;(ans)
    d. a>>=1;

  3. main()
    {
    int n,i=1;
    switch(n)
    {
    case 1:
    some stuff;
    case 2:
    some stuff;
    default:
    i=10;
    }
    printf("i=%d",i);
    }
    what will be value of i;
    ans:non of the above

  4. pick ut the wrong one
    #typedef some stuff
    {
    ---
    };

  5. one q,s on do loop?

  6. pick the odd one
    a. malloc
    b. calloc
    c. new(ans)

  7. char *ptr;
    p=malloc(20);
    How will u de allocate the memory?
    a. delete.
    b. free.
    There r about 20 q,s in this section rest i am un able to remember?

UNIX paper:

  1. How will u do version maintaince?
    sccs(source code control system)

  2. awk $2

  3. A program in shell script?
    find the o/p.

  4. Which signal u can,t catch?
    ans:sigkill

  5. Core dump is due to ?
    ans:segmentation fault.

  6. Echo "todays date is ,date,";
    o/p = ?

  7. process synchronisation is done by ?
    ans:s,phore

No comments:

Post a Comment