ITI 1121 Study Guide - Final Guide: Qadiriyya, Object-Oriented Programming, Preorder

91 views16 pages

Document Summary

Ecole de science informatique et de g enie electrique. Instructors: nour el-kadri, guy-vincent jourdan, and marcel turcotte. No part of this document may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without prior written permission from the instructors. Question 1 multiple-choice questions (15 marks: practices such as the one depicted by the following program should be avoided. Assume that s desig- nates a valid instance of some stack implementation and that value is of the correct type. True or false boolean done = f a l s e ; while done ) { v a l u e = s . pop ( ) ; t ry { True or false: good object oriented programming practices suggest that a programmer must always catch all the exceptions generated by the methods being called.