Fast help programming

Discussion in 'Tech Discussion' started by ZhaWarudo, Nov 30, 2017.

Thread Status:
Not open for further replies.
  1. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    4. Describe the following source code excerpt:
    int (*f)(const int * const);

    5. After we execute the following source code excerpt on 32-bit platform, what is going to be printed out as a result?
    struct A {
    int x;
    int y;
    char z;
    long long int* w;
    };
    printf("%lu\n", sizeof(struct A));

    6. Please comment on the validity/invalidity of the following source code excerpt?
    float calc_x();
    float calc_y();

    float x = calc_x();
    float y = calc_y();
    if (x == y)
    {
    ...
    }

    7. Please comment on the validity/invalidity of the following source code excerpt?
    int x = 5;
    void *ptr = &x;
    (*ptr) = 10;

    8. You are on the 'master' branch of some Git repository. For each of the following actions (a-e), please write down the corresponding Git command(s):
    (a) Create a new branch 'feature_xy' and jump to it.
    (b) Fetch the latest changes from remote Git repository.
    (b) Synchronize newly created 'feature_xy' branch with 'master' branch from remote.
    * In other words, this command should result with the following:
    HEAD of 'feature_xy' branch has to correspond to the HEAD of 'origin/master' branch
    (c) Let's assume that we've implemented a new feature whose content we have saved under __newly created__ files ('feature_xy_impl.c', 'feature_xy_impl.h'). How do we add these files to the local Git repository?
    (d) Send all these changes (new branch, new feature implementation) to the remote Git repository.
    (e) Go back to the 'master' branch.

    IT's for a a JOB not homework!
    No need anymore, test is over.
    Yes test for a job...I'm not in fking school or college anymore.
     
    Last edited: Nov 30, 2017
    Zeraphin likes this.
  2. Boricua Lunar

    Boricua Lunar The Jaded Wangfei Inquisitive Polymath

    Joined:
    Apr 30, 2017
    Messages:
    566
    Likes Received:
    600
    Reading List:
    Link
    This looks suspiciously like homework....I see what you did there. ;)
     
    AliceShiki likes this.
  3. m7vpc

    m7vpc Well-Known Member

    Joined:
    Jun 2, 2017
    Messages:
    566
    Likes Received:
    735
    Reading List:
    Link
    homeworkupdates.com
     
    AliceShiki likes this.
  4. Qvintex

    Qvintex Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    265
    Likes Received:
    205
    Reading List:
    Link
    int is a common term used in some games reffering to intentionally feeding (letting ennemy team to kill you). Const probably is a shorter version of constantly.
    From those short terms i assume someone is constantly intentionally feeding. I do not know what 5 and 6 reffer to but it might be some code to ban the player who int.
    Glad to be of help.
     
  5. asomeCokkies

    asomeCokkies [Eternal Quest for Epubs]

    Joined:
    Oct 21, 2015
    Messages:
    765
    Likes Received:
    521
    Reading List:
    Link
    Hahaha
     
    AliceShiki likes this.
  6. GuldTasken

    GuldTasken Well-Known Member

    Joined:
    May 1, 2016
    Messages:
    672
    Likes Received:
    584
    Reading List:
    Link
    Just want to point something out,

    A; When people hire someone for a certain work, they do not give you those questions. They assume you know what you are doing.
    B; When an employer decides to test their employees, they generally do it at the work station and not through a spreadsheet.
    C; People that want to hire coders, to my knowledge. Do not care about your previous Coding knowledge since they will have to re-educate you anyhow for their company structure and coding. Each company has their own directives on how to design/write the code.

    Because of these three things, I cannot see your questions as a "Job" but more as a Homework. Because it follows the way questions are constructed in education books and such.
     
  7. zamornews

    zamornews Well-Known Member

    Joined:
    Oct 21, 2015
    Messages:
    521
    Likes Received:
    308
    Reading List:
    Link
    im not sure jobs would be giving you homework but sure. whats the point of hiring someone to code when they dont know know basic obj c++?


    the least you could have done is reword the question so it doesnt look like a teacher was asking it to his students to see if they actually learned anything from his class or was just there for the lolz
     
    AliceShiki and Boricua Lunar like this.
  8. veneficae

    veneficae Active Member

    Joined:
    Jan 26, 2016
    Messages:
    8
    Likes Received:
    7
    Reading List:
    Link
    4-7 can be easily googled considering they are taught in the end of first year comp sci/beginning of second year comp sci

    ...so pretty sure its home work since no programmer would ever ask them without easily finding the answer in stack overflow after googling and no one with a job that does not involve programming would ever need to know this because it's not part of their job description.

    also no classes i went to ever ask pplz question on git since it's highly recommended to learn but not a requirement to know in post secondary.
     
    AliceShiki and TheNewGuy like this.
  9. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    FU, not homework
    It was a test for a job, nice help.
    Posting this shit in a serious thread, very funny.
     
    AliceShiki and Zeraphin like this.
  10. Hahhaa

    Hahhaa hereby irrevocably & perpetually waives all moral

    Joined:
    Oct 20, 2015
    Messages:
    563
    Likes Received:
    551
    Reading List:
    Link
    I'm tempted to give troll answer as well :ROFLMAO:
    6 and 7 is trick question right? Without full code, that except is invalid code lol
     
    AliceShiki likes this.
  11. juniorjawz

    juniorjawz Well-Known Member

    Joined:
    Jul 19, 2016
    Messages:
    6,895
    Likes Received:
    8,231
    Reading List:
    Link
    That's homework for sure.
    Or at the very least. Questions interviewers ask before taking you in for a job. At simplest, its just you asking questions.

    But not an actual job.
     
    AliceShiki likes this.
  12. jishnutp

    jishnutp Well-Known Member

    Joined:
    Sep 18, 2016
    Messages:
    59
    Likes Received:
    16
    Reading List:
    Link
    8th question

    A) git checkout -b feature_xy
    B) git fetch
    B) goto master branch using `git checkout master` then use `git merge feature_xy`
    C) git add <file name> (you can use '.' But it will add all changes to repo)
    D) git push origin feature_xy
    E) git checkout master



    The rest feels like classic c++ question with pointers and all :cool:
     
  13. rook14

    rook14 Well-Known Member

    Joined:
    Jun 29, 2017
    Messages:
    387
    Likes Received:
    244
    Reading List:
    Link
    I know how to do this before I graduated.:blobpopcorn_cool:
     
  14. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    What's your problem dude, I already said it was a test for a job, never said the job itself, didn't you read the edit in bold letters?
    Thanks bro but as I said in edit, the test is over.
    Thread closed
     
  15. Qvintex

    Qvintex Well-Known Member

    Joined:
    Apr 6, 2016
    Messages:
    265
    Likes Received:
    205
    Reading List:
    Link
    I dont want to be rude but i would rather you dont get hired then. If a job requires some knowledge and you dont even know the basics, how the hell would you do all the work? Would you always go to NUF to ask for help? What if your crappy work cause serious problems for others?
    Just my personal opinion. No hard feelings.
     
  16. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    I can't know everything, I can learn this shit fast but not all of a sudden with a 45min time limit, never used github so how the fk am I supposed to know that and I didn't expect it. Also I'm rusty in programming but as long as I get the job, I can easily relearn this shit.
     
  17. SageRozenburg

    SageRozenburg [Not a pervert][Not Suspicious]

    Joined:
    May 28, 2016
    Messages:
    1,063
    Likes Received:
    609
    Reading List:
    Link
    The code is simple:
    private getConstant( );
    {
    int x;
    x = git gud;
    }
     
  18. Hahhaa

    Hahhaa hereby irrevocably & perpetually waives all moral

    Joined:
    Oct 20, 2015
    Messages:
    563
    Likes Received:
    551
    Reading List:
    Link
    It over, here's the answer for the lol
    4) Invalid
    5) Error probably
    6) Invalid
    7) Invalid
    8) man git #RTFM

    :blobpopcorn_cool:
     
  19. feyrin

    feyrin Night time tyrant

    Joined:
    Nov 8, 2015
    Messages:
    171
    Likes Received:
    85
    Reading List:
    Link
    Stack overflow??
     
  20. kjoke

    kjoke Well-Known Member

    Joined:
    Nov 20, 2015
    Messages:
    72
    Likes Received:
    111
    Reading List:
    Link
    You expect other people to solve your problems and do your work and then you get angry if they don't do it? If I had a company I wouldn't want to employ someone with that kind of attitude.
     
    Westeller likes this.
Thread Status:
Not open for further replies.