Join Regular Classroom : Visit ClassroomTech

accenture questions

Accenture Coding Question | String Within a String | CodeWindow

String within String Given two strings, ‘X’ and ‘Y’ (length(X)>=1, length(Y)<=10000), find out if ‘Y’ is contained in ‘X’ Input specification:Input1: The string ‘X’.Input2: The string ‘Y’. Output Specification:Return “yes” if ‘Y’ is contained in ‘X’ else return no. Example 1:Input 1: abacInput 2: ab Output: yesExplanation:ab is present with abac Example 2:Input 1: xyacInput […]

Accenture Coding Question | String Within a String | CodeWindow Read More »

Accenture Coding Question | Anagrams | CodeWindow

Anagrams An anagram is a word, phrase, or name formed by rearranging the letters of another word, phrase or name. Write a function to check if the given two strings are anagrams or not. return “Yes” if they are anagrams otherwise return “No”. Input specification:Input1: The first string.Input2: The second string. Output Specification:return “Yes” if

Accenture Coding Question | Anagrams | CodeWindow Read More »

Accenture Coding Question | Factorials | CodeWindow

Accenture Coding QuestionFactorials Given ‘a’ (1<=n<=100), find the factorial of ‘n’. The factorial of ‘n’ is defined as the product of all integers.Input specification:Input : any number ‘n’ Output Specification:Return a string containing the factorial. Example 1:Input : 5 Output: 120Explanation:5!=5*4*3*2*1 = 120 Example 2:Input 1: 6 Output: 720Explanation: 6!=6*5*4*3*2*1 = 720 JOIN OUR TELEGRAM

Accenture Coding Question | Factorials | CodeWindow Read More »

Accenture Coding Question | Reverse In Array | CodeWindow

Write a function that returns the reverse of the input array. Input specification:Input1: an array of numbersInput2: length of the array(input1) Output Specification:Return an array in reverse order. Example 1:Input 1: {1,2,3}Input 2: 3 Output: {3,2,1}Explanation:The reverse of the array {1,2,3} will be {3,2,1} Example 2:Input 1: {4,6,7,2}Input 2: 4 Output: {2,7,6,4} Explanation:The reverse of the

Accenture Coding Question | Reverse In Array | CodeWindow Read More »

Accenture Coding Question | Modular Exponentiation | CodeWindow

Given three numbers b, e and m. Fill in a function that takes these three positive integer values and outputs b^e mod m. Input specification:Input1: poisitive integer, bInput2: poisitive integer, eInput3: poisitive integer, m Output Specification:Return an integer on calculating b^e mod m. Example 1:Input 1: 2Input 2: 10Input 3: 1025 Output: 1024Explanation:2^10 mod 1025

Accenture Coding Question | Modular Exponentiation | CodeWindow Read More »

Accenture Logical Reasoning Questions and Solution | Codewindow.in

Question 1 Question Answer Explanation Question 1. Four of the following five are alike in a certain way and so form a group. Which is the one that does not belong to that group? A. Chess B. Badminton C. Cricket D. Volleyball E. Table tennis Answer A. Chess Explanation Remaining games are played in the

Accenture Logical Reasoning Questions and Solution | Codewindow.in Read More »