3582-3427-internet programming languages

Upload: rahman-iqbal

Post on 08-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 3582-3427-Internet Programming Languages

    1/4

    ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD(Department of Computer Science)

    Course: Internet Programming Languages 3582/3427 Semester: Autumn, 2010

    Level: PGD (CS) Total Marks: 100

    Pass Marks: 40

    WARNING1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING

    THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD

    OF DEGREE/CERTIFICATE, IF FOUND AT ANY STAGE.

    2. SUBMITTING ASSIGNMENTS BORROWED OR STOLEN FROM

    OTHER(S) AS ONES OWN WILL BE PENALIZED AS DEFINED IN

    AIOU PLAGIARISM POLICY.

    ASSIGNMENT No. 1

    Note: All questions carry equal marks.

    Q.1 Define and Explain the following: (20)

    (i) Class

    (ii) Object

    (iii) Polymorphism

    (iv) Inheritance

    Q.2 (a) Differentiate between Java and other OOPs languages.

    (b) What are the Characteristics of Java? (20)

    Q.3 (a) Why we use comments? Discuss different types of comment with example?

    (b) Write a simple Java Program and explain its components. (20)

    Q.4 (a) Discuss different data types available in Java.

    (b) Differentiate between call-by-value and call-by-reference. (20)

    Q.5 (a) What is Array? How we declare, initialize and process array elements?

    (b) Write a Java program to sort out the elements of an array in ascendingorder? (20)

  • 8/7/2019 3582-3427-Internet Programming Languages

    2/4

    ASSIGNMENT No. 2Total Marks: 100 Pass Marks: 40

    Note: All questions carry equal marks.

    Q.1 (a) Explain the use of Break and Continue statements in Java.

    (b) Write a Java program which display even number from 1 to 100.

    Q.2 What is inheritance? Explain the concept of super class and Sub class with the help

    of example?

    Q.3 (a) Explain different field modifier available in Java.

    (b) What is overriding? Explain with the help of example?

    Q.4 (a) Differentiate between static and dynamic binding?

    (b) What is exception? Explain the types of Exceptions? Also elaborate the use

    of Try & Catch statements?

    Q.5 Define and explain each of the following.

    (i) Layout Manager

    (ii) Interface

    (iii) Package

    (iv) Finalizer

    2

  • 8/7/2019 3582-3427-Internet Programming Languages

    3/4

    Internet Programming Languages (3427)Recommended Book: JAVA, How to Program by Deital & Deital, 3rd Edition

    Course Outlines:

    Unit No. 1 Introduction

    a)Introduction to Java Applications, Introduction

    b) Using Comments, Block of Codes, a Simple Java Program

    Unit No. 2 Data Types & Arrays

    a) Data Types, Declaring & Allocating Arraysb) References and Reference Parameters

    c)Searching Arrays, Multiple Subscripted Arrays

    Unit No. 3 Control Structures-I

    a) Selection Structure, While Repetition Structure

    Unit No. 4 Control Structures-II

    a)For Repetition Structure, Do/While Repetition Structure

    b) Break and Continue

    c)Multiple Selection Structure

    Unit No. 5 Object Oriented Programming-I

    a)Introduction to Class, Class Scopes, Creating Packages,

    b) Constructors, Set & Get Method

    c)This Reference, Finalizer, Static Class Member

    Unit No. 6 Object Oriented Programming-II

    a) Super Class, Sub Classes, Protected Membersb) Inheritance, Polymorphism

    c) Dynamic Method Binding, Inner Class Definitions

    Unit No. 7 Packages, Interfaces, and Exception Handling

    a) Defining a Package, Access Protection, Importing Packages, Interfacesb) Exception-Handling Fundamentals, Exception Types, Using Try & Catchc) Java Built-In-Exceptions

    Unit No. 8 Strings & Characters

    a) String Constructors, String comparing, String Methods

    b) String Concatenating

    c) String Classes, String Methods

    Unit No. 9 GUI

    a) Graphics Context, Graphic Methods, Color and Font Control

    b) Drawing Shapes, Java 2D API

    c) Java 2D Shapes, Swing Overview, JLable, Event Handling Model

    3

  • 8/7/2019 3582-3427-Internet Programming Languages

    4/4

    d) JButton, JTextField, JRadioButton, JCheckBox, JListe) Multiple Selection List, Mouse Event Handling

    f) KeyBoard Event Handling, Layout Managers.

    4