Accenture Coding Questions and Answers

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 114

  • @naveenkolaparthy5169
    @naveenkolaparthy5169 Рік тому +39

    As a mechanical engineering graduate i understood your explanation, that tells us that you did a great job, nice explanation 👍

    • @PrepInsta
      @PrepInsta  Рік тому +1

      Stay connected❤️

    • @sivassk9090
      @sivassk9090 Рік тому

      I am also studying mechanical engineering...how did u prepare coding for Accenture...can I get ur mobile number

  • @MazicMoments27
    @MazicMoments27 Рік тому +12

    First question in java
    import java.util.*;
    public class First1 {
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    Scanner sc=new Scanner(System.in);
    System.out.print("Enter array size:");
    int size=sc.nextInt();

    int [] array1=new int[size];
    for(int i=0;i

    • @charles3367
      @charles3367 Рік тому +1

      what if largest element present 2 times then your answer will be wrong

    • @karmegamm4461
      @karmegamm4461 Рік тому +1

      what if input is [ 1 ,1,2] . 0th index is add . !

    • @MrJeszam
      @MrJeszam Рік тому

      ​@@karmegamm4461then make a condition that will check the length

  • @snapkac7365
    @snapkac7365 Рік тому +5

    thanks prepinsta video is very helpful I have Accenture paper on August and this help me a lot thanks for support ❤

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there! 💕
      We're really glad we could help -- we're sure you'll find PrepInsta Prime really helpful too! Wishing you the very best for your placement preparations 🤗
      Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/
      Or drop a message on bit.ly/primeWA
      Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement.
      Team PrepInsta is always here to help!

  • @bharanitharan1220
    @bharanitharan1220 Рік тому +4

    In java use treeset to add even and odd numbers which stores the value in ascending order.then to get. Second largest number use the method lower(set.last()) which gives second largest.🙌

    • @PrepInsta
      @PrepInsta  Рік тому

      We, the social media team is quite not confirmed about the answers but for sure our mentors will let you know soooon

  • @tejasborkar7609
    @tejasborkar7609 Рік тому +8

    Really useful thanks Prepinsta for sharing!

    • @PrepInsta
      @PrepInsta  Рік тому +1

      Hey there Tejas! 💕
      We're glad we could help, wishing you the very best for your preparations! 🤗
      Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/
      Or drop a message on bit.ly/primeWA
      Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement.
      Team PrepInsta is always here to help!

  • @shivalingkoralli9474
    @shivalingkoralli9474 4 місяці тому +1

    for 1st que please check is this is ok or not
    size = int (input ("Enter the size of the matrix: "))
    arr = [int(x) for x in input("Enter th array elements with space: ").split()]
    print(arr)
    o = []
    e = []
    for i in range(len(arr)):
    if i % 2 == 0:
    e.append(arr[i])
    else:
    o.append(arr[i])
    e.sort()
    o.sort()
    print(e)
    print(o)
    print(e[-2] + o[-2])

  • @shivalingkoralli9474
    @shivalingkoralli9474 4 місяці тому +1

    for second que can we use regex?

  • @sandeshgavade10
    @sandeshgavade10 Рік тому +7

    Hey you guys are too good man, I am from electrical engg background but your explanation was top notch, you really got into basics so that any new programmer could understand it very easily. Thank you for the help🔝🔝✔🔶

  • @Nj-hw2cv
    @Nj-hw2cv Рік тому +7

    In first question you must want to explain the constraints what if the n value is 3 then the the odd array will be of 1 element and even array will be of 2 elements then there is index at -2

    • @PrepInsta
      @PrepInsta  Рік тому

      Join our TA Support Group on Discord, where we will help you out with all your queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️: bit.ly/how-to-use-prepinsta-discord-server

  • @NithishKumar-bn3ku
    @NithishKumar-bn3ku Рік тому +2

    I am preparing for Accenture this adds value for my preparation.
    Thankyou PrepInsta❤

  • @shivashankaramalakanti2884
    @shivashankaramalakanti2884 8 місяців тому +2

    brother i have a doubt.matrix has rows and colums but you take array is this correct code?.finally your explanation was awesome and loved to way understand

  • @HustleAi-nq8il
    @HustleAi-nq8il 6 місяців тому

    one the best platform for learning technical courses

  • @soupornobarik2954
    @soupornobarik2954 6 місяців тому

    Can we use STL functions to solve the problems?

  • @ayushgupta1823
    @ayushgupta1823 Рік тому +2

    Can we write the code is JS too? or we have to go with C,CPP, Java and Python only?

  • @mrshaw1189
    @mrshaw1189 Рік тому +1

    Is Javascript programming language selection is available in the language selection option

    • @PrepInsta
      @PrepInsta  Рік тому

      We have Javascript included in Full Stack Development course on PrepInsta Prime.

  • @prasadyarabati6081
    @prasadyarabati6081 Рік тому +2

    just subscribed bcoz of your explanation
    nice explanation ,loved it man ❤❤❤

  • @sayantanisaha
    @sayantanisaha Рік тому +3

    It said matrix right and matrix is not single array its an array within an array

    • @PrepInsta
      @PrepInsta  Рік тому

      Join our TA Support Group on Discord, where we will help you out with all your queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️: bit.ly/how-to-use-prepinsta-discord-server

    • @Shujaathullakhan
      @Shujaathullakhan Рік тому +1

      Exactly the question is misleading

  • @vinculumacademy
    @vinculumacademy Рік тому

    Thank you so much ❣️🥰

  • @Eternal4470
    @Eternal4470 Рік тому

    Do they allow the use of Collection Framework Or STL library?

  • @muhammadthouseef3707
    @muhammadthouseef3707 Рік тому +1

    Sir your explanation was very good 🎉🎉❤

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey. we are glad to hear to that

    • @muhammadthouseef3707
      @muhammadthouseef3707 Рік тому

      @@PrepInsta I registered for Accenture on August 3 when i will get slot for test plz reply sir

  • @sparshsrivastava2788
    @sparshsrivastava2788 Рік тому

    Helpful video

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey😊
      We are blessed to be useful for your placements.❤
      It would be great if you stay connected to us over our socials!
      Follow our social media handles listed below.
      Telegram- prepinsta.com/telegram/
      Instagram- prepinsta.com/instagram/
      WhatsApp- prepinsta.com/whatsapp/
      UA-cam- ua-cam.com/users/prepinsta
      LinkedIn- www.linkedin.com/company/prepinsta/ ​​​​​​​​​​​​
      Discord- prepinsta.com/discord

  • @MohammedAgwan-p5m
    @MohammedAgwan-p5m Рік тому +1

    Is python option available for Accenture and other companies?

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, Yes, candidates can use Python for coding. Also, checkout Python Tutorial here on prepinsta.com/python

  • @Ajaysoni7869
    @Ajaysoni7869 Рік тому +1

    thanks guys

  • @praveenpspk1008
    @praveenpspk1008 Рік тому +1

    Can i get prime access

    • @PrepInsta
      @PrepInsta  Рік тому

      Kindly DM us on 8448440710, our team would be glad to guide 💚

  • @kirandeepgantasala9806
    @kirandeepgantasala9806 Рік тому

    Good Explanation

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there Kirandeep! 💕
      That means a lot, y'all keep us going. Wishing you the very best for your placement preparations! 🤗
      Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/
      Or drop a message on bit.ly/primeWA
      Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement.
      Team PrepInsta is always here to help!

  • @payelkumbhakar6337
    @payelkumbhakar6337 6 місяців тому

    Where can I give the exam for Accenture PADA role? At home or at centre? Please reply. 🙏 Actually I have no idea about this. Is mock assessment given at home or at centre? If the exam can be given from home then I have to make necessary arrangements. Please reply sir. 🙏

  • @hariharan9937
    @hariharan9937 Рік тому

    bro the link given in the description for the coding and answer is not working, what's the problem?

    • @PrepInsta
      @PrepInsta  Рік тому

      It's working fine at our end, kindly try again.

  • @ayushsaini7423
    @ayushsaini7423 Рік тому

    if it have a 2 dimension or 3 dimension matrix then what will we do?????????????

    • @ayushsaini7423
      @ayushsaini7423 Рік тому

      @PrepInsta

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, Great you have answered. For technical related queries you can freely connect with our TA's on discord. Here is the link prepinsta.com/discord

  • @prashanthkolla9968
    @prashanthkolla9968 Рік тому

    Super ,do more videos on coding bro

  • @nandyalamanojkumarreddy2633

    Can We do this program using array list

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, For technical related queries you can freely connect with our TA's on discord. Here is the link prepinsta.com/discord

  • @_COMP_B_SURAJMISHRA
    @_COMP_B_SURAJMISHRA Рік тому

    do we need to write whole code or just function

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey, kindly check out the Accenture exam pattern below👇
      prepinsta.com/accenture/test-pattern-exam/
      In case of any doubt reach out to us on our socials:
      Telegram- prepinsta.com/telegram/
      Instagram- prepinsta.com/instagram/
      WhatsApp- prepinsta.com/whatsapp/

  • @meenakshibavirisetti3695
    @meenakshibavirisetti3695 Рік тому

    In any company coding round we can use methods or functions?

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, Yayyy you answered. Kindly join us here for more details.
      Join our TA Support Group on Discord, where we will help you out with all your queries:
      📍prepinsta.com/discord/

  • @ankithpr7273
    @ankithpr7273 Рік тому

    Sir is these questions enhalf for codeing round

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey, we recommend you not to limit learning, these questions are definitely fruitful for your preparation but not everything so practice as much as you can 😊
      You can refer the link to get more idea: prepinsta.com/accenture/coding/

  • @CompMail
    @CompMail 5 місяців тому

    Second largest is 7 right in the 2nd matrix why he choosen the 4 can anyone tell.?

  • @GopalKumar-xu3iw
    @GopalKumar-xu3iw Рік тому +1

    Really good

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there Gopal! 💕
      That means a lot, you guys keep us going. Wishing you the very best for your placements! 🤗
      Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/
      Or drop a message on bit.ly/primeWA
      Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement.
      Team PrepInsta is always here to help!

  • @kotiramprasad2386
    @kotiramprasad2386 6 місяців тому

    array = []
    evenArr = []
    oddArr = []
    n = int(input("enter a size of array"))
    for i in range (0,n):
    number = int(input("enter a element at {}index:".format(i)))
    array.append(number)
    if i % 2 == 0:
    evenArr.append(array[i])
    else:
    oddArr.append(array[i])
    evenArr = sorted(evenArr)
    print("sorted evenArr:",evenArr[0:len(evenArr)])
    oddArr = sorted(oddArr)
    print("sorted oddArr:",oddArr[0:len(oddArr)])
    print ("sum of second largest elements:",evenArr[-2] + oddArr[-2])

  • @yashubhasin4330
    @yashubhasin4330 Рік тому

    When did this test happen?

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there💚, Accenture is hiring on campus currently, and for off campus updates, you can follow our off campus instagram handle.
      Link : instagram.com/prepinsta.offcampus/?hl=en

  • @quezinmark8225
    @quezinmark8225 Рік тому +8

    *Java*
    1st question
    import java.util.Arrays;
    public class MyClass {
    public static void main(String args[]) {
    int a[]={3,4,1,7,9};
    int evenSize=a.length%2==0?a.length/2:(a.length/2)+1;
    int oddSize=a.length-evenSize;
    int oddArray[]=new int[oddSize];
    int evenArray[]=new int[evenSize];
    int inc=0;
    for(int i=0;i

    • @venugopalravi1077
      @venugopalravi1077 Рік тому +1

      Your are genius bro

    • @donna4499
      @donna4499 Рік тому +1

      Will you please do in C?

    • @quezinmark8225
      @quezinmark8225 Рік тому

      @@donna4499 Yeah sure

    • @PrepInsta
      @PrepInsta  Рік тому

      Join our TA Support Group on Discord, where we will help you out with all your queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️: bit.ly/how-to-use-prepinsta-discord-server

    • @charles3367
      @charles3367 Рік тому

      bro what if largest element is present 2 times you will get wrong answer right??

  • @shadowr29
    @shadowr29 Рік тому +2

    Do they allow coding in Python or only c/c++? Please reply

  • @subhamroy5619
    @subhamroy5619 Рік тому

    Code 1 Ans:(Python3)
    a=int(input("Enter the size of the array: "))
    b=[]
    while a>0:
    c=int(input("Enter the element: "))
    b.append(c)
    a-=1
    c=[]
    e=[]
    for d in range(len(b)):
    if d%2==0:
    c.append(b[d])
    else:
    e.append(b[d])
    c.sort()
    e.sort()
    print(c,e)
    z=c[len(c)-2]
    x=e[len(e)-2]
    print(z,x)
    print("The Sum is ",z+x)

    • @PrepInsta
      @PrepInsta  Рік тому

      Join our TA Support Group on Discord, where we will help you out with all your technical queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️:
      bit.ly/how-to-use-prepinsta-discord-server

  • @sourjadhar9332
    @sourjadhar9332 Рік тому

    import java.util.*;
    public class Main
    {
    public static void main(String[] args) {
    int arr[]={3,4,1,7,9};
    TreeSet odd=new TreeSet();
    TreeSet even=new TreeSet();
    for(int i=0;i

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey, we got pretty late with the response 🥺 How was your test?

  • @sweetylavanya7268
    @sweetylavanya7268 6 місяців тому

    I too have the exam bro tommorrow plz help me

  • @Familycricket21
    @Familycricket21 Рік тому

    Bro interview online or offline

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, The company is hiring On Campus and for the further instructions you can checkout the information with the TPO or college placement cell.
      Ps.....You can DM us on 8448440710 on WhatsApp for personalized guidance and can give us an instant call.

  • @viratarmy8520
    @viratarmy8520 8 місяців тому +5

    Bro tomorrow My Accenture exam can you help me for exam

    • @payelkumbhakar6337
      @payelkumbhakar6337 6 місяців тому

      Hello, where did you give your exam? At home or at centre? Actually I have no idea about this. Can I give the exam from home or i have to go to centre? And the mock assessment is taken at home or at centre? Because i have to make necessary arrangements then. Please reply bro. 🙏

    • @pathaan147
      @pathaan147 6 місяців тому

      From home​@@payelkumbhakar6337

    • @suchipamarthi2940
      @suchipamarthi2940 6 місяців тому

      ​@@payelkumbhakar6337 Home

  • @prathameshbothe8944
    @prathameshbothe8944 Рік тому +1

    always best platform (prepinsta) to crack coding rounds

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there Prathamesh! 💕
      That means a lot to us! Wishing you the very best for your preparations -- Hope to see you on PrepInsta Prime too 💚
      Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/
      Or drop a message on bit.ly/primeWA
      Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement.
      Team PrepInsta is always here to help!

  • @sashvanthmoorthy4521
    @sashvanthmoorthy4521 Рік тому

    we can use quicksort instead of build in sort() methods.

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey there, connect to our mentors on Discord to get your queries solved💚,
      Join our TA Support Group on Discord, where we will help you out with all your queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️: bit.ly/how-to-use-prepinsta-discord-server

  • @BDIt-vj5hk
    @BDIt-vj5hk 11 місяців тому

    1)l=[]
    j=[]
    k=[]
    s=[]
    n=int(input("enter the value of n"))
    for i in range(n):
    a=int(input("enter the value of a"))
    l.append(a)
    print(l)
    if(i%2==0):
    j.append(a)
    j=sorted(j)
    else:
    k.append(a)
    k=sorted(k)
    s.append(max(k))
    s.append(max(j))
    print(j)
    print(k)
    print(min(s))

    • @PrepInsta
      @PrepInsta  10 місяців тому

      Join our TA Support Group on Discord, where we will help you out with all your technical queries:
      📍prepinsta.com/discord/
      If you are new to Discord, please watch our tutorial here❤️:
      bit.ly/how-to-use-prepinsta-discord-server

  • @karmegamm4461
    @karmegamm4461 Рік тому

    is this really Accenture question?

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi💖
      Yes, some are Accenture previous year questions whereas on others we have followed the patter.😊

  • @roshansharma9042
    @roshansharma9042 Рік тому

    Ia JavaScript allowed

    • @PrepInsta
      @PrepInsta  Рік тому

      No, you can do coding in C, C++, Java, python ;)

  • @badugumadanmohanyadav7599
    @badugumadanmohanyadav7599 Рік тому

    Sir, your voice is not clear

    • @PrepInsta
      @PrepInsta  Рік тому

      Hey, thank you for informing us. We will take care of it from next time. 🙌

  • @mr__sahith1779
    @mr__sahith1779 4 місяці тому

    make me correct if their is any easy way
    //Check Password
    public class prg34 {
    public static void main(String[] args) {
    Scanner scan=new Scanner(System.in);
    String str=scan.nextLine();
    int l=str.length();
    int special=0;
    int upper=0;
    int lower=0;
    int number=0;
    for(int i=0;i='A'&&str.charAt(i)='a'&&str.charAt(i)=1&&upper>=1&&upper+lower>=4&&special>=1) {
    System.out.println(0);
    }else {
    System.out.println(1);
    }
    }
    }

  • @studbanda9426
    @studbanda9426 Рік тому

    itna bhi easy nahi aane waala for sure

    • @PrepInsta
      @PrepInsta  Рік тому

      Hi, Here are PYQs you can refer to this link prepinsta.com/accenture-previous-papers/
      If you need any help, kindly give us a call on 8448440710.

  • @subhamroy5619
    @subhamroy5619 Рік тому

    code:2
    def checkpassword(s,n):
    if n

  • @dharanirama4914
    @dharanirama4914 11 місяців тому

    import java.util.*;
    public class Main
    {
    public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int sum=0;
    int n=sc.nextInt();
    int a[]=new int[n];
    for(int i=0;i=2)
    sum+=odd.get(odd.size()-2);
    System.out.print(sum);
    }
    }