Accenture Previous Year Coding Questions | Coding Questions | Accenture Exam Questions

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

Комментарии • 52

  • @swapniljaiswal4956
    @swapniljaiswal4956 3 года назад +19

    python:
    def check(n):
    while(n!=0):
    if(n%10==1 or n%10==4 or n%10==9):
    n=n//10
    else:
    return False
    return True
    m,n=map(int,input().split())
    c=0
    for i in range(m,n+1):
    if(check(i)):
    c+=1
    print(c)

  • @samridhigupta1657
    @samridhigupta1657 3 года назад +13

    Please upload more questions on coding and other sections, this is really very helpful. This is literally the only channel having proper company sepcific prep playlists. Thank you!

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

    problem 2:
    def A(a,m,rs):
    if(a>m):
    x=a-m
    print(rs-x)
    if(a

  • @amanpandey4550
    @amanpandey4550 3 года назад +2

    Thank you sir for the contents... Make more videos of previous year questions

  • @kuldeeprane1469
    @kuldeeprane1469 3 года назад +2

    do we such easy questions!!
    are both the coding questions likes this in exam?

  • @utkarshmanchanda4540
    @utkarshmanchanda4540 3 года назад +1

    Thank you sir
    I have done both questions through python and I hope u will keep uploading such questions.

  • @lakkadasuvinaysrivenkatesh1714
    @lakkadasuvinaysrivenkatesh1714 3 года назад +6

    I have done both the coding questions on my own. Thank you talent battle team for your valuable explanations

  • @vaibhavchavan8541
    @vaibhavchavan8541 2 года назад +3

    PROBLEM - 2 In PYTHON
    def BalanceFruits(a,m,rs):
    if a>m:
    rs=rs-(a-m)
    elif m>a:
    rs=rs+(m-a)
    elif a==m:
    rs=rs
    return rs

    b=BalanceFruits(8,4,6)
    print(b)

  • @ArunKumar-jg8gx
    @ArunKumar-jg8gx 11 месяцев назад +1

    2nd solution is incorrect, what if test case is 8, 5, and 10. The code fails for this test case, your code should be in loop
    while(a !=m){
    if(a>m){
    a +=a-m;
    rs =rs- a-m;
    }
    else{
    a -=a-m;
    rs = rs + a-m;
    }
    }
    return rs;

  • @techworld7451
    @techworld7451 3 года назад +2

    I think question 1 solution needs to be modify because when we take m=0 and n=100 then for the value 0, while condition is false still flag==1 then count increases by 1.

  • @yupp_harish3936
    @yupp_harish3936 3 года назад +1

    this questions were asked in on campus or off campus..????

  • @krishanudutta2943
    @krishanudutta2943 3 года назад

    Thank you so much for the lecture sir.....I was able to solve the second quesition on my own pls provide more coding quesitions thanks a lot sir...

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

    Is there coding round for package application Development associate

  • @sachingamer2438
    @sachingamer2438 2 года назад

    Awesome explanation

  • @devadharishiniv3351
    @devadharishiniv3351 3 года назад +1

    Can you explain why 100 is not included in the first program??

    • @audrishmukherjee9115
      @audrishmukherjee9115 3 года назад

      Since all the digits in a number has to be one of the three (1,4 and 9)

  • @M_SAI_VARMA
    @M_SAI_VARMA 3 года назад +1

    Thanq 😊

  • @pranitapatil8532
    @pranitapatil8532 2 года назад

    Sir which type of 1&2 program .c or c++?

  • @ManojKumar-gh8cb
    @ManojKumar-gh8cb 2 года назад

    coding round is in salesforce ? or not

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

    Python Code:
    -------------------------------------------------------------------------
    Problem 1:
    def check(n):
    while(n!=0):
    if(n%10==1 or n%10==4 or n%10==9):
    n=n//10
    else:
    return False
    return True

    def sol(m, n):
    lst = []
    count = 0
    for i in range(m, n + 1):
    if check(i):
    lst.append(i)
    count += 1
    print(count)
    return lst

    print(sol(1, 20))
    ------------------------------------------------------------------------
    Problem 2:
    def BalanceFruits(a,m,rs):

    if a>m:
    rs=rs-(a-m)

    elif m>a:
    rs=rs+(m-a)

    elif a==m:
    rs=rs

    return rs

    print(BalanceFruits(4,8,6))

  • @manishapandey1744
    @manishapandey1744 2 года назад

    Can we write the code in javascript?

  • @manasikanade4705
    @manasikanade4705 3 года назад +2

    in accenture is it compulsory to write code in c/C++ only?

    • @AnkitGupta-tp6nr
      @AnkitGupta-tp6nr 3 года назад

      No.. you can choose the language you are comfortable with.

  • @kumarnitheesh5220
    @kumarnitheesh5220 2 года назад +2

    can anybody code in java...
    for these questions

  • @Nature-oj9wu
    @Nature-oj9wu Год назад

    If we solved 1 coding Question and passed 1 test case if i will selected to further round

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

      Can't say that, it depends on the number of candidates who apply and their performance, and the number of candidates the company wants to select.

  • @vipulrajtiwari2592
    @vipulrajtiwari2592 3 года назад

    Is accenture announced for 2022 batch

  • @jagan6930
    @jagan6930 3 года назад

    Can I Use Python For Solving this Or else I have to go with C?

    • @PreparewithTalentBattle
      @PreparewithTalentBattle  3 года назад +1

      c,cpp,java,python,Dot Net you can use any one of these for accenture

    • @jagan6930
      @jagan6930 3 года назад +2

      @@PreparewithTalentBattle Can You Please Upload Videos using Python 🙏

    • @yaminikallamadi5899
      @yaminikallamadi5899 3 года назад

      @@jagan6930 yes

    • @dhananjay7170
      @dhananjay7170 3 года назад

      Logic remain the same it's just the syntax difference

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

      ​@@PreparewithTalentBattle can I use javascript

  • @bhupeshbhatt4334
    @bhupeshbhatt4334 3 года назад

    These questions are of very easy level, will this be the same level of questions? Or can wee expect questions from DP , Backtracking etc?

    • @arjunpandey8767
      @arjunpandey8767 3 года назад +4

      4.5lpa me helicopter banaoge ka be... Paglet ho ka bilkl

    • @PreparewithTalentBattle
      @PreparewithTalentBattle  3 года назад +2

      These are actual exam questions of last year

    • @bhupeshbhatt4334
      @bhupeshbhatt4334 3 года назад

      @@PreparewithTalentBattle Thanks a lot,
      There are offering two roles 4.5 lpa & 6.5 lpa
      will these roles have different exam or same exam?

    • @PreparewithTalentBattle
      @PreparewithTalentBattle  3 года назад +1

      Same exam

    • @kuldeeprane1469
      @kuldeeprane1469 3 года назад

      @@arjunpandey8767 are bhai bhai bhai!! haha

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

    Q1 in cpp
    #include
    #include
    using namespace std;
    int main() {
    int n = 200, m = 100;
    int count = 0;
    vector a;
    for (int i = m; i n) {
    count = -1;
    } else {
    for (int i = 0; i < a.size(); i++) {
    int ones = a[i] % 10;
    int tenth = (a[i] / 10) % 10;
    int hundredth = (a[i] / 100) % 10;

    if ((ones == 1 || ones == 4 || ones == 9) &&
    (tenth == 1 || tenth == 4 || tenth == 9) &&
    (hundredth == 1 || hundredth == 4 || hundredth == 9)) {
    count++;
    }
    }
    }
    cout

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

    Java Code for first Problem:
    class HelloWorld {
    public static void main(String[] args) {
    int m=100;
    int n=200;
    boolean flag = false;
    int temp=0;
    int count=0;
    for(int i=m; i0){
    if(temp%10==1||temp%10==4||temp%10==9){
    flag=true;
    temp/=10;
    }else{
    flag=false;
    break;
    }
    }
    if(flag){
    System.out.println(i);
    count++;
    }
    }
    System.out.println(count);
    }
    }

  • @yupp_harish3936
    @yupp_harish3936 3 года назад

    this questions were asked in on campus or off campus..????