I CS-74 I BACHELOR IN COMPUTER APPLICATIONS Term- End Examination

December, 2009

00

CS- 74 : INTRODUCTION TO INTERNET PROGRAMMING Maximum Marks : 75

Time : 3 hours

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

1.

(a) What is abstraction ? Explain through an example.

3

Differentiate between call-by-value and 3+3 call-by-reference with the help of suitable example. When are the members of a class declared 3+3 static ? What are the restrictions on a static method ? Discuss in brief two methods used for applet 2+2 execution. Write a recursive function in Java to print the gcd of two given integer numers. CS-74



1

5

P.T.O.

(f) Write the out put of the following :

1+3=4

int n = OX FFFFFFE for (int i = 0 ; i < 3 ; i ++) {

n = n << 1 ;

System - out - print lh (n) ; } int a = —10 ;

2

a >> 2;

2.

3.

(a)

Differentiate between throw and throes with the help of suitable example.

4

(b)

What is dynamic method dispathc ? Explain.

5

(c)

What is object serialization ? Write a program fragment to show how an object can be saved to and retrieved from file storage.

6

(a)

Can you extend an Interface in Java ? Explain with the help of a program fragment.

5

(b)

Write a program to show the use is Alive () and join () in Java.

6

(c)

Write a program to show the use of multiple catch statements with single try block ?

4

CS-74

2



4.

5.

(a) Write a program to copy one file to another file. Name of files are given at command line. What is an Inner class ? Explain with an example. Why do we use packages in Java ? How packages are created in Java ? Explain. List 5 important packages of Java. (a) What are the error (S) in the following code ? Also correct the error(s).

6

4 5

4

Class Demo I Public static void main ( string args [ I ) int x ; x = 10 ; if (x = = 10) f int y= 20; x=y*2 System. out. print In ("x =" +

System. out. print In ("y =" + y) ; } }

CS-74

3

P.T.O.

(b) Is it possible to overload constructors ?

4

Why would it be done ? Give suitable examples. If we have to prevent a class from being inherited, how can, we do it ? Explain.

2

Write the output of the following code :

5

String S = " This is my first Java Program" ; System. out. println ("index of (S) =" + S.index of ('S')) ; System. out. println ("index of (S) =" + S.index of ('S', 6)) ; -o0o-

CS-74

4

Introduction to Internet Programming.pdf

(c) What is object serialization ? Write a. program fragment to show ... Page 3 of 4. Main menu. Displaying Introduction to Internet Programming.pdf. Page 1 of 4.

56KB Sizes 0 Downloads 81 Views

Recommend Documents

Course Code : CS- 74 Course Title : Introduction to Internet ...
Oct 30, 2011 - IGNOU Friend. If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]. Course Code : CS- 74.

Download Introduction to Networking: How the Internet ...
Download Introduction to Networking: How the ... How Computers Work (How It Works) ... Code: The Hidden Language of Computer Hardware and Software.

pdf-0743\internet-architecture-an-introduction-to-ip-protocols-by ...
Try one of the apps below to open or edit this item. pdf-0743\internet-architecture-an-introduction-to-ip-protocols-by-uyless-d-black-uyless-black.pdf.

pdf-1453\introduction-to-psychoneuroimmunology-introduction-to ...
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf-1453\introduction-to-psychoneuroimmunology-introduction-to-psychoneuroimmunology-.pdf. pdf-1453\introduction-to-psychoneuroimmunology-introduction-to-

Internet Internet
any other place with an internet connection and permission from UWM) to ... example, adding reactor startup demonstrations in its tours. VIRTUAL CONSOLE ...

Cannot connect to internet .pdf
Page 1 of 2. Cannot connect to internet. 1. Right-click on your DVR and click 【Main Menu】—>【Network】, you can see the picture as below: 2. ”√“ 【DHCP】and ...

Response to “Issues Related to Internet ... - Services
In many ways, Google offers this submission not simply on behalf of the aspirations of its own global organization but also on behalf of the countless other Indian innovators and entrepreneurs – those of today and those of the future – who seek t

INTRODUCTION TO MATLAB
7.1 Solve a Linear System . .... a sequence of Matlab commands that will be executed from top to bottom just as if you had typed them on the command ... There is also a wealth of information under Help Desk in the Help menu of Matlab's ...

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...

INTRODUCTION TO MATLAB
Get on a department PC or buy Student Matlab for your own machine and start the .... x=0:h:20; % build an array of points [0,h,2h,...,20] ..... looks good. ... Note: the example in the box below is available on the Physics 330 course website, as.

Introduction to Lab 2
Sep 15, 2010 - http://www.it.uu.se/edu/course/homepage/realtid/ht10/lab2. Lab report ... Based on OSEK (industry standard for automotive embedded systems).

Introduction to Algorithms - GitHub
Each cut is free. The management of Serling ..... scalar multiplications to compute the 100 50 matrix product A2A3, plus another. 10 100 50 D 50,000 scalar ..... Optimal substructure varies across problem domains in two ways: 1. how many ...

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...