Vous êtes sur la page 1sur 3

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer S !

en e" #ARNIN$
%& *& PLA$IARISM OR 'IRIN$ O( $'OST #RITER(S" (OR SOLVIN$ T'E ASSI$NMENT(S" #ILL DEBAR T'E STUDENT (ROM A#ARD O( DE$REE)CERTI(ICATE, I( (OUND AT ANY STA$E& SUBMITTIN$ ASSI$NMENTS BORRO#ED OR STOLEN (ROM OT'ER(S" AS ONE+S O#N #ILL BE PENALI,ED AS DE(INED IN -AIOU PLA$IARISM POLICY.&

Cour/e0 Internet Pro1ramm!n1 Lan1ua1e (234*"


Le5e60 Po/t $ra7uate Tota6 Mar9/0 %88 Seme/ter0 Autumn, *8%2 Pa// Mar9/0 :8

ASSI$NMENT No& %
Note: All carry equal marks. Q.1 a) b) Q. a) b) Explain what a Java applications, also describe the history of Java? Write a simple program which printing a line of text. What is any array? Explain all types of array with an example. Explain different data types !sed in Java with examples. #escribe if and else $election str!ct!res with example. Why while repetition str!ct!re is !sed in %ava programs, explain the while repetition str!ct!re?

Q." a) b)

Q.& 'he factorial of a nonnegative integer n is written n( )*rono!nced +n factorial,) and is defined as follows.( / n )n01) )n0 ). . . 1 )for val!es of n greater than or e1!al to 1) and n( / 1 )for n / 2) 3or example, 4( / 4.&.". .1, which is 1 2. a) Write an application that reads a nonnegative integer from an inp!t dialog and comp!tes and prints its factorial. b) Write an application that estimates the val!e of the mathematical constant e by !sing the form!la
1 1 1 e= 1+ + + + ... 1 ( ( "(

Q.4 a) b)

#escribe switch 5!ltiple0$election str!ct!re. 6lso write down it programming str!ct!re in %ava. What is 7b%ect oriented? #escribe controlling access to members and scope of class.
1

ASSI$NMENT No& *
Tota6 Mar9/0 %88
Note: All carry equal marks. Q.1 a) b) Q. a) b) Q." a) b) Q.& a) b) Q.4 a) b) #isc!ss why casting a s!perclass reference to a s!bclass reference potentially dangero!s? What are pac8ages in %ava? 9riefly describe the Java 6*: pac8ages. #isting!ish between inheriting interface and inheriting implantation? ;ow do inheritance hierarchies designed for inheriting interface differ from those designed for inheriting implantation? What is *olymorphism? #escribe with an example. 9riefly describe the constr!ctors of <lass string. 6lso write demonstrating of $tring class constr!ctors in %ava. #ifferentiate between abstract s!per class and concrete classes. Explain the relationship between $!perclass and $!bclass 7b%ects with examples. Explain the private, public and protected members of a $!perclass and $!bclass in %ava. Write a program in %ava having parent and child classes to demonstrate the concept of inheritance. Write down the advantages and disadvantages of m!ltiple inheritances. Explain $tring 9!ffer and $tring 'o8eni=er classes along with their methods.

Pa// Mar9/0 :8

Internet Pro1ramm!n1 Lan1ua1e/ (234*"


Cour/e Out6!ne

Cre7!t 'our/0 : (2;%"

Re ommen7e7 Boo90 <a5a 'o= to Pro1ram >? De!ta6 & De!ta6, 2r7 E7!t!on
Un!t@6 Intro7u t!on a) :ntrod!ction to Java 6pplications, :ntrod!ction b) >sing <omments, 9loc8 of <odes, a $imple Java *rogram Un!t@* Data T?pe/ & Arra?/ a) #ata 'ypes, #eclaring ? 6llocating 6rrays b) @eferences and @eference *arameters c) $earching 6rrays, 5!ltiple $!bscripted 6rrays Un!t@2 Contro6 Stru ture/AI a) $election $tr!ct!re b) While @epetition $tr!ct!re Un!t@: Contro6 Stru ture/AII a) 3or @epetition $tr!ct!re, #oAWhile @epetition $tr!ct!re b) 9rea8 and <ontin!e c) 5!ltiple $election $tr!ct!re Un!t@3 O>Be t Or!ente7 Pro1ramm!n1AI a) :ntrod!ction to <lass, <lass $copes, <reating *ac8ages b) <onstr!ctors, $et ? Bet 5ethod c) 'his @eference, 3inali=er, $tatic <lass 5ember Un!t@C O>Be t Or!ente7 Pro1ramm!n1AII a) $!per <lass, $!b <lasses, *rotected 5embers b) :nheritance, *olymorphism c) #ynamic 5ethod 9inding, :nner <lass #efinitions Un!t@D Pa a) b) c) 9a1e/, Interfa e/, an7 EE ept!on 'an76!n1 #efining a *ac8age, 6ccess *rotection, :mporting *ac8ages, :nterfaces Exception0;andling 3!ndamentals, Exception 'ypes, >sing 'ry ? <atch Java 9!ilt0in0Exceptions

Un!t@4 Str!n1/ & CFara ter/ a) $tring <onstr!ctors, $tring <omparing, $tring 5ethods b) $tring <oncatenating c) $tring <lasses, $tring 5ethods Un!t@G $UI a) Braphics <ontext, Braphic 5ethods, <olor and 3ont <ontrol b) #rawing $hapes, Java # 6*: c) Java # $hapes, $wing 7verview, Jlable, Event ;andling 5odel d) J9!tton, J'extfield, J@adiob!tton, J<hec8box, JCist e) 5!ltiple $election Cist, 5o!se Event ;andling f) Dey9oeard Event ;andling, Cayo!t 5anagers.
"

Vous aimerez peut-être aussi