Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MindQ question 49.

 
Dave Johnson
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
For a proportional font (variable width), the column width is taken to be the average of all font's character widths.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic