• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

mindQ question

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
46. This piece of code:

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
the answer is a and d
I just donot understand why upto 3 columns , is not is exactly 3 columns?
45. Which methods does java.lang.Math include for trigonometric computations?
a) sin()
b) cos()
c) tan()
d) aSin()
e) aCos()
f) aTan()
g) toDegree()
the answer is a b c, but in some other mock exams(which I donot remember, aSin, aCos, aTan are also trigonometric )
can anyone explain?
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
other trigonometric fns are asin(), acos(), atan() & toDegrees()
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mary,
The textArea can contain any Java Font. Some fonts are not fixed size therefore we can't say that it will have exactly 3 columns because the width calc will use the largest font character (probably something like 'W'). Therefore, if we type in many narrow characters (probably something like 'i') we may fit more than 3 of them on a line!
Java is case sensitive and java.lang.Math does not have methods named aSin, aCos, or aTan. The correct methods are asin, acos, and atan.
Regards,
Manfred.
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by mary lee:
46. This piece of code:

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
the answer is a and d
I just donot understand why upto 3 columns , is not is exactly 3 columns?
45. Which methods does java.lang.Math include for trigonometric computations?
a) sin()
b) cos()
c) tan()
d) aSin()
e) aCos()
f) aTan()
g) toDegree()
the answer is a b c, but in some other mock exams(which I donot remember, aSin, aCos, aTan are also trigonometric )
can anyone explain?


A little piece of advice i would like to give is to just work with two or three awt prolems(mainly list,Textarea,layout)It is cool and u understand the things better.
In Second part u are tricked for asin()... are tr functions but not aSin()...;
 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi marry lee,
the questions which u posted, r they mindQ questions?r the questions from mindQ site?can the questions on the site be attempted free of cost?if so,please let me know the url of the site.waiting for ur response.
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rajashree,
Check Maha Anna's list of mock exams , there is a link to the MindQ exam. It is link no11
Nandini
 
mary lee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the website of maha's mock exam: http://www.javaranch.com/maha/_Mock_Exams/_mock_exams.html
there is a link to MindQ
thanks a lot for all the information
 
Your mother was a hamster and your father was a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic