Accenture Coding Questions and Answers

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 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

  • @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  11 месяцев назад

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

  • @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

  • @shivalingkoralli9474
    @shivalingkoralli9474 2 месяца назад +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])

  • @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!

  • @shivalingkoralli9474
    @shivalingkoralli9474 2 месяца назад +1

    for second que can we use regex?

  • @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!

  • @HustleAi-nq8il
    @HustleAi-nq8il 4 месяца назад

    one the best platform for learning technical courses

  • @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🔝🔝✔🔶

  • @shivashankaramalakanti2884
    @shivashankaramalakanti2884 6 месяцев назад +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

  • @soupornobarik2954
    @soupornobarik2954 4 месяца назад

    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.

  • @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

  • @NithishKumar-bn3ku
    @NithishKumar-bn3ku Год назад +2

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

  • @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

  • @prasadyarabati6081
    @prasadyarabati6081 Год назад +2

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

  • @vinculumacademy
    @vinculumacademy Год назад

    Thank you so much ❣️🥰

  • @Ajaysoni7869
    @Ajaysoni7869 Год назад +1

    thanks guys

  • @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/
      RUclips- ruclips.net/user/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

  • @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

  • @praveenpspk1008
    @praveenpspk1008 Год назад +1

    Can i get prime access

    • @PrepInsta
      @PrepInsta  Год назад

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

  • @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/

  • @nandyalamanojkumarreddy2633
    @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

  • @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!

  • @kotiramprasad2386
    @kotiramprasad2386 4 месяца назад

    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])

  • @_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/

  • @payelkumbhakar6337
    @payelkumbhakar6337 5 месяцев назад

    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. 🙏

  • @CompMail
    @CompMail 3 месяца назад

    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!

  • @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

  • @sweetylavanya7268
    @sweetylavanya7268 4 месяца назад

    I too have the exam bro tommorrow plz help me

  • @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/

  • @BDIt-vj5hk
    @BDIt-vj5hk 9 месяцев назад

    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  9 месяцев назад

      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

  • @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.

  • @prashanthkolla9968
    @prashanthkolla9968 Год назад

    Super ,do more videos on coding bro

  • @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

  • @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  11 месяцев назад

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

  • @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??

  • @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.

  • @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

  • @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!

  • @shadowr29
    @shadowr29 Год назад +2

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

  • @roshansharma9042
    @roshansharma9042 Год назад

    Ia JavaScript allowed

    • @PrepInsta
      @PrepInsta  Год назад

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

  • @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.😊

  • @viratarmy8520
    @viratarmy8520 7 месяцев назад +5

    Bro tomorrow My Accenture exam can you help me for exam

    • @payelkumbhakar6337
      @payelkumbhakar6337 5 месяцев назад

      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 5 месяцев назад

      From home​@@payelkumbhakar6337

    • @suchipamarthi2940
      @suchipamarthi2940 4 месяца назад

      ​@@payelkumbhakar6337 Home

  • @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. 🙌

  • @studbanda9426
    @studbanda9426 Год назад

    itna bhi easy nahi aane waala for sure

    • @PrepInsta
      @PrepInsta  11 месяцев назад

      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.

  • @mr__sahith1779
    @mr__sahith1779 2 месяца назад

    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);
    }
    }
    }

  • @subhamroy5619
    @subhamroy5619 Год назад

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

  • @dharanirama4914
    @dharanirama4914 9 месяцев назад

    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);
    }
    }