Sun Java Solaris Communities My SDN Account Join SDN
 
Quizzes

Fundamentals of the JavaMail[tm] API Quiz

 

Quizzes Index

TM API Quiz



Duke

Think you know your stuff about IMAP, POP, SMTP, MIME, and all those other Internet-related message protocols? Try this quiz from jGuru, based on Fundamentals of the JavaMail API.


 

1. Which of the following is not required to send mail to a user with a POP3 mailbox?
 A. The JavaBeans Activation Framework
 B. An SMTP Provider
 C. A POP3 Provider


2. When sending mail, which of the following is the proper order of working with classes?

 A. Session, Authenticator, Message, Transport
 B. Authenticator, Message, Session, Transport
 C. Authenticator, Session, Message, Transport


3. Which of the following statements is true?

 A. When you create a reply message, the original message content is copied over.
 B. When you create a message for forwarding, the original message content is copied over.
 C. When you create a reply message or one for forwarding, the message content is initially blank.
 D. When you create a reply message or one for forwarding, the original message content is copied over.


4. To send an image along with an HTML message, so that the HTML message refers to the included image, what must the image URL begin with?

 A. mail
 B. cid
 C. inline
 D. related
 E. alternate


5. The JavaMail API uses the Authenticator from the java.net package.

 A. True
 B. False


6. In order to delete a message, which flag must be set?

 A. Flags.Flag.DELETED
 B. Flag.DELETED
 C. Flags.DELETED
 D. Flag.Flags.DELETED


7. When retrieving mail, which of the following is the proper order of working with classes?

 A. Store, Folder, Message, Transport
 B. Session, Store, Folder, Message, Transport
 C. Session, Folder, Message, Transport
 D. Session, Store, Folder, Message


8. Which RFC is with the wrong protocol?

 A. SMTP -- RFC 821
 B. IMAP -- RFC 2060
 C. POP -- RFC 1993
 D. MIME -- RFC 2047


9. What is the process of removing deleted messages from a folder called?

 A. Expelling
 B. Excelling
 C. Exonerating
 D. Expunging


10. Which of the following is not part of the JavaBeans Activation Framework?

 A. DataHandler
 B. DataSource
 C. FileDataSource
 D. FileDataHandler