• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

TextArea

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
For the following question can someone tell me what the answer is.I thought the answer was option a.But the answer key says that it is wrong.This question is in MindQ's mock exam,
TextArea ta = new TextArea( 10, 3 );
Produces (select all correct statements):
a) a TextArea with 10 rows and up to 3 columns
b) a TextArea with a variable number of columns not less than 10 and 3 rows
c) a TextArea that may not contain more than 30 characters
d) a TextArea that can be edited
Thanks
Porchelvi
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Porchelvi Vendhan:
Hi!
For the following question can someone tell me what the answer is.I thought the answer was option a.But the answer key says that it is wrong.This question is in MindQ's mock exam,
TextArea ta = new TextArea( 10, 3 );
Produces (select all correct statements):
a) a TextArea with 10 rows and up to 3 columns
b) a TextArea with a variable number of columns not less than 10 and 3 rows
c) a TextArea that may not contain more than 30 characters
d) a TextArea that can be edited
Thanks
Porchelvi


Hi Porchelvi,
I'll take a stab at it:
I think that a) is incorrect because the TextArea will have EXACTLY 10 rows and 3 columns (not UP TO), and my vote for the correct answer is d) b/c I believe that a TextArea is editable by default.
Others please correct me if I am wrong on this.
--liz

------------------
Elizabeth Lester
SCJP Dreamin'
[This message has been edited by Elizabeth Lester (edited September 23, 2001).]
 
Porchelvi Vendhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
Porchelvi
 
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a) is not right as 3 cols are created, not upto 3 cols
b) the question of variable # of cols does not rise
c) the textarea can certainly contain more than 30 chars. When you add the eleventh row, the previous ten rows scroll upwards to make way for the eleventh row (correct me if I'm wrong)
d) by default, it's editable so this is definitely right.
Shashi

Originally posted by Porchelvi Vendhan:
Hi!
For the following question can someone tell me what the answer is.I thought the answer was option a.But the answer key says that it is wrong.This question is in MindQ's mock exam,
TextArea ta = new TextArea( 10, 3 );
Produces (select all correct statements):
a) a TextArea with 10 rows and up to 3 columns
b) a TextArea with a variable number of columns not less than 10 and 3 rows
c) a TextArea that may not contain more than 30 characters
d) a TextArea that can be edited
Thanks
Porchelvi


 
Sasikanth Malladi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And, Prochlevi, if you can give the right answer, it'll definitely help.
Shashi
 
You get good luck from rubbing the belly of a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic