Paper 4 Question OOP With Text Files

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

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

  • @kingzmash9124
    @kingzmash9124 7 месяцев назад +1

    This is what I needed, thank you so much!!!

  • @reflectmirror6371
    @reflectmirror6371 7 месяцев назад

    Hello sir, I have a question, you passed Byref PicNumber as a parameter but can't we just use the value returned by the function in the main program?
    Thanks

    • @erbcomputerscience
      @erbcomputerscience  7 месяцев назад +1

      Good question. We must pass the value down to the function and it could work by ByVal or ByRef since the return value is assigned to PicIndex in Sub Main. We must pass the value, because if we do not then we would have to declare that variable and when doing that it would have a starting value of 0. Since it is a local variable within the function, if we do not pass the value every time the function is visited it would have a starting value of 0. Now in this program it is ok because we only call it 1 time. If we had to call the function multiple times we would want to make sure we had the value updated so we know where we are in the array for our objects to be created. We want to make sure we are at the next available index. Does that make sense?

    • @reflectmirror6371
      @reflectmirror6371 7 месяцев назад

      @@erbcomputerscience It does thanks.

  • @fidgetspinner32510
    @fidgetspinner32510 7 месяцев назад

    Hi Sir! Could you do more programs in Java?

  • @reflectmirror6371
    @reflectmirror6371 7 месяцев назад +1

    THANKKK YOU ☺

    • @erbcomputerscience
      @erbcomputerscience  7 месяцев назад +1

      You're welcome! Hope it helps!

    • @reflectmirror6371
      @reflectmirror6371 7 месяцев назад

      @@erbcomputerscience Btw , i and many of my friends stumbled upon your videos thanks to my school. Whenever heavy rain hits and disrupts our routine, our teachers turn to your videos to catch us up on what we missed. It's become our way of making up for lost time during these rainy spells.

    • @erbcomputerscience
      @erbcomputerscience  7 месяцев назад +2

      Thank you. That means a lot and makes me happy to hear it! Glad it helps you all out!

  • @nahalfatima123
    @nahalfatima123 7 месяцев назад

    Any predicted questions for m/j/24?

    • @erbcomputerscience
      @erbcomputerscience  7 месяцев назад +1

      I would say for Paper 3 I would expect Mantissa and Exponent for sure. For some reason that is always a popular question. I am thinking Mantissa & Exponent, BNF, RPN, Big O Notation and the 4 layers of data transmission. I would like to see some Boolean Algebra with KMaps but that is sometimes hit or miss. For Paper 4 I know writing to a file will be on there because it always has been, OOP that could include: polymorphism, inheritance, overloading, overriding or a basic question with just 1 class. An ADT such as a stack, queue, linked list or binary tree will also be included because they usually are. Last year a linear search (surprising since it is A Level) had to be coded and I think this year I would expect either a recursive binary search or a bubblesort or insertion sort with a 2D array. This all of course is my opinion and I hope I am right but only time will tell. We'll all find out in the next couple of weeks! Good luck to you on your exams!

    • @arthurleywin2549
      @arthurleywin2549 6 месяцев назад

      @@erbcomputerscienceYou were right man

  • @LakshBuldan
    @LakshBuldan 7 месяцев назад

    hey could you work out more oop questions with files please

    • @erbcomputerscience
      @erbcomputerscience  7 месяцев назад +1

      I would love to but unfortunately I have run out of time. I am spending the remaining days meeting with my students and answering questions they have after school hours. I am sorry and wish I had the time to do this before the exam. If by some miracle or by some chance I can I will do my hardest to get this done but it is not a guarantee. Again, I am sorry.