Create Software Components 

Using Java Level 2

 

 

Course Info

Scheme

Resources

Tutorials

Java Demos

Utilities

Links


 

    Quiz 3 - Answers

Classes, Applets & Applet Security

 

Question 1.   

(b) all class names should start with a capital letter

Question 2.         

(b) a method is a way of writing code nicely

Question 3.         

(c) inheritance

Question 4.         

(b) can have as many instances as you like

Question 5.         

(b) is a group of pre-defined Java classes

Question 6.         

(a) is used to include other required classes in your program

Question 7.         

(b) HelloWorld is a subclass of the Applet class

Question 8.    

(a) Java does not support inheritance (definitely false)

Question 9.         

public class FunkyApplet extends Applet

Question 10.   

(c) destroy()

Question 11.   

(a) A method used to remove an applet from memory

Question 12.   

(b) they cannot read, write or delete host files

Question 13.   

This question is not clear so...

An applet can do none of the things listed on a remote computer but it is possible for it to do all of the things listed using appletviewer on a local host.  

Question 14.   

(c) re-defining an inherited method

Question 15.   

(b) the second method

Question 16 - 20.   

one ( x because it is declared as static) 

x

one ( y because it is declared normally) 

y

doSomething

 

        

 

  Site Home 

Java Home   

  Forum  

Course Info

Welcome

Overview

Assessment

Qualification

Scheme of Work

Assignments

Resources

Information

Blackboard

Learning Center

Web Materials

Reading

Java Demos

Utilities

Links

Lecture Materials

Tutorials & Notes

Exercises

Activities

Quizzes

 

Site Home

Top

Unit Home

ADR 2002