BCA IGNOU

Pages (1) : [1]



CS-74 Introduction to Internet Programming June-2004

Filed under:

Question Paper of CS-74 Introduction to Internet Programming June-2004

Ql(a). What is a byte code in Java?

(b) What is the default access method in Java? Explain this with the help of a suitable example.

© Can an abstract method be declared as final? Justify your answer.

(d) Write a program in Java to print the following pattern for a given input n = 5:
1
22.2
33333
4444444
555555555

(e) Find the error(s), if any, in the following blocks. Also correct the error(s),
(i) Class Demo {
Static void f( )
{system.out.println ("Inside f( )");
throw new Illegal Access Exception ("demo");
}
public static void main (string args[ ])
{
f();
}
}

(ii) Abstract Class A {

Abstract void f( );

Abstract void g( );
Void display ( ){
System.out.println ("Inside A");
}
}
Class B extends A
{
voidf( ){
system.out.println ("Version of B");
} :
Void display( ){system.out.printlii ("Inside B");
}
}
Class Demo {
Public static void main (string args [])
{
B b = newB( );
b.display( );
}
}

(f) What is ‘this’ keyword? How is it different from a super Keyword?

(g) Write a Java program to calculate the sum of the digits of a number. The sum should be calculated recursively to get 2 sing* a'’-A* son, (For example, if input is 189, then the result will be 9).
The input should be accepted from the COHMBU*:I? Ymz.

Pages: 1 2 3 4 5 6

Related Other Question Papers

CS-74 Introduction to Internet Programming (JAVA, ACTIV X)

We are in the process of upadting this section for the question papers of BCA IGNOU

CS-74: Introduction To Internet Programming June-2001

Question Papere of CS-74: Introduction To Internet Programming June-2001 Ql(i). Write a Java program to count 1 to 1000 numbers using 10 threads. (ii) Write a complete Java program to calculate Fibonacci series non recursively. (iii) Describe main features of Java programming language. Q2(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? (ii) How do you create a textfield with a width of 10 characters and the default text "Welcome to Java"? (iii) How doyou

CS-74 Introduction To Internet Programming Dec.2004

Question Paper of CS-74 Introduction To Internet Programming Dec.2004 Ql(a) Why is Java platform independent ? Explain two advantages of Java independency. (b) Explain why main method of any Java program is always static. Your explanation should include all the properties of any static method. (c) Write a program in Java to print the following pattern for a given input n = 5. Number = 1 Sum = 1 Number = 2 Sum = 3 Number = 3 Sum = 6 Number = 4 Sum = 10 Number = 5 Sum = 15 (d) Explain three uses of final

CS -74 Introduction To Internet Programming June -2002

Question Paper of CS -74 Introduction To Internet Programming June -2002 Ql(i). Write a Java program that reads in an integer and breaks it into a sequence of individual digits, for example, the input 16384 is displayed as 1 6 3 8 4. (ii) Answer the following questions: (a) What is a final variable? Can you define a final variable without supplying its value? (b) What is the Java virtual machine ? Explain it. (c) What is a integrated programming environment? (d) Describe the paint() method. Where is it defined? How is it invoked? (e) What method do you use to obtain an input

CS-74 Introduction To Internet Programming June - 2005

Question Paper of CS-74 Introduction To Internet Programming June - 2005 Q.l(a) Write a program in Java to find the largest and smallest of n numbers stored in an array, where n is a positive integer. Program to find Max and Min in an Array. (b) What happens if final is applied to method in a class ? Explain with the help of suitable example. (c) Write the output of the following statements



Courses Offered by IGNOU

School of Computer and Information Sciences (SOCIS)
Master of Computer Applications (MCA)
Bachelor of Computer Applications (BCA)
Bachelor of Information Technology (BIT)
Advanced Diploma in Information Technology (ADIT)
Certificate in Computing (CIC)

School of Humanities
M.A.English (MEG)
M.A.Hindi (MHD)
BA English
BA Hindi
Postgraduate Diploma in Radio Prasran (PGDRP)
Postgraduate Diploma in Translation (PGDT)
Diploma in Creative Writing in English (DCE)
Postgraduate Certificate in Television Writing (PGCTW)
Postgraduate Certificate in Copyediting and Proofreading (PGCCP)
Certificate in the Teaching of English (CTE)

School of Education
Doctor of Philosophy (Ph.D.) (Phase-I)
Post Graduate Diploma in Higher Education (PGDHE)
Bachelor of Education (B.Ed)
Diploma in Primary Education (DPE)
CIG
Certificate in Primary Education (CPE)
Master of Arts (Education)
Post Graduate Diploma in Educational Technology (PGDET)
Post Graduate Diploma in School Leadership and Management (PGDSLM)

School of Continuing Education
Bachelor in Social Work (BSW)
Postgraduate Diploma in Rural Development (PGDRD)
Diploma in HIV & Family Education (DAFE)
Certificate in HIV & Family Education (CAFÉ)
Certificate Programme in Rural Development (CRD)
Elective in Rural Development
Diploma in Nutrition and Health Education (DNHE)
Diploma in Early Childhood Care and Education (DECE)
Certificate in Food and Nutrition (CFN)
Certificate Programme in Nutrition and Childcare (CNCC)
Application Oriented Courses for BDP
Postgraduate Diploma in Journalism and Mass Communication (PGDJMC)
Post Graduate Diploma in Audio Programme Production (PGDAPP)
Certificate in Food Safety (CFS)
M.A. in Rural Development, M.A.(RD)
Master's of Science Degree in Dietetics and Food Service Management {MSc. (DFSM) }
Application Oriented Courses for BDP

School of Health Sciences
Post Basic Bachelor of Sciences in Nursing
Post Graduate Diploma in Maternal & Child Health
Post Graduate Diploma in Hospital and Health Management
Post Graduate Certificate in Rural Surgery
Post Graduate Diploma in Geriatric Medicine
Certificate in Health and Environment
Certificate in Health Care Waste Management
Post Graduate Diploma in Community Cardiology

School of Sciences
Bachelor of Science (B.Sc.) Programme
Certficate Programme Teaching of Primary School Mathematics (CTPM)
Certificate Programme in Laboratory Techniques (CPLT)
Post Graduate Diploma in Intellectal Property Rights (PGDIPR)
Post Graduate Diploma in Environment and Sustainable Devlopment
Appreciation Course On Environment
Awareness Course On Intellectual Property Rights
Programme Under Development