TCS PRA Java Question | TCS IRA Java Question | TCS CPA Java Question

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

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

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

    please add question in description

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

    great explanation bro🥰🥰🥰🥰🤩🤩🤩🤩🤩🤗🤗🤗🤗🤗❤❤❤❤❤❤❤❤

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

    In TCS PRA what is the marks distribution?

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

      I m not sure. But I think coding part is of 50 marks and mcqs are of 50 marks. Total 100 marks.

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

    can you provide solution for method for finding average of age and another method to search by name

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

      Yes. Will comment code in night.

    • @codinghost5082
      @codinghost5082  2 года назад +1

      // Make getters for getting getAge() and getName()
      //Below are only methods to calculate.
      public static int findAverageOfAge(Students[] s){

      int total=0;

      if(s!=null)
      {
      for(int i=0;i

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

      @@yuvalekhams6778 I already told u most topics. Please check previous exam videos from youtube. And try to complete the coding questions properly.

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

      @@codinghost5082 Thank you so much

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

      @@yuvalekhams6778 bro have you cleared PRA?

  • @saisrujana3244
    @saisrujana3244 2 года назад +1

    sir what java version should we use in pra java8 or java7?

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

      You dont neeed to choose any java version. PRA is same as IRA exam almost. Just write programs in give compiler.

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

      ok sir thank you

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

    What if there are two objects with name as scooter?? How to Store them ??

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

      they will have different number and price. So store them in separate objects
      And you will get input for only 4 objects.

  • @041_saisaranta5
    @041_saisaranta5 2 года назад

    sir you're giving m=null to store only one object. what if there is two scooter , then you have to save two Vehicle objects in the m. Then why are you using this m=null??

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

      From the object of array we need to find object with minimum price. So it itself mean we only need one object with whose price will be minimum. So we dont need more object. We only need one.

  • @アジェイ-o4h
    @アジェイ-o4h 2 года назад

    Solution.java:18: error: non-static variable this cannot be referenced from a static context vl[i]=new Vehicle (num, nam, pri);

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

      Maybe you have made Vehicle constructor as a method. Check the code from link in description.

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

    Everything i understand , but when you use static method and put condition within static method, i am not getting these conditions.

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

      that if statement i have taken to check if the array and string we are taking are null or not. because later if u use for loop on them to get data, then u will get error NullPointerException,

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

    can you provide the solution on the day of exam on any social site like whatsapp or telegram this will us.

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

      sorry I cant , I also have work .

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

      Okk but I have one doubt in some questions you have used priority queue but in some questions you did not used can I know the answer because in video I am not able to understand why you are using that

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

      @@gaminghubCR Plz watch that questions carefully. You need to return an object on the sorted order from some value.

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

    Hello sir tomorrow is my 1st PRA. If my code will be ok but output isn't come according to the code or some error will occurs then also some test cases will pass or not for right coding steps??

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

      You need to print exact same output. Even you change uppercase or lowercase or miss any symbol like comma or fullstop. You will get error and your cases will not pass. So be careful while printing output.

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

      @@codinghost5082 ok thank you. But sir in every program in PRA have the same pattern or not like the one you are explaining in video?
      I guess Referring your videos of PRA is enough. But according to u it is enough or not??

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

      @@MonaliGore21 for java code m sure. It have same pattern.

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

      @@codinghost5082 ok then I'll refer your videos only.
      Thank u so much for quick response n for videos as well .

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

      @@MonaliGore21 wlcm