Friday, September 11, 2009

IGNOU ‘JAVA, ACTIVE X’ Question Paper

IGNOU ‘JAVA, ACTIVE X’ Question Paper

Posted on Friday, September 11, 2009
This was posted in BCA

June 2001
CS-74: INTRODUCTION OF INTERNET PROGRAMMING
(JAVA, ACTIVE X)

Time: 3 hours Maximum Marks: 75

Note: Question 1 is compulsory. Attempt any three from the rest.

1. (i) Write a Java program to count to 1000 numbers using 10 threads. [10]
(ii) Write a complete Java program to calculate Fibonacci series non-recursively. [10]
(iii) Describe main features of Java Programming language. [10]

2. (i) What is the need of layout manager? Describe a Border Layout. How do you create a Border Layout Container? List the names of five sections in a Border Layout. Can you add multiple components in the same section? [10]
(ii) How do you create a text field with a width of 10 characters and the default text “Welcome to Java”? [5]
(iii) How do you create a checkbox with three choice items? How do you determine if a box is checked? [5]

3. (i) Describe the AWT class hierarchy. Also describe the methods in component, container, frame and panel class. [10]
(ii) Explain the following terms with examples: [5]

  • Panel
  • Frame
  • Container

4. (a) What is multithreading? What is the difference between a thread and a process? When do you use the thread class and when do you use the Runnable interface? What are the differences? [10]
(b) State true or false: [5]

  • Every element in the array has the same type.
  • Array size is fixed after it is created.
  • You can add a frame to a panel.
  • You can add panel to a frame.
  • You can add a buffer to a frame.

5. (a) What is the difference between application and applet? Write an applet to display “I like Java programming” and explain various features of how applet program is written. [8]
(b) Define the init ( ), start ( ) and destroy ( ) method in the Applet class. Is the get parameter ( ) method defined in the Applet Class? Is the paint ( ) method defined in the Applet class? What are these methods originally defined? [7]
6. Describe the following terms with examples: [15]

  • Interface
  • Constructors and methods
  • The modifier final
  • The modifier abstract
  • Private
  • Protected

No comments:

Post a Comment