Institute of Computer Science
  1. Courses
  2. 2023/24 spring
  3. Programming in C++ (MTAT.03.158)
ET
Log in

Programming in C++ 2023/24 spring

  • Home
  • Labs
    • Submission of solutions
    • Results
  • Examination times
  • Guides
  • References

The first opportunity is in the last week of the semester, in your normal classes (28./30.5.2024). The second slot is the week after (one slot for all groups, 4.6.2024 16.15 - 18.00) and the return two weeks later in case it's needed (18.6.2024 16.15 - 18.00), all in room 2005.

Exam review questions

The exam may ask questions of this level, as multiple choice or "fill in the blanks".

  • What is the difference between i++ and ++i?
  • What is the difference between public , private and protected class access rights?
  • How do the same access rights work if the class also has a superclass with some kind of access rights (how does public/protected/private inheritance change the access)?
  • Which parts does a doxygen comment of a function have?
  • What does the life cycle of an object look like (when is the constructor called , when is the destructor called , what happens in between?)
  • How do you get elements from an array ?
  • How do you get elements from an array of pointers?
  • What is the difference between a pointer and a reference and how do they work in the context of classes? How do they change access to attributes?
  • What does the delete command do, when to delete and when to delete[] .
  • Given "Student* x=new Student;", is x.method() or x->method() correct?
  • Given a short program, identify an error.
  • Add a line to a short program to achieve a certain task.
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment