Saturday, August 7, 2010

Sample Resumes

Click the Plus Sign to view the resume format samples.





+  Sample Resume 1

+  Sample Resume 2

+  Sample Resume 3


+  Resume Format - C, C++

+  Resume Format - Dot Net

+  Resume Format - Hardware & Networking

+  Resume Format - Software Testing

+  Resume Format - Java, J2EE

+  Resume Format - DBMS

+  Resume Format - MCA

+  Resume Format - System Admin

+  Resume Format - Embedded Systems

Resume 1


Resume 2


Resume 3



How to write an effective resume?

A resume is a marketing tool which help get you an interview opportunity.
  • chronological
  • functional
  • combination
Format:
Demonstrated ....; researched market.....; performed whatever.
Make a listing of all your experience, choose the format to display your experience, it may change when you have more working experience

Basic parts:
  • Heading or identification
  • Objective
  • Education
  • Experience
  • Honors & Scholarships (Awards)
  • Skills
  • Activities
  • Personal, or Interest or Background (Optional)
Objective
Tells the employer
  • What kind of work you are interested in
  • What you are hoping to do or
  • What are you wish to work in
Experience
  • Include paid job and volunteer, summer, and part-time.
  • Use action verbs to describe your accomplishments
  • Use verbs in present tense for current work you are doing
  • Use verbs in past tense for completed experiences
  • Check qualifications or requirements of the jobs you are applying to find action verbs
  • You are not required to list tall employment history on your resume
  • Provide enough details to the recruiters, don't assume that they know everything about you
  • Don't be afraid to have two pages
Skills
  • Computer
  • Languages
  • Word typing speed
  • be specific, detailed, and competent

Scholarships and Honors (Awards)
arrange by semester, or terms; be specific

Activities
Student organization, position

Personal or Interest or Background
extracurricularactivities, hobbies, or interests

References
Available upon request (if there is enough room)
A separate sheet with all you references information should be prepared

Difference between CV and Resume
CV could be 10-15 pages, usually CV is for academic openings
Resume is 1 to 2 pages

Certificate
alone as one part

Publication
Could be put in education

Tips for writting a resume
Check, check, and ckeck content flow, grammar, punctuation, and spellings
1-2 pages
Have a top, bottom, right, left margins of 1 inches
10-12 fonts
good quality paper

Friday, August 6, 2010

C++ Programs Without Answers

    1) Determine the output of the 'C++' Codelet.    class base { public : out() { cout<<"base "; } }; class deri{ public : out() { cout<<"deri "; } }; void main() {     deri dp[3]; base *bp = (base*)dp; for (int i=0; i<3;i++) (bp++)->out(); }
  1. Justify the use of virtual constructors and destructors in C++.
  2. Each C++ object possesses the 4 member fns,(which can be declared by the programmer explicitly or by the implementation if they are not available). What are those 4 functions?
  3. What is wrong with this class declaration?
  4. class something { char *str; public: something(){ st = new char[10]; } ~something() { delete str; } }; 5) Inheritance is also known as -------- relationship. Containership as ________ relationship. 6) When is it necessary to use member-wise initialization list (also known as header initialization list) in C++? 7) Which is the only operator in C++ which can be overloaded but NOT inherited. 8) Is there anything wrong with this C++ class declaration? class temp { int value1; mutable int value2; public : void fun(int val) const{ ((temp*) this)->value1 = 10; value2 = 10; } };

C++ Programs with Answers & Explanation

    Note :     All the programs are tested under Turbo C++ 3.0, 4.5 and Microsoft VC++ 6.0 compilers.

    It is assumed that,

  1. Programs run under Windows environment,
  2. The underlying machine is an x86 based system,
  3. Program is compiled using Turbo C/C++ compiler.
  4. The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed).

     

    1) class Sample

    {

    public:

    int *ptr;

    Sample(int i)

    {

    ptr = new int(i);

    }

    ~Sample()

    {

    delete ptr;

    }

    void PrintVal()

    {

    cout << "The value is " << *ptr;

    }

    };

    void SomeFunc(Sample x)

    {

    cout << "Say i am in someFunc " << endl;

    }

    int main()

    {

    Sample s1= 10;

    SomeFunc(s1);

    s1.PrintVal();

    }

    Answer:

    Say i am in someFunc

    Null pointer assignment(Run-time error)

    Explanation:

    As the object is passed by value to SomeFunc the destructor of the object is called when the control returns from the function. So when PrintVal is called it meets up with ptr that has been freed.The solution is to pass the Sample object by reference to SomeFunc:

     

    void SomeFunc(Sample &x)

    {

    cout << "Say i am in someFunc " << endl;

    }

    because when we pass objects by refernece that object is not destroyed. while returning from the function.

     

  5. Which is the parameter that is added to every non-static member function when it is called?
  6. Answer:

    ‘this’ pointer

     

    3) class base

    {

    public:

    int bval;

    base(){ bval=0;}

    };

     

    class deri:public base

    {

    public:

    int dval;

    deri(){ dval=1;}

    };

    void SomeFunc(base *arr,int size)

    {

    for(int i=0; i<size; i++,arr++)

    cout<<arr->bval;

    cout<<endl;

    }

     

    int main()

    {

    base BaseArr[5];

    SomeFunc(BaseArr,5);

    deri DeriArr[5];

    SomeFunc(DeriArr,5);

    }

     

    Answer:

    00000

    01010

    Explanation:

    The function SomeFunc expects two arguments.The first one is a pointer to an array of base class objects and the second one is the sizeof the array.The first call of someFunc calls it with an array of bae objects, so it works correctly and prints the bval of all the objects. When Somefunc is called the second time the argument passed is the pointeer to an array of derived class objects and not the array of base class objects. But that is what the function expects to be sent. So the derived class pointer is promoted to base class pointer and the address is sent to the function. SomeFunc() knows nothing about this and just treats the pointer as an array of base class objects. So when arr++ is met, the size of base class object is taken into consideration and is incremented by sizeof(int) bytes for bval (the deri class objects have bval and dval as members and so is of size >= sizeof(int)+sizeof(int) ).

     

    4) class base

    {

    public:

    void baseFun(){ cout<<"from base"<<endl;}

    };

    class deri:public base

    {

    public:

    void baseFun(){ cout<< "from derived"<<endl;}

    };

    void SomeFunc(base *baseObj)

    {

    baseObj->baseFun();

    }

    int main()

    {

    base baseObject;

    SomeFunc(&baseObject);

    deri deriObject;

    SomeFunc(&deriObject);

    }

    Answer:

    from base

    from base

    Explanation:

    As we have seen in the previous case, SomeFunc expects a pointer to a base class. Since a pointer to a derived class object is passed, it treats the argument only as a base class pointer and the corresponding base function is called.

     

    5) class base

    {

    public:

    virtual void baseFun(){ cout<<"from base"<<endl;}

    };

    class deri:public base

    {

    public:

    void baseFun(){ cout<< "from derived"<<endl;}

    };

    void SomeFunc(base *baseObj)

    {

    baseObj->baseFun();

    }

    int main()

    {

    base baseObject;

    SomeFunc(&baseObject);

    deri deriObject;

    SomeFunc(&deriObject);

    }

    Answer:

    from base

    from derived

    Explanation:

    Remember that baseFunc is a virtual function. That means that it supports run-time polymorphism. So the function corresponding to the derived class object is called.

     

    void main()

    {

    int a, *pa, &ra;

    pa = &a;

    ra = a;

    cout <<"a="<<a <<"*pa="<<*pa <<"ra"<<ra ;

    }

    /*

    Answer :

    Compiler Error: 'ra',reference must be initialized

    Explanation :

    Pointers are different from references. One of the main

    differences is that the pointers can be both initialized and assigned,

    whereas references can only be initialized. So this code issues an error.

    */

     

    const int size = 5;

    void print(int *ptr)

    {

    cout<<ptr[0];

    }

     

    void print(int ptr[size])

    {

    cout<<ptr[0];

    }

     

    void main()

    {

    int a[size] = {1,2,3,4,5};

    int *b = new int(size);

    print(a);

    print(b);

    }

    /*

    Answer:

    Compiler Error : function 'void print(int *)' already has a body

     

    Explanation:

    Arrays cannot be passed to functions, only pointers (for arrays, base addresses)

    can be passed. So the arguments int *ptr and int prt[size] have no difference

    as function arguments. In other words, both the functoins have the same signature and

    so cannot be overloaded.

    */

     

    class some{

    public:

    ~some()

    {

    cout<<"some's destructor"<<endl;

    }

    };

     

    void main()

    {

    some s;

    s.~some();

    }

    /*

    Answer:

    some's destructor

    some's destructor

    Explanation:

    Destructors can be called explicitly. Here 's.~some()' explicitly calls the

    destructor of 's'. When main() returns, destructor of s is called again,

    hence the result.

    */

     

    #include <iostream.h>

     

    class fig2d

    {

    int dim1;

    int dim2;

     

    public:

    fig2d() { dim1=5; dim2=6;}

     

    virtual void operator<<(ostream & rhs);

    };

     

    void fig2d::operator<<(ostream &rhs)

    {

    rhs <<this->dim1<<" "<<this->dim2<<" ";

    }

     

    /*class fig3d : public fig2d

    {

    int dim3;

    public:

    fig3d() { dim3=7;}

    virtual void operator<<(ostream &rhs);

    };

    void fig3d::operator<<(ostream &rhs)

    {

    fig2d::operator <<(rhs);

    rhs<<this->dim3;

    }

    */

     

    void main()

    {

    fig2d obj1;

    //    fig3d obj2;

     

    obj1 << cout;

    //    obj2 << cout;

    }

    /*

    Answer :

    5 6

    Explanation:

    In this program, the << operator is overloaded with ostream as argument.

    This enables the 'cout' to be present at the right-hand-side. Normally, 'cout'

    is implemented as global function, but it doesn't mean that 'cout' is not possible

    to be overloaded as member function.

    Overloading << as virtual member function becomes handy when the class in which

    it is overloaded is inherited, and this becomes available to be overrided. This is as opposed

    to global friend functions, where friend's are not inherited.

    */

     

    class opOverload{

    public:

    bool operator==(opOverload temp);

    };

     

    bool opOverload::operator==(opOverload temp){

    if(*this == temp ){

    cout<<"The both are same objects\n";

    return true;

    }

    else{

    cout<<"The both are different\n";

    return false;

    }

    }

     

    void main(){

    opOverload a1, a2;

    a1= =a2;

    }

     

    Answer :

    Runtime Error: Stack Overflow

    Explanation :

    Just like normal functions, operator functions can be called recursively. This program just illustrates that point, by calling the operator == function recursively, leading to an infinite loop.

     

     

    class complex{

    double re;

    double im;

    public:

    complex() : re(1),im(0.5) {}

    bool operator==(complex &rhs);

    operator int(){}

    };

     

    bool complex::operator == (complex &rhs){

    if((this->re == rhs.re) && (this->im == rhs.im))

    return true;

    else

    return false;

    }

     

    int main(){

    complex c1;

    cout<< c1;

    }

     

    Answer : Garbage value

     

    Explanation:

    The programmer wishes to print the complex object using output

    re-direction operator,which he has not defined for his lass.But the compiler instead of giving an error sees the conversion function

    and converts the user defined object to standard object and prints

    some garbage value.

     

     

    class complex{

    double re;

    double im;

    public:

    complex() : re(0),im(0) {}

    complex(double n) { re=n,im=n;};

    complex(int m,int n) { re=m,im=n;}

    void print() { cout<<re; cout<<im;}   

    };

     

    void main(){

    complex c3;

    double i=5;

    c3 = i;

    c3.print();

    }

     

    Answer:

    5,5

    Explanation:

    Though no operator= function taking complex, double is defined, the double on the rhs is converted into a temporary object using the single argument constructor taking double and assigned to the lvalue.

     

     

    void main()

    {

    int a, *pa, &ra;

    pa = &a;

    ra = a;

    cout <<"a="<<a <<"*pa="<<*pa <<"ra"<<ra ;

    }

     

    Answer :

    Compiler Error: 'ra',reference must be initialized

    Explanation :

    Pointers are different from references. One of the main

    differences is that the pointers can be both initialized and assigned,

    whereas references can only be initialized. So this code issues an error.

General C++ Questions

  1. What is a class?
  2. What is an object?
  3. What is the difference between an object and a class?
  4. What is the difference between class and structure?
  5. What is public, protected, private?
  6. What are virtual functions?
  7. What is friend function?
  8. What is a scope resolution operator?
  9. What do you mean by inheritance?
  10. What is abstraction?
  11. What is polymorphism? Explain with an example.
  12. What is encapsulation?
  13. What do you mean by binding of data and functions?
  14. What is function overloading and operator overloading?
  15. What is virtual class and friend class?
  16. What do you mean by inline function?
  17. What do you mean by public, private, protected and friendly?
  18. When is an object created and what is its lifetime?
  19. What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
  20. Difference between realloc () and free ()?
  21. What is a template?
  22. What are the main differences between procedure oriented languages and object oriented languages?
  23. What is R T T I ?
  24. What are generic functions and generic classes?
  25. What is namespace?
  26. What is the difference between pass by reference and pass by value?
  27. Why do we use virtual functions?
  28. What do you mean by pure virtual functions?
  29. What are virtual classes?
  30. Does c++ support multilevel and multiple inheritance?
  31. What are the advantages of inheritance?
  32. When is a memory allocated to a class?
  33. What is the difference between declaration and definition?
  34. What is virtual constructors/destructors?
  35. In c++ there is only virtual destructors, no constructors. Why?
  36. What is late bound function call and early bound function call? Differentiate.
  37. How is exception handling carried out in c++?
  38. When will a constructor executed?
  39. What is Dynamic Polymorphism?
  40. Write a macro for swapping integers.

General DBMS Questions Answers 2

General DBMS Questions Answers 1

  1. What are the different types of joins?
  2. Explain normalization with examples.
  3. What cursor type do you use to retrieve multiple recordsets?
  4. Diffrence between a "where" clause and a "having" clause
  5. What is the difference between "procedure" and "function"?
  6. How will you copy the structure of a table without copying the data?
  7. How to find out the database name from SQL*PLUS command prompt?
  8. Tadeoffs with having indexes
  9. Talk about "Exception Handling" in PL/SQL?
  10. What is the diference between "NULL in C" and "NULL in Oracle?"
  11. What is Pro*C? What is OCI?
  12. Give some examples of Analytical functions.
  13. What is the difference between "translate" and "replace"?
  14. What is DYNAMIC SQL method 4?
  15. How to remove duplicate records from a table?
  16. What is the use of ANALYZing the tables?
  17. How to run SQL script from a Unix Shell?
  18. What is a "transaction"? Why are they necessary?
  19. Explain Normalizationa dn Denormalization with examples.
  20. When do you get contraint violtaion? What are the types of constraints?
  21. How to convert RAW datatype into TEXT?
  22. Difference - Primary Key and Aggregate Key
  23. How functional dependency is related to database table design?
  24. What is a "trigger"?
  25. Why can a "group by" or "order by" clause be expensive to process?
  26. What are "HINTS"? What is "index covering" of a query?
  27. What is a VIEW? How to get script for a view?
  28. What are the Large object types suported by Oracle?
  29. What is SQL*Loader?
  30. Difference between "VARCHAR" and "VARCHAR2" datatypes.
  31. What is the difference among "dropping a table", "truncating a table" and "deleting all records" from a table.
  32. Difference between "ORACLE" and "MICROSOFT ACCESS" databases.
  33. How to create a database link ?