Join TSR now and get all your revision questions answeredSign up now

WJEC A2 Computing CG3 - Tuesday 23rd June 2015 [Exam Discussion Thread] Watch

    Offline

    2
    ReputationRep:
    (Original post by jamietopp21)
    Haha i have no idea xD but it just goes to show you might as well write something even if you think its stupid as it could be in the mark scheme

    Saying that, if i was asked why they were better than random i wouldn't know what to write? maybe that they required less processing power but i have no idea, I'm not good at file organisation
    Accessing records using the Random/Direct access method is EXTREMELY quick, however once the Disk Blocks get full, and the Overflows get populated.. LOTS of processing is required to shuffle files around and re-allocate **** blocks
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by Async)
    Depends. Let's say you have a 250MB file loaded into memory and you want to pass it to another sub routine to do some checks that doesn't require you to change the object then passing By Reference would be the most sensible thing to do because it doesn't create a brand new copy of the object, therefore saving memory space and processing power. By passing by reference, you're simply just passing the pointer/memory location to the 250MB object.
    So passing by reference is less memory-intensive?


    Posted from TSR Mobile
    Offline

    17
    ReputationRep:
    (Original post by CD223)
    So passing by reference is less memory-intensive?

    Posted from TSR Mobile
    I'm talking from a C++ standpoint, from my understanding, a pointer is passed in C++ and that resembles ByRef as it's just passing the pointer of the object.

    But to be honest, I don't understand why ByRef would be more memory intensive than ByVal. ByVal copies the whole object whereas ByRef copies only the reference/pointer of the object. Therefore shouldn't ByRef be less IO intensive?
    Offline

    17
    ReputationRep:
    (Original post by CD223)
    So passing by reference is less memory-intensive?


    Posted from TSR Mobile
    Yes it's less memory intensive to pass by reference
    https://msdn.microsoft.com/en-us/library/ddck1z30.aspx
    Offline

    2
    ReputationRep:
    (Original post by Async)
    Therefore shouldn't ByRef be less IO intensive?
    I was taking this from the assumption that procedures could be modifying the object passed by reference, and if you are going to recurse a procedure many times modifying every time you're going to have a high IO.

    But as you said, this depends on a range of factors, and from a memory usage perspective pass by ref every time.
    Offline

    17
    ReputationRep:
    (Original post by Enrico2285)
    I was taking this from the assumption that procedures could be modifying the object passed by reference, and if you are going to recurse a procedure many times modifying every time you're going to have a high IO.

    But as you said, this depends on a range of factors.
    Oh yeah for sure! Recursive calls are IO intensive, it's only cause we all have good CPUs noways that we don't notice.

    But logically speaking, ByReference is more IO efficient when passing large objects as it only points to the existing object in memory rather than creating a brand new replica.
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by Async)
    Oh yeah for sure! Recursive calls are IO intensive, it's only cause we all have good CPUs noways that we don't notice.

    But logically speaking, ByReference is more IO efficient when passing large objects as it only points to the existing object in memory rather than creating a brand new replica.
    Ah, thanks for that.


    Posted from TSR Mobile
    Offline

    2
    ReputationRep:
    In a car factory, a number of tasks are carried out by robots. Explain what ismeant by a robot and describe how robots might be used in a car factory. Discussthe benefits and drawbacks of using robots for the owners of the car factory


    Sigh...
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by Enrico2285)
    In a car factory, a number of tasks are carried out by robots. Explain what ismeant by a robot and describe how robots might be used in a car factory. Discussthe benefits and drawbacks of using robots for the owners of the car factory


    Sigh...
    That question is annoying. Have you seen the one on weather forecasting? Lol.


    Posted from TSR Mobile
    Offline

    2
    ReputationRep:
    (Original post by Enrico2285)
    In a car factory, a number of tasks are carried out by robots. Explain what ismeant by a robot and describe how robots might be used in a car factory. Discussthe benefits and drawbacks of using robots for the owners of the car factory


    Sigh...
    Hate that kind of questions, but then again these are easy marks and anyone can get the marks, even without computing knowledge, so I can't complain
    Offline

    0
    ReputationRep:
    Does anyone know any drawbacks to forms dialogue?


    Posted from TSR Mobile
    Offline

    2
    ReputationRep:
    (Original post by JordanEvans96)
    Does anyone know any drawbacks to forms dialogue?


    Posted from TSR Mobile
    very restricted , some entries might not be allowed but still be true
    Offline

    0
    ReputationRep:
    Could someone explain Masking? What is the use of it?
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by unknown192)
    Could someone explain Masking? What is the use of it?
    Logical operators such as AND can be used to "mask" numbers for a variety of applications. Using a mask - a binary number such as 00001000 - with the AND operator, you can determine whether a certain bit is a zero or a one. In the case of the mask above, this would discover the value of the 5th bit.

    Masking can also be used to convert ASCII codes into binary numbers. See below:
    Name:  ImageUploadedByStudent Room1434887994.218502.jpg
Views: 53
Size:  168.0 KB


    Posted from TSR Mobile
    Offline

    0
    ReputationRep:
    (Original post by CD223)
    Logical operators such as AND can be used to "mask" numbers for a variety of applications. Using a mask - a binary number such as 00001000 - with the AND operator, you can determine whether a certain bit is a zero or a one. In the case of the mask above, this would discover the value of the 5th bit.

    Masking can also be used to convert ASCII codes into binary numbers. See below:
    Name:  ImageUploadedByStudent Room1434887994.218502.jpg
Views: 53
Size:  168.0 KB


    Posted from TSR Mobile
    Thanks alot! That is really helpful
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by unknown192)
    Thanks alot! That is really helpful
    No worries! What grade are you aiming for?


    Posted from TSR Mobile
    Offline

    0
    ReputationRep:
    (Original post by CD223)
    No worries! What grade are you aiming for?


    Posted from TSR Mobile
    Hoping for an A. But these exams can be unpredictable. Would still be satisfied with a B. How about you?
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by unknown192)
    Hoping for an A. But these exams can be unpredictable. Would still be satisfied with a B. How about you?
    Need an A for uni so I'm aiming as high as possible - there's so much to remember though


    Posted from TSR Mobile
    Offline

    0
    ReputationRep:
    (Original post by CD223)
    Need an A for uni so I'm aiming as high as possible - there's so much to remember though


    Posted from TSR Mobile
    I agree. Last year was manageable but this year is far too much content.
    • Thread Starter
    Offline

    3
    ReputationRep:
    (Original post by unknown192)
    I agree. Last year was manageable but this year is far too much content.
    What's your worst topic?


    Posted from TSR Mobile
 
 
 
Poll
Which Fantasy Franchise is the best?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.