InternDoor

Accenture interview prep

8 practice questions on the topics candidates reported from Accenture interviews, with answers. The questions are ours; each one links to the interview report that names its topic.

Practise them as a timed round9 roles open at Accenture services Pvt Ltd

DSA 1

  1. DSAMedium

    With a variable-size sliding window, what is the length of the shortest contiguous subarray of [2, 3, 1, 2, 4, 3] whose sum is at least 7?

    1. 2
    2. 3
    3. 1
    4. 4
    Show the answer

    A. 2

    Grow the window on the right; whenever its sum reaches 7, record the length and shrink from the left. [4, 3] sums to 7 with length 2, and no single element reaches 7. Each index enters and leaves the window once, so O(n).

    This topic is named in a candidate’s interview report: AASE on-campus assessment and interview, 2026 batch, on GeeksforGeeks.

Python 2

  1. PythonEasy

    What does this print?

    def is_prime(n):
        if n < 2:
            return False
        i = 2
        while i * i <= n:
            if n % i == 0:
                return False
            i += 1
        return True
    
    print([n for n in [1, 2, 9, 17, 21, 29] if is_prime(n)])
    1. [1, 2, 17, 29]
    2. [2, 9, 17, 29]
    3. [2, 17, 29]
    4. [17, 29]
    Show the answer

    C. [2, 17, 29]

    1 is not prime by definition, 9 = 3 x 3 and 21 = 3 x 7. Checking divisors only up to the square root is enough, because any factor larger than it pairs with one smaller: O(sqrt n) per number.

    This topic is named in a candidate’s interview report: ASE on-campus assessment, 2025, on GeeksforGeeks.

  2. PythonEasy

    What does this print?

    def tag(s):
        return s[0] + str(len(s)) + s[-1]
    
    print(tag("accenture"), tag("ai"))
    1. a9e ai
    2. a9e a0i
    3. a8e a2i
    4. a9e a2i
    Show the answer

    D. a9e a2i

    "accenture" has 9 characters, starting with a and ending with e. "ai" has 2, so it becomes a2i. s[-1] is the last character; str() is needed because + will not join a string and an int.

    This topic is named in a candidate’s interview report: ASE on-campus assessment, 2025, on GeeksforGeeks.

DBMS and SQL 2

  1. DBMS and SQLMedium

    When is a document database such as MongoDB usually a better fit than a relational database?

    1. When many tables must be joined with strict transactions across them
    2. When the data is a few small tables with a fixed structure
    3. Whenever the data must survive a restart
    4. When each record is read and written as a whole and its fields vary from record to record
    Show the answer

    D. When each record is read and written as a whole and its fields vary from record to record

    A document keeps a record and its nested details together without one fixed schema, which suits catalogues, profiles and event logs. Relational databases are stronger when data is shared between tables and changes must span them in one transaction.

    This topic is named in a candidate’s interview report: Advanced application engineering analyst interview, 2026 batch, on GeeksforGeeks.

  2. DBMS and SQLMedium

    What does a FULL OUTER JOIN of tables A and B return?

    1. Only rows that match in both
    2. Every row from both tables: matched rows joined, and unmatched rows from either side with NULLs for the other side's columns
    3. Every row from A only
    4. Every combination of rows from A and B
    Show the answer

    B. Every row from both tables: matched rows joined, and unmatched rows from either side with NULLs for the other side's columns

    INNER keeps matches only, LEFT adds unmatched A rows, RIGHT adds unmatched B rows, FULL adds both. Every combination is a CROSS JOIN. MySQL has no FULL OUTER JOIN and emulates it with a LEFT JOIN UNION a RIGHT JOIN.

    This topic is named in a candidate’s interview report: AASE on-campus assessment and interview, 2026 batch, on GeeksforGeeks.

Computer networks 1

  1. Computer networksMedium

    How does HTTPS use symmetric and asymmetric encryption?

    1. Asymmetric cryptography authenticates the server and agrees a shared key; the page data itself is then encrypted with that symmetric key
    2. It uses only asymmetric encryption for all data
    3. It uses only symmetric keys stored in the browser
    4. It does not encrypt, it only signs
    Show the answer

    A. Asymmetric cryptography authenticates the server and agrees a shared key; the page data itself is then encrypted with that symmetric key

    Public-key operations are slow, so TLS uses them only in the handshake: the certificate proves the server's identity and a key exchange such as ECDHE yields a session key. Bulk data then goes over a fast symmetric cipher like AES-GCM.

    This topic is named in a candidate’s interview report: ASE on-campus assessment and interview, 2024, on LeetCode.

Software engineering 1

  1. Software engineeringEasy

    In cloud computing, which is an example of Platform as a Service (PaaS)?

    1. Renting a virtual machine and installing everything on it yourself
    2. Using Gmail in a browser
    3. Deploying your code to a managed runtime that runs, scales and patches it for you, such as Heroku or Google App Engine
    4. Buying servers for your own data centre
    Show the answer

    C. Deploying your code to a managed runtime that runs, scales and patches it for you, such as Heroku or Google App Engine

    IaaS hands you virtual machines, storage and networks (EC2); PaaS hands you a platform for your code with the servers hidden; SaaS is finished software you just use (Gmail, Salesforce). Moving from IaaS to SaaS, you manage less and control less.

    This topic is named in a candidate’s interview report: AASE on-campus assessment and interview, 2026 batch, on GeeksforGeeks.

Aptitude 1

  1. AptitudeMedium

    What does this pseudocode print?

    Integer a = 5, b = 3
    for (each i from 1 to 3)
        a = a + b
        b = a - b
    end for
    print a, b
    1. 14 11
    2. 11 8
    3. 13 8
    4. 21 13
    Show the answer

    D. 21 13

    Trace it: after the first pass a = 8, b = 5; then a = 13, b = 8; then a = 21, b = 13. Each step makes b the old a, so the pair walks along a Fibonacci-like sequence. Tracing a small table of values is the reliable way through these questions.

    This topic is named in a candidate’s interview report: ASE on-campus assessment and interview, 2024, on LeetCode.

Prep for other employers

All employers
See who is hiring after Accenture

Engineering internships and entry-level jobs in India, newest first.