360 - BSC (CS) - Semester V KU
360 - BSC (CS) - Semester V KU
360 - BSC (CS) - Semester V KU
Credits: 2
Theory: 2 hours/week Marks - 50
Credits: 2
Theory :2 hours/week Marks: 50
Unit I
Introduction: Java Essentials, JVM, Java Features, Creation and Execution of Programs, Data
Types, Type Conversion, Casting, Conditional Statements, Loops, Branching Mechanism,
Classes, Objects, Class Declaration, Creating Objects, Method Declaration and Invocation,
Method Overloading,
Unit II
Constructors – Parameterized Constructors, Constructor Overloading, Cleaning-up unused
Objects. Class Variables &Method-static Keyword, this Keyword, One-Dimensional Arrays,
Two-Dimensional Arrays, Command-Line Arguments, Inner Class.
Inheritance: Introduction, Types of Inheritance, extends Keyword, Examples, Method
Overriding, super, final Keyword, Abstract classes, Interfaces, Abstract Classes Verses
Interfaces.
Packages: Creating and Using Packages, Access Protection, Wrapper Classes, String Class,
String Buffer Class.
Unit III
Exception: Introduction, Types, Exception Handling Techniques, User-Defined Exception.
Multithreading: Introduction, Main Thread and Creation of New Threads –By Inheriting the
Thread Class or Implementing the Runnable Interface, Thread Lifecycle, Thread Priority and
Synchronization.
Input/Output: Introduction, java.io Package, File Class, FileInputStream Class, FileOutputStream
Class, Scanner Class, BufferedInputStream Class, BufferedOutputStream Class,
RandomAccessFile Class.
Unit IV
Applets: Introduction, Example, Life Cycle, Applet Class, Common Methods Used in Displaying
the Output.
Event Handling: Introduction, Types of Events, Example.
AWT: Introduction, Components, Containers, Button, Label, Checkbox, Radio Buttons,
Container Class, Layouts. Swing: Introduction, Differences between Swing and AWT, Jframe,
Japplet, Jpanel, Components in Swings, Layout Managers, Jtable, Dialog Box.
Database Handling Using JDBC: Introduction, Types of JDBC Drivers, Load the Driver,
Establish Connection, Create Statement, Execute Query, Iterate Resultset, Scrollable Resultset,
Developing a JDBC Application.
References:
1. Bruce Eckel, Thinking in Java (4e)
2. Herbert Schildt, Java: The Complete Reference (9e)
3. Y. Daniel Liang, Introduction to Java Programming (10e)
4. Paul Deitel, Harvey Deitel, Java: How To Program (10e)
5. Cay S. Horsttnann, Core Java Volume I –Fundamentals (10e)
6. C. Thomas Wu, An introduction to object-oriented programming with Java (5e)
7. Tony Gaddis, Starting Out with Java From Control Structures Through Objects (6e)
8. Jeanne Boyarsky, Scott Selikoff, OCA: Oracle Certified Associate Java SE 8 Programmer–
I Study Guide
Note:
Programs of all the Concepts from Text Book including exercises must be practice and
execute.
Faculty must take care about UG Standard Programs.
In the external lab examination student has to execute two programs with compilation
and deployment steps are necessary.
External Vice-Voce is compulsory.
3.
a) Write a Java program to find the smallest from given list of integers using array
and scanner class.
b) Write a Java program for multiplication of two matrices.
4.
a) Write a Java program for demonstrating an inner class or nested class.
b) Write a Java program to implement method overloading, method overriding,
dynamic method dispatch
6. Write Java programs that demonstrate the use of abstract, this, super, static, final
keywords
7.
a) Write a Java program for creating a package and using a package.
b) Write a Java program to demonstrate the use of wrapper classes.
8.
a) Write a Java program using all five keywords of exception handling mechanism.
9.
a) Write a Java program that checks whether a given string is a palindrome or not.
b) Write a Java program for sorting a given list of names in ascending order.
10.
a) Write a Java program to create a file, write the data and display the data.
b) Write a Java program that reads a file name from user and displays its information.
11.
a) Write a Java program for controlling main thread.
b) Write a Java program for creating new thread by extending Thread class.
12.
a) Write a Java program for creating new thread by implementing Runnable interface.
b) Write a Java program for thread synchronization.
13.
a) Write a Java program to create following AWT components: Button, Checkbox,
Choice and List.
b) Write Java programs to create AWT application using containers and layouts.
14.
a) Write Java programs to create a simple Applet.
b) Write a Java program to handle different types of events in a swing application.
15. Write Java programs to create a swing application using swing components and layouts.
16. Write a Java program to store and retrieve data from database using JDBC.
A) Computer Networks
Unit I
Introduction: Data Communication Components, Line Configuration, Topologies, Transmission
Mode, Categories of Networks, ISO Reference Model–Layered Architecture, Functions of
Layers, TCP/IP Reference Model.
Transmission Media: Guided Media–Twisted Pair Cable, Coaxial Cable, Optical Fiber,
Unguided Media– Satellite Communication, and Cellular Telephony. Multiplexing: Frequency–
Division Multiplexing, Time–Division Multiplexing.
Unit II
Data Link Layer: Error Detection–VRC, LRC, CRC, Checksum, Error Correction–Hamming
Code, Burst Error Correction, Line Discipline–ENQ/ACK, Poll/Select, Flow Control–Stop-and-
Wait, Sliding Window, Error Control–Stop-and-Wait ARQ, Sliding Window ARQ Go-Back-n
ARQ, Selective-Reject ARQ.
Unit III
Local Area Networks: Introduction to IEEE 802, Ethernet-CSMA/CD, Implementation, Token
Ring,-Token Passing, Implementation.
Switching: Circuit Switching, Packet Switching, Message Switching.
Unit IV
Networking and Internetworking Devices: Repeaters, Bridges, Routers, Gateways, Routers,
Switches, Distance Vector Routing Algorithm, Link State Routing Algorithm.
Transport Layer: Duties of Transport Layer, Connection. Upper OSI Layers; Session Layer,
Presentation Layer, Application Layer.
Text Book:
Behrouz A. Forouzan, Data Communication and Networking (2e Update)
References:
1. S.S. Shinde, Computer Networks
2. William Stallings, Data and Computer Communications
3. Andrew S. Tanenbaum, David J Wetherall, Computer Networks
4. Behrouz A Forouzan, Firouz Mosharraf, Computer Networks A Top-Down Approach
5. James F. Kurose, Keith W. Ross, Computer Networking: A Top-Down Approach
Featuring the Internet.
B. Visual Programming
Unit I
Introduction to VB: Writing windows application with VB, Programming languages -procedural,
object oriented, event driven; VB Environment, Writing first VB project, compiling, debugging,
and running the programs.
Controls : Introduction to controls textboxes, frames, check boxes, option buttons, images,
setting borders and styles, the shape control, the line control, working with multiple controls and
their properties, designing the user interface, keyboard access, tab controls, default & cancel
property, coding for controls.
Variables, constants, and Calculation: Data types, naming rules and conversion, constants-named
and intrinsic, declaring variables, scope of variables, val function, arithmetic operations,
formatting data Counting and accumulating Sums.
Unit II
Decisions and Conditions : If statement, Conditions comparing numeric variables and constants,
comparing strings, compound conditions (and, or, not), nested if statements, using if statements
with option buttons & check boxes, displaying message in message box, input validation. Calling
event procedures, debugging VB projects, Debugging Step-by-Step Tutorial.
Modular programming: Menus, using common dialog box, writing general procedure.
Unit III
Forms Handling: Multiple forms, creating, adding, removing forms, hide, show method, load,
unload statement, me keyword, referring to objects on a different forms, Variables and constants
in Multiple-Forms.
Iteration Handling: Lists Boxes and Combo Boxes, Do/loops, for/next loops, using msgbox
function, using string function
Arrays: control Arrays, the case structure, single-dimension arrays, for Each/Next statement,
table lookup, using list boxes with array, multi dimensional arrays.
Unit IV
Database Connectivity: VB and database, using the data control, viewing a database file-step-by-
step, Navigating the Database in code, using list boxes and comboboxes as data-bound controls,
adding a lookup table and navigation-step-by-step, updating a database file, Record sets, working
with database fields, creating a new Dynaset.
Advanced topics in VB: ActiveX controls, Dynamic link libraries (DLL), Multiple Document
interface (MDI).
Text Book:
1. Programming in Visual Basic 6.0 by Julia Case Bradley, Anita C. Millispangh (Tata
Mcgraw Hill Edition 2000 (Fourteenth Reprint 2004)
C) Python
Unit I
Introduction to Python: Python, Features of Python, Execution of a Python Program, Viewing the
Byte Code, Flavors of Python, Python Virtual Machine, Frozen Binaries, Memory Management in
Python, Garbage Collection in Python, Comparisons between C and Python, Comparisons between
Java and Python.
Writing Our First Python Program: Installing Python for Windows, Installing numpy, Setting the
Path to Python, Writing Our First Python Program, Executing a Python Program, Getting Help in
Python, Getting Python Documentation Help, Reopening the Python Program in IDLE.
Data types in Python: Comments in Python, Doc strings, How Python Sees Variables, Data types in
Python, Built-in data types, bool Data type, Sequences in Python, Sets, Literals in Python,
Determining the Data type of a Variable, What about Characters, User-defined Data types, Constants
in Python, Identifiers and Reserved words, Naming Conventions in Python.
Unit II
Operators in Python: Arithmetic Operators, Assignment Operators, Unary Minus Operator,
Relational Operators, Logical Operators, Boolean Operators, Bitwise Operators, Membership
Operators, Identity Operators, Operator Precedence and Associativity, Mathematical Functions.
Input and Output: Output statements, Input Statements, Command Line Arguments. Control
Statements: Control Statements, The if Statement, A Word on Indentation, The if … else Statement,
The if … elif … else Statement, The while Loop, The for Loop, Infinite Loops, Nested Loops, The
else Suite, The break Statement, The continue Statement, The pass Statement, The assert Statement,
The return Statement.
Unit III
Arrays in Python: Array, Advantages of Arrays, Creating an Array, Importing the Array Module,
Indexing and Slicing on Arrays, Processing the Arrays, Types of Arrays, Working with Arrays using
numpy, Creating Arrays using array(), linspace, logspace, arange(), zeros() and ones() Functions,
Mathematical Operations on Arrays, Comparing Arrays, Aliasing the Arrays, Viewing and Copying
Arrays, Slicing and Indexing in numpy Arrays, Dimensions of Arrays, Attributes of an Array, The
reshape() Method, The flatten() Method, Working with Multi-dimensional Arrays, Indexing in Multi-
dimensional Arrays, Slicing the Multi-dimensional Arrays, Matrices in numpy, Getting Diagonal
Elements of a Matrix, Finding Maximum and Minimum Elements, Finding Sum and Average of
Elements, Products of Elements, Sorting the Matrix, Transpose of a Matrix, Matrix Addition and
Multiplication, Random Numbers.
Strings and Characters: Creating Strings, Length of a String, Indexing in Strings, Slicing the Strings,
Repeating the Strings, Concatenation of Strings, Checking Membership, Comparing Strings,
Removing Spaces from a String, Finding Sub Strings, Counting Substrings in a String, Strings are
Immutable, Replacing a String with another String, Splitting and Joining Strings, Changing Case of a
String, Checking Starting and Ending of a String, String Testing Methods, Formatting the Strings,
Unit IV
Functions: Difference between a Function and a Method, Defining a Function, Calling a Function,
Returning Results from a Function, Returning Multiple Values from a Function, Functions are First
Class Objects, Pass by Object Reference, Formal and Actual Arguments, Positional Arguments,
Keyword Arguments, Default Arguments, Variable Length Arguments, Local and Global Variables,
The Global Keyword, Passing a Group of Elements to a Function, Recursive Functions, Anonymous
Functions or Lambdas, Function Decorators, Generators, Structured Programming, Creating our Own
Modules in Python, The Special Variable name.
Lists and Tuples: List, Creating Lists using range() Function, Updating the Elements of a List,
Concatenation of Two Lists, Repetition of Lists, Membership in Lists, Aliasing and Cloning Lists,
Methods to Process Lists, Finding Biggest and Smallest Elements in a List, Sorting the List
Elements, Number of Occurrences of an Element in the List, Finding Common Elements in Two
Lists, Storing Different Types of Data in a List, Nested Lists, Nested Lists as Matrices, List
Comprehensions, Tuples, Creating Tuples, Accessing the Tuple Elements, Basic Operations on
Tuples, Functions to Process Tuples, Nested Tuples, Inserting Elements in a Tuple, Modifying
Elements of a Tuple, Deleting Elements from a Tuple.
Text Book:
R. Nageswara Rao, Corer Python Programming, Dreamtech Press
References:
1. Mark Lutz, Learning Python
2. Tony Gaddis, Starting Out With Python
3. Kenneth A. Lambert, Fundamentals of Python
4. James Payne, Beginning Python using Python 2.6 and Python 3
5. Paul Gries, Practical Programming: An Introduction to Computer Science using
Python 3
Note:
Student friendly video lecturers pertaining to this course are available at
http://spoken-tutorial.org/
Teachers are advised to teach these courses in the computer lab itself, so that the interested
students may derive some time to perform few programs their own.
C) Python Lab
Note:
Programs of all the Concepts from Text Book including exercises must be practice and
execute.
Faculty must take care about UG Standard Programs.
In the external lab examination student has to execute two programs with compilation
and deployment steps are necessary.
External Vice-Voce is compulsory.
1. Write a Python Program which accepts the radius of a Circle from the user and compute
the Area.
2. Write a Python program to solve ( x + y ) * ( x + y ), accept x and y from the user.
3. Write a Python program to calculate the sum of three given numbers, if the values are
equal then return thrice of their sum.
4. Write a Python program to find whether a given number (accept from the user) is even or
odd, Print out an appropriate message to the user.
5. Write a Python program to get the Fibonacci series between 0 and 50.
6. Write a Python program to print alphabet pattern 'E'.
*****
*
*
****
*
*
******