Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

C++ exam starting in 10 hours... Any top tips?

Options
  • 25-05-2009 11:25pm
    #1
    Registered Users Posts: 329 ✭✭


    Hey guys,

    Got my c++ exam in the morning and am fairly peeved, Am doing a computing for mathematics course, if anyone feels they can pass on some great knowledge that will get me through this exam it would be much appreciated!! 10 hour cram starts now...!:(


Comments

  • Closed Accounts Posts: 6,942 ✭✭✭missingtime


    Look at other exams that you did during the year. Questions generally get repeated.

    Try and learn a basic sort algorithm.


  • Registered Users Posts: 329 ✭✭Nappy


    Yea unfortunately its a new course with no sample papers... What would be a good sort algorithm to start with??

    Cheers..


  • Closed Accounts Posts: 5,096 ✭✭✭--amadeus--


    My top tip is to read the course materials not Boards.ie :p

    (good luck with it though, all night crams are something I wouldn't want to go back to)


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,171 Mod ✭✭✭✭Jonathan


    Are you learning about object orientation or are you learning C in C++?

    Learning a few sorting and search algorithms might be a good idea.

    Selection sort and insertion sort come to mind.


  • Closed Accounts Posts: 752 ✭✭✭JimmyCrackCorn!


    Nappy wrote: »
    Yea unfortunately its a new course with no sample papers... What would be a good sort algorithm to start with??

    Cheers..


    Wont be that much different though.

    The same type of questions will always come up and the lecturer is guaranteed to have given you the questions over the year.


  • Advertisement
  • Registered Users Posts: 3,287 ✭✭✭padraig_f


    look out for memory that's allocated but not released.


  • Registered Users Posts: 3,287 ✭✭✭padraig_f


    constructor, destructor
    private, protected, public, const
    local variable, member variable, class (or static) variable
    virtual function, static function, inline function, pure virtual function
    pass by value, pass by reference
    encapsulation, inheritance, abstract class, polymorphism,

    You should be able to explain most of those terms. if you don't know them, look them up.

    I wouldn't bother learning a sort algorithm, it'll take too long and probably won't come up.


  • Registered Users Posts: 9,579 ✭✭✭Webmonkey


    Know all your statements, (while, do while, if, else, else if, switch etc)
    Know what pass by reference vs pass by value is
    know how to create a function
    know what a function prototype is
    Know all your equalities, ==, !=, <, >
    Know your boolean, && / ||
    Know negation, !false = true


    But are you doing object oriented C++? - if so know all the above too
    - also understand no garbage collection, need to delete objects created on heap after use


Advertisement