Technical Questions asked in Global-Logic

  1. Analyse the following code snippet and choose the answer:-
    #include Class Temp
    {
    private:
    int m_ival;
    public:
    Temp()
    {
    Cout<<"OBJECT CREATED\n"< }
    ~Temp()
    {
    Cout<<"OBJECT DESTROYED\n"< }
    };
    void fnRead()
    {
    Temp oTempObj;
    }
    int main()
    {
    fnRead();
    cout<<"IN MAIN \n"< return 0;
    }
    1. OBJECT CREATED OBJECT DESTROYED
    2. OBJECT CREATED OBJECT DESTROYED IN MAIN
    3. OBJECT CREATED IN MAIN
    4. Compilation Error
    Answer: Option B.
  2. Suppose in a microprocessor the instruction MVI A, 32H takes 2 machine cycles one is op code fetch which composed of 4 T-states and the other is memory read which takes n T-states. If the total time taken by the processor to execute the instruction is 1400 nano sec with an operating frequency of 5 MHz. What is the value of n?
    1. 3
    2. 4
    3. 6
    4. 5
    Answer:  Option A.

Complete Test Series for Wipro
Bag your Dream Job Today Comprehensive Online Tests Inclusive Prep for All Placement Exams Acquire Essential Domain Skills

  1. Which is better computing time (in analysis of algorithm) ?
    1. O(N)
    2. O(2N)
    3. O(log2 N)
    4. O(N log2 N)
    Answer: Option C.
  2. The content of accumulator is 1000 0000 what will be its content after RR A instruction?
    1. 0000 0001
    2. 0000 0000
    3. 0100 0000
    4. 0000 0010
    Answer: Option C.
  3. Observe the following code and chose the correct statement(s)
    class Name
    {
    const char *s ; .
    };
    class Table
    {
    Name *p; size_t sz ; public :
    Table(size_ts = 15) {p = new Name [sz = s]; }
    ~Table() {delete [ ]p ;}
    Name * lookup(const char *);
    bool insert(Name *);
    };
    1. ~Table() is a destructor
    2. p is of Table type
    3. Both A and B
    4. insert() is a method which returns nothing
    Answer: Option A.
  4. 'this' pointer is _____________________ .
    1. Pointer to the current object created in all static and non-static methods
    2. Pointer to the current object created for the current class
    3. Both A and B
    4. Pointer to the current object created in all non-static methods
    Answer: Option D.

Complete Campus Placement Training Course
Video Lectures Online Tests E-Books & Assignments