This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes MindQ question 49. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "MindQ question 49." Watch "MindQ question 49." New topic
Author

MindQ question 49.

Dave Johnson
Ranch Hand

Joined: May 25, 2003
Posts: 111
Here is the question:

49. If a font with variable width is used to construct the string text for a column, the initial size of the column is:
a) determined by the number of characters in the string, multiplied by the width of a character in this font
b) determined by the number of characters in the string, multiplied by the average width of a character in this font
c) exclusively determined by the number of characters in the string
d) undetermined

I answered C, but apparently it's B. Somehow I feel I am still right. I have never heard of multiplying the number of strings by the width of a character.
Can somebody confirm this please, Dave.
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
For a proportional font (variable width), the column width is taken to be the average of all font's character widths.
Thanks
 
wood burning stoves
 
subject: MindQ question 49.
 
Similar Threads
TextArea
about this question
Textfiled with varible width field.
Strange show
Multi Line JLabel