tricky exam q's in c/side

navynavy Member Posts: 2
can anyone pls tell me the answer to these tricky exam question:

1)Which of the following statement is invalid when it comes at the end of the trigger:
a) EXIT(TRUE);
B)EXIT(Amount);
C)EXIT=TRUE;
D)EXIT.

2)which statement is false

a)codeunits can be run from other codeunits
b)object can be run from codeunits.
c)codeunits can be run from objects.
d)codeunits can be run from object designer

WITH REGDS,
Navy

Comments

  • AlishaAlisha Member Posts: 217
    I think it's B and C
  • bbrownbbrown Member Posts: 3,268
    The answer to question 1 is C.
    There are no bugs - only undocumented features.
  • write2souravwrite2sourav Member Posts: 113

    I think the answer to the second question is D.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    I will not repy, because my reply would upset some people.
    David Singleton
  • DenSterDenSter Member Posts: 8,307
    By all means David, I like it when you do :mrgreen:
  • David_SingletonDavid_Singleton Member Posts: 5,479
    DenSter wrote:
    By all means David, I like it when you do :mrgreen:

    Having just been robbed of just about every thing I have, I am just thankfull that I have my sense of humour left; which no one will steal.

    But yeah its starting to get beyond funny, when people ask not how to learn, but ask how to pass exams.

    Navy this forum is just full of great people that will help you to bcomea great Navision implmentor, consultant, developer etc. Try to ask questions that show you want to learn WHY navision does it that way, try to understand the phylosophy of the product, its direction and its future. Just learning A, B, C or D is not going to get you there.
    David Singleton
  • mbs_ashwanimbs_ashwani Member Posts: 12
    1.C
    When any code comes at end it can Exit a variable (Exit(Amount)) and it can return a true or false value (Exit (True)) and it can simply return the execution to parent trigger by simply writing Exit but the Statement Exit=True does not mean anything.
    :P

    2.D
    Codeunits cannot be run from Object Designer [-X 8)
  • ara3nara3n Member Posts: 9,256
    codenits can be run from object designer. for example find codeunit 419 and click on run. in object designer.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSterDenSter Member Posts: 8,307
    Codeunits cannot be run from Object Designer [-X 8)
    Really? wow. I guess that has been my imagination then all these years of running codeunits from the object designer. :mrgreen:
  • DenSterDenSter Member Posts: 8,307
    But yeah its starting to get beyond funny, when people ask not how to learn, but ask how to pass exams.
    Customer: So Navy, we have this issue with our multi-currency, could you help us?

    Navy: A! No wait, B!
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    ROTFLOL =D>
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • David_SingletonDavid_Singleton Member Posts: 5,479
    DenSter wrote:
    But yeah its starting to get beyond funny, when people ask not how to learn, but ask how to pass exams.
    Customer: So Navy, we have this issue with our multi-currency, could you help us?

    Navy: A! No wait, B!

    I gotta agree with Luc, that is just so funny, and really just sums it all up.
    David Singleton
  • mbs_ashwanimbs_ashwani Member Posts: 12
    I am again saying that Codeunits cannot be run thru Object designer.
    bcoz the ID 419 you r talking about runs the Setup Checklist Wizard Intro FormID 596..so my dear it is a form not a Codeunit itself.

    ara3n wrote:
    codenits can be run from object designer. for example find codeunit 419 and click on run. in object designer.


    Really? wow. I guess that has been my imagination then all these years of running codeunits from the object designer.
  • HalMdyHalMdy Member Posts: 429
    Of course you can run Codeunits from Object Designer.
    In place of making lot of "blabla ..." , did you have try ?


    One example : create a new CodeUnit with :

    Item.FIND('-');
    MESSAGE('%1',Item."No.");

    Save it and run it direcly from the Object Designer .
    Work it ? Yes, definitively yes ...
  • HalMdyHalMdy Member Posts: 429
    And to answer to the original question :

    No answer is right, as for some questions in the exams, certainly written by a Navision unspecialist...
  • QuivelusQuivelus Member Posts: 24
    Maybe the answers given are not the correct answers from the exam:

    I had the same question, but one answer included a 'local codeunit'. That answer, I guess, was the right answer (because i 'guessed' it on my exam and scored 100% for the codeunits part of the exam) [not for the whole exam, d*mn :-(].
    Bohr-ing.
  • wwestendorpwwestendorp Member Posts: 178
    navy wrote:
    can anyone pls tell me the answer to these tricky exam question:

    1)Which of the following statement is invalid when it comes at the end of the trigger:
    a) EXIT(TRUE);
    B)EXIT(Amount);
    C)EXIT=TRUE;
    D)EXIT

    Hi, Try to compile each statement , you will see that statement C won"t


    2)which statement is false

    a)codeunits can be run from other codeunits
    b)object can be run from codeunits.
    c)codeunits can be run from objects.
    d)codeunits can be run from object designer

    Hi, Go in the object designer, create a codeunit and try to run it with CTRL+R 8-[

    The best way to find the answer is to practice it in navision it selves.

    Passing the exam will not prove that peole are good structured programmers !!!!!!

    Good Luck,

    William




    WITH REGDS,
    Navy
Sign In or Register to comment.