[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: Accenture

261.07K

Tot. Mock Test: 6


Total Qs: 152+

  •  Select All
  •  C
  •  Java
  •  C++
  •  .NET
  •  SQL
  •  Informatica
  •  WebMethod
  •  Soft. Engineering
  •  Data Structure
  •  HR Question in TR
  •  Operating System
  •  DBMS

    41 / 152

    What is an Iterator ? How do you traverse through a collection using its Iterator?
    Answer:

    Iterator allows to traverse the collection and also it has methods which enables to obatin or remove elements. ListIterator adds the feature of traversing the list bi-directionally, also modify the elememts.



    Eg.: Iterator itr = al.iterator();



           while(itr.hasNext()) {}

    Please Login First :

    42 / 152

    What is the List interface?
    Answer:

    List is subinterface of collection interface 



    List is objects can be stored in sequencelly order 



    List objects can be stored in index or access by its index



    List is preserve the order of insertion.



    List duplicate objects can be stored and also null insertion is allowed.



    list is 3 implemention classes



    1.ArrayList Class



    2.LinkedList Class



    3.Vector Class

    Please Login First :

    43 / 152

    What are the advantages of ArrayList over arrays ?
    Answer:

    arrays store only primitive type values and arraylist store primitive type

    Please Login First :

    44 / 152

    What are the differences between C and C++?
    Answer:

    1. C can run most of the code of C, but C can't run C code.



    2. C supports procedural programming paradigm whereas C supports both procedural and object oriented programming paradigm.



    3. C is a function driven and C is an object driven language.



    4. C doesn't allow function definitions within structures whereas in C function definition can be within structures.



    5. C doesn't support reference variables but C does support. 

    Please Login First :

    45 / 152

    Why multiple inheritance is not supported in java?
    Answer:

    Multiple inheritence is not supported in Java because of ambuiguity that it causes.

    Please Login First :
    Answer:

    Object cloning, clone() is the method available in Java for object duplication. In java, assignment operator only copies the reference and not the object. clone() is used for this.

    Please Login First :

    47 / 152

    What is Exception Handling? What is difference between Checked Exception and Unchecked Exception?
    Answer:

    An exception is a problem that arisesduring excecution. Checked exceptions are the exceptions that gets checked at the compile time. Unchecked exceptions are not checked at compile time, in Java all exceptions are unchecked exceptions.

    Please Login First :

    48 / 152

    What is the difference between declaration and definition?
    Answer:

    In C , function declaration is means telling the compiler that a function occurs but there's no definition given to it. When in the program, the function with definition is given, it's known as function definition.



    For eg.: void display();//function declaration



    void display){ cout<<"Function Definition";}//Function Definition

    Please Login First :

    49 / 152

    How can we access private members of a classs?
    Answer:

    By using a friend function.
    A friend function has access to all private and protected members of the class for which it is a friend.

    Please Login First :

    50 / 152

    What are the major Differences between JAVA and C++ ?
    Answer:

    1. C supports pointers, Java doesn't.



    2. Multiple inheritence is supported in C but not in Java.



    3. Java has built-in support for threads whereas C doesn't have built-in support for threads.



    4. No destructors in Java but C has them.



    5. C supports both method and operator overloading, Java only supports method overloading.

    Please Login First :


Most Frequent Qs.