| Want to join in a course? Need suggestions? Visit CollegeZones.com |
|
Home / Test Papers / IGNOU / CS74 Introduction to Internet Programming CS74 Introduction to Internet Programming December 2005 | Ask a question Print this page |
Courses, Admissions & Eligibility
Admission to BA International Hospitality Administration - 2008-09 Session
Admission Procedure & Schedule
Colleges, Faculties & Departments
Partner Institutions outside India
IGNOU Test Papers (by Paper code)
IGNOU Dec 2008 Examination Timetables
BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination
December, 2005
CS74 : INTRODUCTION TO INTERNET PROGRAMMING
Time: 3 hours
Maximum Marks: 75
1. (a) Write a program in Java to perform the addition of two complex numbers. (10)
(b) Explain what happens if private is applied to a method in a class. Give an example. (5)
(c) Write the output of the following statements where
int a = - 8, b = 4 ;
(i) ++b<<1
(ii) a >> 2
What are final variable, final method and final class ? (3)
(d) What are final variable, final method and final class ? (3)
(e) Write a program in Java that asks the user to choose "circle" or "rectangle". On choosing "circle" she has to enter its radius. If "rectangle" is chosen, she is prompted to input the lengths of its sides.
Use an overloaded method to calculate the area and output the value on the screen. (8)
2. (a) Write a program that prompts the user to enter an integer divisor and an integer dividend. The program should output the quotient and the remainder. Catch any arithmetic exception and output the suitable message. (9)
(b) Define a constructor. Is it possible, to overload a constructor ? Justify your answer using an example. (6)
3. (a) What is finally block in Java ? How many finally blocks can be associated with a try block ? Give an appropriate example and explain. (8)
(b) Describe the accessibility of unnamed, private, protected and public members within a package, subclass and globally. (7)
4. (a) Consider the following class definition :
public class Excellent extends Good
{ public Excellent (int i)
{
}
public Excellent(int i, int j)
{ super (i, k);
}
}
In how many ways can the instances of Excellent class be created ? Write the corresponding statements. (8)
(b) Write a program to find the Least Common Multiple (LCM) of two integers. (5+2=7)
5. (a) Write a program to input characters from the keyword and output a table giving the different numbers of vowels. (10)
(b) Is every Java program platform independent ? Justify your answer. (5)
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - Forensic Science
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester