Accenture Testing interview questions| Manual | Automation 2021

In this article, we will be sharing the interview questions asked by Accenture for testing folks. We will also try cover answers which can be modified as per your convenience.

There are usually 4 rounds in Accenture for QA role 

  1. MCQ test
  2. Technical Discussion
  3. Managerial Discussion
  4. HR Discussion

Accenture testing Interview questions 2021

Round 1 - MCQ test 

1) System testing is performed by
  • Independent test team
  • Developers
  • Developers with support from the Independent test team
  • Independent test team with the help of developers
  • Users with support from the Independent test team
2) A REVIEW is what category of cost of quality
  • Appraisal       
3) Big Bang is related to which type of testing?
  • Integration testing
4) Select the option which is not an iterative model:
  • Spiral Model
  • V Model
  • Waterfall Model
  • RAD
  • All of the above
5) Which of the below is not a characteristic of RISK
  • Situational
  • Time-Based
  • InterDependent
  • Magnitude Dependent
  • Response Based
6) The document that is used to ensure that all of the requirements have been met
  • Test Case Document
  • Test Suite Document
  • Test Case Matrix
  • Traceability Matrix
  • Checklist
7) Which of the following is not a perspective of Quality
  • Transcendent
  • Translucent
  • Product Based
  • User-Based
  • Value-Based
8) Which process covers the kinds of software failure(s) that can occur and then quantifying how likely it is that they will actually occur?
  • Configuration Management
  • Contingency Planning
  • Risk Management
  • Process Improvement
9) _____ is a metric used to measure characteristics of the methods, techniques, and tools employed in developing, implementing, and maintaining the software testing:
  • Software quality metrics
  • Software testing metrics
  • Process metrics
  • Product metrics
  • Project metrics
10) ______ risks are the high-level business risks faced by the software system
  • structural risks
  • technical risks
  • size risk
  • a and b
  • all of the above
11) What are the different costs that are involved under the cost of quality. Choose the best of them(Multi-select options)
  • prevention cost
  • cost of production
  • failure cost
  • build cost
  • appraisal cost
12) ____ is the metric used to measure the characteristics of the documentation and code
  • software quality metric
  • software testing metric
  • Process metrics
  • Product metrics
  • Project metrics
13) What is the main purpose of the informal review
  • Discuss, make decisions
  • solve technical problems
  • identifying, learning to understand, and gaining product module
  • An inexpensive way to get some input
  • All of the above
14) Which model is related to STLC
  • Agile
  • Iterative
  • Spiral
  • Waterfall
  • None of the above
15) Which testing is performed with planning and documentation:
  • Ad-hoc testing
  • Monkey testing
  • fuzz testing
  • End-to-end testing
  • None of these
16) which document contains entry and exit criteria:
  • Defect report
  • Test CLosure report
  • Test Plan
  • Test Case Document
17) A negative test is providing invalid input and expecting an error message

2. A positive test is providing valid input and expect software perform the action as per specification

  • a is correct and b is incorrect
  • b is correct and a is incorrect
  • both are correct
  • a is partially correct and b is incorrect
  • a is incorrect and b is correct
18) People who don’t participate in technical reviews
  • Developers
  • Management
  • Testers
  • Analysts
  • None of the above
19) Tests are prioritized so that
  • You shorten the time required for testing
  • You do the best testing in the time available
  • You do more effective testing
  • You find more faults
  • None of the above
20) Testers are typically responsible for reporting their test status at regular intervals. Which of the following measurements generated during testing are applicable:
  • Total no of tests executed to date
  • Total no of executed successfully to date
  • Total no of tests executed and failed to date
  • All of the above
21) Select options valid in the test plan
  • Features to be tested and not tested
  • Entry criteria
  • Test Environment
  • Test Deliverables
  • All of the above
22) Select different types of testing coverage techniques:
  • Statement coverage
  • Design coverage
  • Roof Coverage
  • Path Coverage
  • Thread Coverage
23) Quality is:
  • Meeting Requirements
  • Zero Defects/Nullify the defects
  • Customer satisfaction
  • All of the above
  • 1 and 3 only
24) What is TQM in terms of testing:
  • Total quality management
  • Tool quality management
  • Test quality management
  • Test quality manager
25) The most important thing about early test design is:
  • To stop fault multiplication
  • To find all faults
  • To make test preparation easier
  • It means inspections are not required
  • All of the above
26) All project goals should be smart goals where SMART stands for:
  • Specific, monitored, attributable, realistic, and traceable
  • Specific, measurable, achievable, relevant and time
  • Specific, measurable, attributable, realistic, and traceable
  • Specific, measurable, agreed upon, recognizable and time frame
  • Sophisticated, monitored, attributable, realistic, and traceable
27) According to cross by, “absolutes of quality management” refers to Choose the best options(Multi-select options)
  • The definition of quality is conformance to requirements
  • The system of quality is prevention
  • The performance standard is zero defects
  • The measurement of quality is non-conformance
  • None of the above
Learn about WATIR and Javascript executor
Watir - open source family of ruby libraries for automating web browsers.


Round 2 - Technical Discussion
  1. Tell me about yourself and your project
    • Kindly remember keep it short and simple, don't hesitate and even try to be oversmart. Be casual.
  2. Explain your project Selenium framework
    • A framework explanation must cover below points
      • Page Object Model(POM)
      • TestNG
      • Data driven framework with POM and Page Factory
      • Using Java language

  3. What do you understand by Abstract class ?
    • An Abstract class is declared by the keyword Abstract, there are few pointers to keep in mind when you declare the Abstract class
      • An Abstract class can have any access specifiers methods such as public, private or protected unlike an Interface which is Public.
      • The methods may have or may not have any body implementation.
      • A class which implements an interface must implement all its methods, but for an Abstract class, it is not necessary.
      • A Class can implement multiple interfaces but it can only implement one Abstract class.
      • We cannot create objects for Abstract classes. Abstract classes cannot be instantiated.
      • Abstract classes can have abstract methods or non-abstract methods
      • The advantage of using abstraction is to reduce the complexity of the code.
  4. What is the difference between Final and Finally keyword?
    • Finally keyword is used in try and catch block and it will always be executed irrespective of the fact whether your code is moved into try catch statement or not. it contains driver.quit or driver.close such that the memory loss is saved.
    • Final keyword on the other side, could be declared with a method, class or variable. 
      • It is used to restrict the user
      • If a variable is declared Final, its value cannot be changed and it will be considered as constant.
      • If method is declared Final, it cannot be overriden. However, it can be inherited.
      • If a class is declared Final, it cannot be extended.
  5. Can you explain Collection Hierarchy?
    • Collection is a framework that provides an architecture to store and manipulate group of objects. 
    • A class can extend other class while it implements an interface
    • An interface extends another interface
      Accenture Interview Questions 2021

  6. What do you understand by Iterator interface?
    • Iterator provides the facility of iterating the elements in a forward direction only.
    • Below is the syntax of traversing -
      • Iterator itr=list.iterator();  
      • while(itr.hasNext()){  
      • System.out.println(itr.next());  
  7. What is the difference between List and Set?
    • List is ordered while Set is unordered
    • List contains duplicates while Set doesn't.
  8. What is ArrayList and how it works?
    • ArrayList implements the List interface and it has all the features as of LinkedList but comparatively it is slow.
  9. How will you switch to different windows using Selenium?
    • We have a method called getWindowHandles and have to use Set interface. Below code can be used
      • Set st = driver.getWindowHandles();
      • Iterator it = st.iterator();
      • String mainwindow = it.next();
      • String popup = it.next();
      • driver.switchTo().window(popup).close();
      • driver.switchTo().window(mainWindow);
  10. Explain Maven and its lifecycle?
    • Below are the phases of Maven lifecycle(VCT PVID)
      • Validate
      • Compile
      • test
      • package
      • verify
      • install
      • deploy
  11. Explain why Maven is preferred over others?
    • Because of its consistent structure, it is easy to maintain and understand.
    • Maintains Centralized repository.
    • Downloads the jar file into the local repository
    • Starts the execution.
    • Jar file versions can be changed instantly during runtime(ease of versioning).
  12. What plugins do you usually use in Maven?
    • Maven is actually a plugin execution framework where every task is usually executed by plugins.
    • Plugins can be categorised into
      • Build Plugins
      • Reporting plugins
        • Surefire plugin
        • clean
        • compiler
        • jar 
        • war
  13. Difference between Nosuchelementexception and elementnotfound?
    • When locator is incorrect, selenium webdriver throws “NoSuchElementException”. And when, webdriver is able to locate element, but not able to click on desired element or element is not visible. Then we get  "ElementNotFoundException".
  14. How can we iterate ArrayList?
    • There are 3 ways to iterate over an ArrayList
      • Using For loop
      • Using For each loop
      • Using Iterator
  15. What is hash map and how it works?
    1. Hash Map stores the items in form of key/value pairs. Syntax of using Hash Map is defined as 
      1. HashMap<String, String> hm = new HashMap<String,String>();
  16. Difference between REST and SOAP
    • REST stands for Representational State Transfer
    • SOAP stands for Simple Object Access protocol
    • SOAP is a protocol while REST is an architecture
    • SOAP is largely based on HTTP and XML. While REST uses multiple standards such as HTTP, JSON, URL and XML.
    • REST takes fewer resources and memory in comparison with SOAP
    • REST uses WADL(Web Application Description Language) while SOAP uses WSDL(Web Services Description Language)
    • REST in comparison with SOAP is easy to use and understand, it uses basic HTTP and CRUD operations
    • REST utilises  less bandwidth
    • REST is stateless 
    • REST can be cached for better performance and scalability
    • REST uses GET, POST, PUT and DELETE
  17. What are different response codes that you know of?
      1. 1xx - Informational
      2. 2xx - Success
      3. 3xx - Redirection
      4. 4xx - Client error
      5. 5xx - Server error
      Having said that, now we will be adding subcategories below  -

      Informational - 
      100 - Continue

      Success - 
      200 - Ok
      201 - Created
      202 - Accepted
      204 - No Content

      Redirection -
      301 - Moved permanently
      302 - Found
      303 - See other
      304 - Not modified
      307 - Temporary redirect

      Client error -
      400 - Bad Request
      401 - Unauthorized
      403 - Forbidden
      404 - Not found
      405- Method not allowed
      406- Not acceptable
      412-Precondition failed
      415-Unsupported media type

      Server error -
      500-Internal Server error
      501-Not Implemented
      502-Bad Gateway
      503-Service Unavailable
      504-Gateway Timeout

  18. When do we get a stale element Exception ?
    • Stale element exception is thrown when an element is no longer available.  If the DOM changes the element becomes stale.
  19. Explain overloading and overriding with an example?
    • Overloading occurs when two or more methods in one class have the same method name but different parameters.
    • Overriding means having two methods with the same method name and parameters (i.e., method signature). One of the methods is in the parent class and the other is in the child class. Overriding allows a child class to provide a specific implementation of a method that is already provided its parent class.

    • Consider below code for example -

    • /Parent class
      pubic class Plant {
      public void
      grow() {
      System.out.println("Plant growing");
      }
      }

      public class Tree extends Plant {
      public void grow() {
      System.out.println("Tree growing");
      }
      }

      public static void main(String[] Args) {
      Plant plant = new Tree(); // this is polymorphism
      plant.grow();
      }

      //Output -
      Tree growing

      object of child class is pointing to reference variable of parent class.
  20. Is there any difference between the response time of SOAP and REST?
    • It has been observed that the REST is faster compared to SOAP.
  21. What all commands are used in GIT?
    • git config
      git add
      git status
      git push
      git pull
      git commit
      git checkout
      git diff
      git show
      git log
      git reset
      git branch
      git remote
      git merge
      git tag
  22. Write a code to read and write data from an excel sheet using Selenium?
    • By using Apache POI library we can read and write using Excel file
    • For .xls extension, HSSFWorkbook, HSSFSheet, HSSFRow, HSSFcell
    • For .xlsx extension, we use XSSFWorkbook, XSSFSheet, XSSFRow, XSSFcell
    • Code syntax to read excel is given below 
      • File file = new File(Filepath + '\\'+  filename);
      • FileInputStream fi = new FileInputstream(file);
      • Workbook wb = new XSSFWorkbook(fi);
  23. How to select multiple values from dropdown?
    • Multiple values can be selected using isMultiple() method.
  24. How can you know the values of a dropdown using Selenium?
    • By using getOptions() method.
  25. Can we have multiple catches after a try block?
  26. How to enable or disable test in TestNg?
    • Disable a particular test cases
      • @Test(enabled = false)
  27.  Explain different TestNG annotations?
    • TestNG annotations determines the sequence of the code flow.
    • Sequence in TestNG can be as per below order(STCM)
    • @BeforeSuite
    • @BeforeTest
    • @BeforeClass
    • @BeforeMethod
    • @Test
  28.  Explain webdriver waits?
    • Most of the pages are designed using either Ajax or Javascript. If the element is not located, we get ElementNotVisibleException and our test case gets failed. 
  29. What happens if we both waits together?
    • Let's us assume we use both implicit and explicit wait for 20 and 10 seconds.
    • If the element is not located within the timeframe defined by explicit wait(10 seconds), it will use the time frame defined by Implicit wait(20 seconds) more before throwing an exception ElementNotVisibleException.
  30. What are different kinds of webdriver waits?
    • Implicit Wait - Waits for some time before throwing "NoSuchElementException". Syntax of Implicit wait is 
      • driver.manage().timeouts().implicitlyWait(TimeOut, TimeUnit.SECONDS);
    • Explicit Wait - Waits for expected condition or maximum time before throwing "ElementNotVisibleException", It is applied to a single web-element.
      • WebDriverWait wait = new WebDriverWait(WebDriverRefrence,TimeOut);
    • Fluent Wait - Maximum time for the web driver to wait for a condition and frequency is defined to check the condition after certain interval.
  31. What do you understand by Actions class?
    • Actions class is used to perform Mouse click and Keyboard events. It involves below methods
      • clickAndHold()
      • contextClick() - for right click
      • dragAndDrop(source,target)
      • keyDown or keyUp
  32. What do you understand by Select class?
    • We can select the dropdown values using Select, it can be done in 3 ways
      • SelectbyValue
      • SelectbyVisibletext
      • SelectbyIndex
    • We have isMultiple method which returns either true or false if multiple dropdown can be selected
  33. What do you understand by Alert in Selenium?
    • Alerts are like dialog boxes, it can be handled by Selenium using Alerts in below ways
      • driver.switchTo().alert().dismiss()
      • driver.switchTo()alert().accept()
      • driver.switchTo().alert().getText()
      • driver.switchTo().alert().sendKeys()
  34. How to deal with multiple windows in Selenium?
    • We can use Set Interface and getWindowHandles()
    • After which we can make use of Iterator and While(itr.hasNext()) property
  35. Why do we use MVN CLEAN command?
    • Whatever build you have compiled, it's good practice to clean it first before compiling new build. MVN clean clears out the existing classes that were compiled from the last compile.
  36. How can we achieve parallel testing with the help of TestNG?
    • We have to use keyword parallel in testng.xml file. 
      • parallel ="methods" will target the method of a particular class defined.
    • We can also achieve parallel testing in TestNG using threads.
      • parallel ="methods" thread-count="2"
  37. Explain why do we use priority in TestNG?
    • Whenever the methods are dependent on each other, we bring the concept of priority
    • If we are not declaring any priority, testng will execute @Test based on alphabetical order of their methods. 
    • Priority 1 will have preference over priority 2 such that method with priority 1 will be executed first.
  38. Why do we use parameterisation in our framework and how it is achieved?
    • Parameterisation is supported for Data-driven testing.
    • There are 2 ways to achieve parameterisation
      • Using TestNg.xml file
      • Using @DataProvider
        • Method
        • ITestContext
  39. What do you understand by Invalid argument Exception?
    • When invalid argument or parameters are passed.
  40. What kind of exception you have faced?
    • NoSuchElementException
    • ElemmentNotVisibleException
    • StaleElementException
    • TimeOutException
  41. Parent of Exception?
    • Throwable
  42. What is the difference between @BeforeClass and @BeforeTest?
    • BeforeClass runs before the execution of any test method in a class
    • @BeforeTest executes before the <test> tag in testng.xml file.
  43. Explain the structure of POM.xml?
<groupId>com.test</groupId>
<artifactId>MavenTestNGProject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

Interviewer - Bhaskar Chaddha

Date of Interview - 9th Feb 2020

Location - Delhi

Bhaskar was one of the toughest interviewer  I have seen, he will first ask your strong areas and then will ask to rate you out of 5. He needs precise answers only, if your answer is to the point then only you get a point, learn commands thoroughly and OOPS concepts if in case he is your interviewer. He asked below questions

  • Tell me about yourself
  • What are your stronger areas
  • How will you deal with a client when a new project comes in
  • What technology stack will you present to client
  • What should be your questions to client
  • Suppose if you are leading a team, how will you divide and manage the work.
  • What return type constructor returns?
  • How can you instantiate an abstract class?
  • Explain Final and Finally keywords?
  • Why do we use Finally keyword?
  • Difference between default access specifier and protected access specifier?
  • Sql query to delete few records in Database?
  • How will you make sure front end and back end are in sync?
  • What is the difference between Protected access modifier and default access modifier?
  • Command to maximize your browser?
    • driver.manage().window().maximize() 
  • How do you refresh the webpage? 
    • driver.navigate().refresh()
  • Command to deal with the popups?
  • Difference between waterfall and agile model?
  • How many models you know of?
  • Give me an example of High Priority and low severity and High Severity and low priority?
  • Which is the fastest locator performance wise?
    • cssSelector
  • How cssSelector is different from xPath?
    • There are basically 3 differences between xPath and cssSelector
      • There is no double slash in cssSelector
      • No need of 'and' keyword in cssSelector
      • There is no '/'in cssSelector, it is replaced by space.
      • Few examples are - 
        • a[id= "id1"]
        • a[id="id1"][class="class1"]
        • a[id="id1"] form div h1

He gave a good constructive feedback after the interview and he was really good.

Accenture Managerial round L3

Managerial round is elimination round, please don't take it lightly and prepare for it.
  • How will you handle team conflicts?
    • Talk with your team
    • Identify points for agreement and disagreement
    • Develop a plan to work on each conflict
    • Listen carefully
    • Team engagement activities
    • Keep a refreshing light environment with some humor
  • How do you handle stress at work
    • Pressure is very important sometimes, all your learning comes out of the stress
    • Stay positive.
    • Stay organised
Having covered above points, not all the managers are technically strong. They would just observe your attitude and your approach in solving some conflicts within the team. Take note of below pointers when you are appearing for any managerial round interview
  • Attitude is important
  • Testing skills
  • Maintain a balance between functional manual and automation testing
  • Can work with a team
  • Ready to take responsibilities
  • Product is the most important
  • Availability during release time
  • Ready to help other junior folks
  • Show your documentation skills
  • How good are you in different QA matrices/ planning
  • Showcase your technical skills.
  • Don't show your greediness for money, position.
  • Don't be aggressive / Be calm and balanced
  • Don't bitch about your previous employer/ company/ manager.
  • Tell them, how prepare you are for this team/ company. Show them some bugs/ Enhancements in their application.
  • Don't be desperate to get the position.
  • Don't argue, respect their views also.
  • Ask about the future plans for the team/ company/ work/ growth.
  • Just be normal/ be friendly. Don't be so formal.
  • Show your gratitude for the company and manager (doesn't matter you got hired or not).


Comments

Popular posts from this blog

Azure Tutorials Series - Azure Networking

Testing in CI/CD

Azure Tutorials Series - IaaS vs PaaS vs SaaS