Wednesday, September 29, 2010

IT 3rd Year loose in 3rd round

IT 3rd year lost to EE 3rd year in an evenly contested match that went down to the tie-breaker since the scores were tied 0-0 after FT. EE 3rd year won 3-2 on penalties.


Friday, September 24, 2010

MIcroprocessor over

Yet another clueless paper went though. Dont even dare to ask the marks.
Horrible....

Next is OS. But before that its PARTY TIME!!

NJOY!!!!!!!!!!!!!

Thursday, September 23, 2010

Next is Microprocessor

UML Over. Question paper was Ok if not lengthy. I dont understand why our OR/UML sir gives such long papers. The OR paper was horribly lengthy and now UML. Asks for explaining static with a program and gives only 2 or 2 and 1/2.

Whatever...next exam's paper is looking like clueless to me. Sir told that

The questions wont be coming from what he had taught so far...

I say...

Then why the hell, you are teaching us the not so required....sorry if I am being too rough.

Only time will tell what will happen.....


Wednesday, September 22, 2010

IT 3rd Year wins in 1st round

IT 3rd year won todays Football match against BBA 1st Year 4-1 on penalties after the scores were tied at 1-1 on Full time.

For IT Srinjoy scored the first goal from a corner taken by Subhash which was smartly deflected by Mukund.

For BBA, the goal came through as an own goal. Anish beautifully headed a ball to the net but unfortunately for him and the rest of the team it was on the wrong side.

Automata done next Object Tech. and UML

Automata paper was relatively easy compared to OR. I had a good exam.

UML is like a black hole to me. Lets see what happens.

Tuesday, September 21, 2010

Next is Automata

OR is done. Next comes another bomb Automata or Automaton.

OR Paper was as lengthy as the Himalayas. I will get 2 and 1/2...thats for sure.

Best of Luck to u all...

Saturday, September 18, 2010

Freshers Tommorow!! Be there

Well tomorrow is Freshers and be there....

Its gonna be muddy yet worth going. Lets Rock and Roll

Exam Routine

21 - Operation Research
22 - Automata
23 - UML
24 - Microprocessor
27 - OS

Roll no. 51 to 75 Room no. 218
Roll no. 76 to Rest Room no. 219

Monday, September 13, 2010

Object Oriented Programming (OOP) Sep 13th

Exception Handling
================

EXCEPTION TYPES
===============


All exception types are subclasses of the built-in class Throwable.

Thus, Throwable is at the top of the exception class hierarchy.

Immediately below Throwable are two subclasses that partition exceptions into two distinct branches.

One branch is headed by Exception. This class is used for exceptional conditions that user programs should catch. This is also the class that you will subclass to create your own custom exception types.

There is an important subclass of Exception, called RuntimeException.

Exceptions of this type are automatically defined for the programs that you write
and include things such as :


  • division by zero
  • invalid array indexing.
The other branch is topped by Error, which defines exceptions that are not expected
to be caught under normal circumstances by your program. Exceptions of type Error
are used by the Java run-time system to indicate errors having to do with the run-time
environment, itself.

  • Stack overflow is an example of such an error. This chapter will not be dealing with exceptions of type Error, because these are typically created in response to catastrophic failures that cannot usually be handled by your program.

Uncaught Exceptions
=================

program includes an expression that
intentionally causes a divide-by-zero error


class Exc0 {
public static void main(String args[]) {
int d = 0;
int a = 42 / d;
}
}

When the Java run-time system detects the attempt to divide by zero, it constructs a
new exception object and then throws this exception.

This causes the execution of Exc0
to stop, because once an exception has been thrown, it must be caught by an exception
handler and dealt with immediately.

In this example, we haven’t supplied any exception
handlers of our own, so the exception is caught by the default handler provided by the
Java run-time system. Any exception that is not caught by your program will ultimately be processed by the default handler.

The default handler displays

  • a string describing the exception,
  • prints a stack trace from the point at which the exception occurred, and
  • terminates the program.
OUTPUT:

java.lang.ArithmeticExcepti
on: / by zero
at Exc0.main(Exc0.java:4)


Another Program:
------------------------

class Exc1 {
static void subroutine() {
int d = 0;
int a = 10 / d;
}
public static void main(String args[]) {
Exc1.subroutine();
}
}


OUTPUT:

java.lang.ArithmeticException: / by zero
at Exc1.subroutine(Exc1.java:4)
at Exc1.main(Exc1.java:7)



USING TRY AND CATCH
====================

class Exc2 {
public static void main(String args[]) {
int d, a;
try {
d = 0;
a = 42 / d;
System.out.println("Within try");
}

catch (ArithmeticException e) {
System.out.println("Division by zero.");
}
System.out.println("After catch statement.");
}
}


OUTPUT:

Division by zero.
After catch statement.


  • when the program gets an error at a=45/d, then
    an
    exception is thrown, program control transfers out of the try block into the catch block.
  • catch block is executed
  • control does not go back to the try block
  • program terminates after the rest of instructions are executed(after catch)
To make the control go to the try block again add a line:

continue;

after the last statement of catch block.

For example..


class Exc2 {
public static void main(String args[]) {
int d, a;
try {
d = 0;
a = 42 / d;
System.out.println("Within try");
}

catch (ArithmeticException e) {
System.out.println("Division by zero.");
continue;
}
System.out.println("After catch statement.");
}
}

OUTPUT:

Division by zero.
Within try
After catch statement.


Multiple catch Clauses
===================

class MultiCatch {
public static void main(String args[]) {
try {
int a = args.length;
System.out.println("a = " + a);
int b = 42 / a;
int c[] = { 1 };
c[42] = 99;
} catch(ArithmeticException e) {
System.out.println("Divide by 0: " + e);
} catch(ArrayIndexOutOfBoundsException e) {
System.out.println("Array index oob: " + e);
}
System.out.println("After try/catch blocks.");
}
}

OUTPUT(For two cases):

C:\>java MultiCatch
a = 0
Divide by 0: java.lang.ArithmeticException: / by zero
After try/catch blocks.



C:\>java MultiCatch TestArg
a = 1
Array index oob: java.lang.ArrayIndexOutOfBoundsException
After try/catch blocks.

Class Updates Sep 13

Class Updates
============

Best T-Shirt Tags
==============
Mr. Siakat
Tag: "LIFE IS HARD....So I got a Thick Shell"
My Say: I agree with Mr. Monster 100%.....


Well we got our new Temp Class
=========================
Though we got 2 periods but believe me those were as nice as a palace.
Compare it with our Ultra-mini class, I think that we must have done some sin in the past 2 years else why the hell we are kept in a prison like that...hell!! a prison is better than that class


Look at that Exhaust fan....Like the crown of a King (we)...but neither we are the king and nor the crown is our's

Mr. MBPS and Mr. Santanu were busy researching the Operation Research as Mr. Teja and Mr. Buku were rehearsing for an Upcoming film (I guess!!)...

Mr. Pritam got angry due to a window....
ya...u heard it right. He wasn't able to see the blackboard due to some reflections through the open window. So he closed the window pane and in the same instant Mr. Sarbajit opened the window. He felt angry and was about to errupt...but he calmed down as Mr. Subha tried to cool

Check Out the all new "SOFT COPIES"

Hey everybody check out the all new SOFT COPIES section in the top right portion of the blog.
It contains all the soft copies we are provided as of now.

Thursday, September 9, 2010

Class Updates September

Best T-Shirt Tag
=============


Mr. Sayan
Tag- "Don't Mess with Me"
My Say:- I don't have the time to mess with you....errrr....anybody interested




Photo Sessions
==============














Mr. Saikat "THE FOOD HACKER"
Does that mean he can actually Hack someones food. That's probably why i don't come with my lunch box.
He is a monster.....hey Saikat are you listening. I have not written it. Actually my gmail account is hacked...... ;-)


And At the back.....it seems like
Mr. Teja us deep into studies...Wake up Teja!!






LOST BROTHERS FOUND PART II!!














Mr. Rajsekhar(Left) and Santanu
Talk about resemblance....




  












From Left
Miss. Joyita, (She has a wired name in Orkut, I don't know why..I will ask her!!)
Miss. Shreya (She is CR, the real one not the Virtual one)
And The MONSTER (The less I speak the more I live)






LOOK OUT FOR UPDATES IN 


DOWNLOAD ZONES>>JAVA PROGRAMS

Operating System - Thrashing and File

Q. Consider the following sequence of memory reference from 460 words programs

10,11,104,170,73,309,185,245,246,434,364

a. give the reference string assuming page size of 100 words
b. find number of page faults using LRU assuming 200 words of primary memory.

Solution.
a.















Reference String assuming 100 words

1,1,2,2,1,4,1,2,3,3,5,5,4


b.

Using LRU

Page size=100 words
Primary memory=200 words
So no. of pages = 200/100=2
Thrashing

=========
CPU utilization for a process decreases if continuous swapping of memory takes place once the memory is full and there is no place for other program execution(thats where virtualization comes into existence).

File Structure

===========

1. Single Level File Structure
Example-> C:\>Program files

2. Double Level File Structure
Example-> C:>Program files>Microsoft

Similarly ....Multi level File access has many levels



File Access

=========
1. Sequential file Access














2. Index Sequential
















3. Secondary Sequential














4. Direct File Access















File Allocation Methods

====================


1.Contiguous File Allocation
















2.Linked File Allocation
















3.Indexed File Allocation























Indexed File allocation is the most efficient file allocation because :

->direct memory access
->Least memory wastage

Operating System(HOD)

Process- An active program or Dynamic entities

Friday, September 3, 2010

Arka Turbo Mode..

Arka "MBPS" Mukherjee only needed a stage to go into the TURBO mode and the GD session in Soft Skills class proved out to be a real feast....

I tried to make the video as clean as possible. This video will make you understand
what is Arka "MBPS" Mukherjee's Turbo Mode??




Have a look at this video...

Featured Post 1

notice

Featured Post 2

IETE

Featured Post 6

results

Featured Post 7

WBUT

Featured Post 3

Featured Post 4

Featured Post 5

Featured Post 8