CPE 5020 Mock Exam

  1. Write a method in Java to check if a string in US ASCII is actually a string in ISO 646 ASCII. That is, check that it does not contain any of the characters '[', ']', '~', etc
  2. Write a servlet or JSP which will accept a query containing a number amount in the browser's locale and which will return the same number in the server's locale
  3. Write an input method using the Input Method Framework that will convert all input characters to lower-case
  4. Java exceptions contain a string as the "cause of exception" attribute. Suggest how this can be internationalized and localized both for local and distributed systems
  5. An AttributedString can be marked with a locale tag. Write a method that will take an ordinary string and return an attributed string marked with the current locale


Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Fri Jun 3 10:42:29 EST 2005
Copyright ©Jan Newmarch
Access count since May 2005 is:
This page is http://jan.newmarch.name:443/i18n/exams/mock.html
Copyright © Jan Newmarch, Monash University, 2007
Creative Commons License This work is licensed under a Creative Commons License
The moral right of Jan Newmarch to be identified as the author of this page has been asserted.