• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Applet

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello....
Here's a question I found on a mock exam:
Q) What tags are mandatory when creating HTML to display an applet
Select most appropriate answer.
a) name, height, width
b) code, name
c) codebase, height, width
d) code, height, width
e) None of the above
The answer given is C..... But I think it should be D....
Any inputs???
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shafeeq Sheikh,
IMO u shoul have not written why it should be d and not c. Based on this i could have told u how u r logic if false. The correct answer is obvioulsly c.
u need to specify what the java applet class file which is done through
< applet code=rahul.class
then u need to specify what height and width it would occupy
< applet code=rahul.class height=200 width=200>< /applet >
thus the code, height and width are absolutely necessary to specify in html file
Regds.
Rahul.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rahul,
You yourself are using only code, width and height in the tags, which implies the answer to be D, but still you are insisting that the answer is C. Can you tell me what I'm missing over here?
Thanks,
Aman

Originally posted by rahul_mkar:
Hi Shafeeq Sheikh,
IMO u shoul have not written why it should be d and not c. Based on this i could have told u how u r logic if false. The correct answer is obvioulsly c.
u need to specify what the java applet class file which is done through
< applet code=rahul.class
then u need to specify what height and width it would occupy
< applet code=rahul.class height=200 width=200>< /applet >
thus the code, height and width are absolutely necessary to specify in html file
Regds.
Rahul.


 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
CODBASE----Used to define an alternate URL for the location of the class file.
Clear? Alternate!
 
Shafeeq Sheikh
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi James, Rahul.....
The question asks for the mandatory tags to be used in an applet.
As far as I know CODEBASE is not mandatory...... and as James pointed out that it is an "alternate" form of specifying the location of the class file.
This is why I thought answer D is correct and not C.
By the way the question is from Sarga.com
Any thoughts???
Thanks,
Shafeeq
 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shafeeq,
I do agree with u.
vivek
 
Shafeeq Sheikh
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So does this mean that the answer given is definitely wrong???
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. Rahul just misread the letter options I think. We all agree that CODE is required; CODEBASE is not.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
yes as Jim specified i misread the letter Options. I specified c as the answer while all the time i was telling how d is the correct answer. anyhow it stands rectified now.
one more rule for the exam.
Don't misread answers!!!
Regds.
Rahul.
reply
    Bookmark Topic Watch Topic
  • New Topic