Saturday, December 25, 2010

How to Write a Research Paper

Many researchers are struggling in writing the research paper and publishing it in the Journal.

The Steps to be followed to write a research paper.


  • CHECK THE STYLE GUIDE FOR YOUR JOURNAL OF CHOICE
  • DO A THOROUGH LITERATURE REVIEW

For More details about publishing a paper CLICK HERE

Friday, December 24, 2010

Free Access to Selected Journals in Computer Science

From now till December 31st, explore your favorite Springer publications on the new SpringerLink - for free!
SpringerLink
More than 60,000 librarians worldwide choose SpringerLink for online scientific content. Here’s why:
  • Enhanced user interface and functions are based on extensive usability research
  • Semantic linking and Look Inside technology improve search results, making research more efficient
  • High resolution illustrations, exceptional search capabilities and enhanced user functionalities
Start exploring today!


Most Highly Downloaded Journals - Free Read

Choose from the most highly downloaded journals below:

Top Used Journals - Free Read

Wednesday, December 22, 2010

DBMS Previous AnnaUniversity QP

Follow the following Links
Database Management Systems Question Papers of Anna University Chennai.
DBMS Question Paper

.NET Framework

Microsoft’s .NET Framework is a new computing platform built with the Internet in mind, but without sacrificing the traditional desktop application platform. The Internet has been around for a number of years now, and Microsoft has been busy developing technologies and tools that are totally focused on it. These earlier technologies, however, were built on Windows DNA (Distributed interNet Applications Architecture), which was based on COM (Component Object Model). Microsoft’s COM was in development many years before the Internet became the force that we know today. Consequently, the COM model has been built upon and added to in order to adapt it to the changes brought about by the Internet.
With the .NET Framework, Microsoft built everything from the ground up with Internet integration as the goal. Building a platform from the ground up also allowed the .NET Framework developers to look at the problems and limitations that inhibited application development in the past and to provide the  solutions that were needed to quickly speed past these barriers.
 .NET is a collection of tools, technologies, and languages that all work together in a framework to provide the solutions that are needed to easily build and deploy truly robust enterprise applications. These .NET applications are also able to easily communicate with one another and provide information and application logic, regardless of platforms and languages.
History of .NET Framework
Microsoft started development of the .NET Framework [.NetFx] in the late 1990’s with the code name "Next Generation Windows Services [NGWS]."
First beta version of .NetFx was released in November 2000. There after, Microsoft has released many versions of .NetFx to make .NetFx more effective and also developer friendly.

Version Name
Version Number
Release Date
1.0 Beta 1
1.0.xxxx.0
Nov - 2000
1.0 Beta 2
1.0.2914.0
20-Jun-2001
1.0 RTM
1.0.3705.0
05-Jan-2002
1.0 SP1
1.0.3705.209
19-Mar-2002
1.0 SP2
1.0.3705.288
07-Aug-2002
1.0 SP3
1.0.3705.6018
31-Aug-2004
1.1 SP1
1.1.4322.2032
30-Aug-2004
1.1 SP1
1.1.4322.2300
30-Mar-2005
2.0 RTM
2.0.50727.42
07-Nov-2005
3.0 RTM
3.0.4506.30
06-Nov-2006

Wednesday, December 15, 2010

The History of Java Language


Since 1995, Java has changed our world . . . and our expectations…
Today, with technology such a part of our daily lives, we take it for granted that we can be connected and access applications and content anywhere, anytime. Because of Java, we expect digital devices to be smarter, more functional, and the way more entertaining.
In the early 90s, extending the power of network computing to the activities of everyday life was a radical vision. In 1991, a small group of Sun engineers called the "Green Team" believed that the next wave in computing was the union of digital consumer devices and computers. Led by James Gosling, the team worked around the clock and created the programming language that would revolutionize our world – Java.
The Green Team demonstrated their new language with an interactive, handheld home-entertainment controller that was originally targeted at the digital cable television industry. Unfortunately, the concept was much too advanced for them at the time. But it was just right for the Internet, which was just starting to take off. In 1995, the team announced that the Netscape Navigator Internet browser would incorporate Java technology.
Today, Java not only permeates the Internet, but also is the invisible force behind many of the applications and devices that power our day-to-day lives. From mobile phones to handheld devices, games and navigation systems to e-business solutions, Java is everywhere!

For Java TimeLine Click here

Tuesday, December 14, 2010

DBMS Practical Program - 1 - SINGLE LINE FUNCTION

SQL> cl scr;


SQL> SELECT ABS(-87) "Absolute" FROM DUAL;


SQL> SELECT ACOS(.3)"Arc_Cosine" FROM DUAL;



SQL> select ceil(3.456) from dual;




SQL> select cos(80) from dual;


SQL> select sin(70) from dual;


SQL> select tan(60) from dual;


SQL> select power(25,2) from dual;


SQL> select sqrt(144) from dual;




SQL> select log(50,2) from dual;


SQL> select sign(-100) from dual;


SQL> select floor(25.7) from dual;




SQL> select mod(3,2) from dual;




SQL> select trunc(14.236,2) from dual;


SQL> select round(14.236,2) from dual;




SQL> select sysdate from dual;




SQL> select add_months(sysdate,2) from dual;




SQL> select trunc(sysdate,'month') from dual;




SQL> select months_between('01-jan-2010','01-jun-2010')from dual;



SQL> select next_day('12-FEB-2010',3)from dual;



SQL> select last_day('24-MAY-1990')from dual;




SQL> select to_char(sysdate,'mm-dd-yy') from dual;



SQL> select to_date('13-feb-90') from dual;




SQL> select to_number('3321',9999) from dual;





SQL> select initcap('indu') from dual;


SQL> select length('indu') from dual;




SQL> select upper('ksr college of engineering') from dual;



SQL> select lower('CRICKET') from dual;





SQL> select replace('elakkiya','kk','33') from dual;


SQL> select translate('elakkiya','ka','12') from dual;


SQL> select lpad('elakkiya','15','*') from dual;




SQL> select rpad('elakkiya','15','*') from dual;


SQL> select ltrim(' Ranjitha') from dual;



SQL> select rtrim('Ranjitha ') from dual;




SQL> select substr('Ranjitha',3,5) from dual;


SQL> create table pra1(Rno number(3),Name varchar2(15),Mark1 number(3),Mark2 number(3),Mark3 number(3));



SQL> insert into pra1 values(&rno,'&name',&m1,&m2,&m3);


SQL> /



SQL> select * from pra1;


SQL> select avg(mark1) from pra1;


SQL> select sum(mark1) from pra1;




SQL> select count(mark1) from pra1;


SQL> select max(mark2) from pra1;


SQL> select min(mark2) from pra1;


SQL> select mark1+mark2+mark3 "total" from pra1;


SQL> set linesize 140


SQL> select rno, name, mark1, mark2, mark3, mark1+mark2+mark3 "Total", (mark1+mark2+mark3)/3 "Average" from pra1;


SQL> spool off

The above script is worked with Oracle 10g Express Edition on Windows XP.


Monday, December 13, 2010

Commands to Formating Report

This article explains how to format your query results to produce a finished report.

SQL*Plus COLUMN command,can be used to change the column headings and reformat the column data in your query results. SQL*Plus uses column or expression names as default column headings when displaying query results. Column names are often short and cryptic, however, and expressions can be hard to understand.
 You can define a more useful column heading with the HEADING clause of the COLUMN command, in the following format:

 
COLUMN column_name HEADING column_heading
To produce a report from EMP_DETAILS_VIEW with new headings specified  for LAST_NAME, SALARY, and COMMISSION_PCT, enter the following  commands:

COLUMN LAST_NAME HEADING 'LAST NAME' 
COLUMN SALARY HEADING 'MONTHLY SALARY' 
COLUMN COMMISSION_PCT HEADING COMMISSION

To give the columns SALARY and LAST_NAME the headings MONTHLY SALARY and LAST NAME respectively, and to split the new headings onto two lines, enter
 
COLUMN SALARY HEADING 'MONTHLY|SALARY'
COLUMN LAST_NAME HEADING 'LAST|NAME'
to set the underline to =======
SET UNDERLINE =
COLUMN column_name CLEAR


The COLUMN command identifies the column you want to format and the model you want to use, as shown:
 
COLUMN column_name FORMAT model
Use format models to add commas, dollar signs, angle brackets (around negative values), and leading zeros to numbers in a given column. You can also round the values to a given number of decimal places, display minus signs to the right of negative values (instead of to the left), and display values in exponential notation.
To use more than one format model for a single column, combine the desired models in one COLUMN command
To display SALARY with a dollar sign, a comma, and the numeral zero instead of a blank for any zero values, enter the following command:
 
COLUMN SALARY FORMAT $99,990

To set the width of the column LAST_NAME to four characters and rerun the current query, enter
 
COLUMN LAST_NAME FORMAT A4
 
To give the column COMMISSION_PCT the same display attributes you gave to SALARY, but to specify a different heading, enter the following command:

COLUMN COMMISSION_PCT LIKE SALARY HEADING BONUS

To Reset the formatting for the column

 
COLUMN column_name CLEAR
You can insert blank lines or begin a new page each time the value changes in the break column. To insert n blank lines, use the BREAK command in the following form:

BREAK ON break_column SKIP n

To skip a page after every row, use

BREAK ON ROW SKIP PAGE
To show that SKIP PAGE has taken effect, create a TTITLE with a page number:
TTITLE COL 35 FORMAT 9 'Page:' SQL.PNO
If you organize the rows of a report into subsets with the BREAK command, you can perform various computations on the rows in each subset. You do this with the functions of the SQL*Plus COMPUTE command. Use the BREAK and COMPUTE commands together in the following forms:
BREAK ON break_column COMPUTE function LABEL label_name OF column column column ... ON break_column

The COMPUTE command has no effect without a corresponding BREAK command.

break on DEPARTMENT_ID page  nodup
          on JOB_ID skip 1 nodup

COMPUTE SUM OF SALARY ON DEPARTMENT_ID
You can also set a header and footer for each report. 
The REPHEADER command defines the report header; 
the REPFOOTER command defines the report footer.
A TTITLE, BTITLE, REPHEADER or REPFOOTER command consists of the command name followed by one or more clauses specifying a position or format and a CHAR value you wish to place in that position or give that format. You can include multiple sets of clauses and CHAR values:

TTITLE position_clause(s) char_value position_clause(s) char_value ... BTITLE position_clause(s) char_value position_clause(s) char_value ... REPHEADER position_clause(s) char_value position_clause(s) char_value ... REPFOOTER position_clause(s) char_value position_clause(s) char_value ...
 
To set the page size to 66 lines, clear the screen (or advance the printer to a new sheet of paper) at the start of each page, and set the line size to 70, enter the following commands:
SET PAGESIZE 66 
SET NEWPAGE 0 
SET LINESIZE 70
 
 
For detailed about Creating Oracle Reports : Click Here

Wednesday, December 8, 2010

Know about Cloud

Defining the Cloud

There are several definitions of cloud computing. The basic notion of cloud computing refers to the technology infrastructure model that enables several types of computing tasks to be performed over a network. The network can be a local area network or a wide area network like the Internet. The network will depend on the type of cloud—a private or public cloud computing service. A cloud computing infrastructure is composed of several types of hardware components (servers, storage systems, network components, etc.), software application components (programs, services, protocols, etc.), and information—the basic component of a cloud (Figure 1.).



Figure 1. A cloud platform is able to provide many computing services

If we consider the technological components previously mentioned, it’s evident that many are used to perform an organization’s daily tasks. Currently networks, servers, applications, and other technology tools are used to develop much of the computing processes in an organization. So, what is the difference between a traditional computing model and a cloud infrastructure?

While a traditional computing model infrastructure is based on resources such as hardware components (servers, storage devices or applications like enterprise resource planning [ERP], customer relationship management [CRM], and others), and business information, a cloud computing model infrastructure is based on services. This approach is different: in a traditional computing model all resources interact and affect the general infrastructure whereas the service oriented architecture (SOA) of a cloud computing model creates a more natural separation between two main layers. One is formed by the technology within the cloud infrastructure (computing hardware and applications) and the other is formed by information resources. Services can be configured, provisioned, or escalated internally without end user intervention or awareness. In a traditional computing system, it is more difficult to achieve the separation between the technical infrastructure and the functional infrastructure of the computing module (Figure 2.)

Figure 2. Cloud architecture enables clear separation between technology infrastructure and information infrastructure, based on services

For More about Cloud Computing : Click Here

Thursday, December 2, 2010

Triggers

Database Triggers

A database triggers is stored PL/SQL program unit associated with a specific database table or view. The code in the trigger defines the action the database needs to perform whenever some database manipulation (INSERT, UPDATE, DELETE) takes place.

Unlike the stored procedure and functions, which have to be called explicitly, the database triggers are fires (executed) or called implicitly whenever the table is affected by any of the above said DML operations.


Till oracle 7.0 only 12 triggers could be associated with a given table, but in higher versions of Oracle there is no such limitation. A database trigger fires with the privileges of owner not that of user

A database trigger has three parts
  1. A triggering event
  2. A trigger constraint (Optional)
  3. Trigger action

A triggering event can be an insert, update, or delete statement or a instance shutdown or startup etc. The trigger fires automatically when any of these events occur A trigger constraint specifies a Boolean expression that must be true for the trigger to fire. This condition is specified using the WHEN clause. The trigger action is a procedure that contains the code to be executed when the trigger fires.

Types of Triggers

The following are the different types of triggers.

Row triggers and statement triggers
A Row trigger fires once for each row affected. It uses FOR EACH ROW clause. They are useful if trigger action depends on number of rows affected.

Statement Trigger fires once, irrespective of number of rows affected in the table. Statement triggers are useful when triggers action does not depend on

Before and afterTriggers
While defining the trigger we can specify whether to perform the trigger action (i.e. execute trigger body) before or after the triggering statement. BEFORE and AFTER triggers fired by DML statements can only be defined on tables.

BEFORE triggers The trigger action here is run before the trigger statement.

AFTER triggers The trigger action here is run after the trigger statement.

INSTEAD of Triggers provide a way of modifying views that can not be modified directly using DML statements.

LOGON triggers fires after successful logon by the user and LOGOFF trigger fires at the start of user logoff.

Points to ponder
•A trigger cannot include COMMIT, SAVEPOINT and ROLLBACK.
•We can use only one trigger of a particular type .
•A table can have any number of triggers.
•We use correlation names :new and :old can be used to refer to data in command line and data in table respectively.
Triggers on DDL statements

DDL trigger are of the following types
BEFORE CREATE OR AFTER CREATE trigger is fired when a schema object is created.
BEFORE OR AFTER ALTER trigger is fired when a schema object is altered.
BEFORE OR AFTER DROP trigger is fired when a schema object is dropped.

Thanks to Exforsys

For More details on Trigger : Click Here

Wednesday, December 1, 2010

Creating Report in Oracle SQL.

The following are the commands needed to perform/preparing the report in SQL.
  • COLUMN
  • Set PAGESIZE
  • Set LINESIZE
  • COMPUTE
  • BREAK ON
The following is the sample SQL script used to produce a report.
For more details about the SQL Commands  : Click Here

Tuesday, November 30, 2010

ORACLE OBJECTS AND OBJECT TYPES

Oracle object types are user-defined data types that make it possible to model complex real-world entities such as customers and purchase orders as unitary entities --"objects"--in the database.

Oracle object technology is a layer of abstraction built on Oracle's relational technology. New object types can be created from any built-in database types and/or any previously created object types, object references, and collection types. Meta-data for user-defined types is stored in a schema that is available to SQL, PL/SQL, Java, and other published interfaces.

Object types and related object-oriented features such as variable-length arrays and nested tables provide higher-level ways to organize and access data in the database. Underneath the object layer, data is still stored in columns and tables, but you are able to work with the data in terms of the real-world entities--customers and purchase orders, for example--that make the data meaningful. Instead of thinking in terms of columns and tables when you query the database, you can simply select a customer.

For example you use address which comprises of streetno, locality, city, pin, country, in many tables. You define these columns in each table separately like


     Create table emp (empno number(5),Name varchar2(20),Sal number(10,2),Streetno varchar2(20),Locality varchar2(20),City varchar2(20),Pin varchar2(7),Country varchar2(20));

     Create table customers (custcode number(5),Name varchar2(20),Bal number(10,2),Streetno varchar2(20),Locality varchar2(20),City varchar2(20),Pin varchar2(7),Country varchar2(20));

Instead of defining address columns again and again in each table, you can define an address datatype and then use this user defined datatype in all tables.

Defining an Object Type


The following example create an object type

     Create type address as object ( Streetno varchar2(20),Locality varchar2(20),City varchar2(20),Pin varchar2(7),Country varchar2(20));

Now you can use this datatype while defining tables emp and customer like this

    Create table emp (empno number(5),Name varchar2(20),Sal number(10,2),Emp_addr address);

    Create table customers (custcode number(5),Name varchar2(20),Bal number(10,2),Cust_addr address);

Inserting Records in tables with object datatypes.
To insert record into emp table you have to give the following statement.
    Insert into emp values (101,’Sami’,2000,address(‘A.C.Gaurds Road’,’A.C.Gaurds’,’Hyd’,’500004’,’India’);

To update city of employee number 101 you have to give the following update statement
Update emp e set e.emp_addr.city=’Bombay’ where e.empno=101;

To select rows from emp table give the following statement
Select * from emp;
To select only empno,name and city give the following statement
Select e.empno, e.name, e.emp_addr.city from emp e;

My Favourite Game


Monday, November 29, 2010

DML, DCL, DDL, TCL Statements

SQL commands are divided into categories like DML (Data Manipulation language), DDL (Data definition language), TCL (Tranction control language) and DCL (Data control language). Here is a list of SQL commands.
1. DML COMMANDS
  • INSERT
  • UPDATE
  • SELECT
  • DELETE
2.DDL COMMANDS
  • CREATE
  • ALTER
  • DROP 
3.TCL COMMANDS 
  • COMMIT
  •  ROLLBACK
4.DCL COMMANDS 
  • GRANT
  • REVOKE
-------------------------------------------------------------
 
DML
DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database.
DDL commands used to create the objects, DML commands used to manipulate the objects. DML commands are INSERT–This command is used to insert the records into table, UPDATE–This command is used to update the record which is already exisiting in the table, DELETE– This command is used to delete the record which is already existing the table. It is deletes only records not the structure.
Examples: SELECT, UPDATE, INSERT statements
DDL
DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database.
DDL is used to create the structure of the table. DDL commands are CREATE —Used to create any objects(Table,View,Trigger,Stored procedure) in the database. ALTER – Used to modify the objects in the database.DROP –this command used to drop the objects with the structure.TRUNCATE–This command also used to delete the objects. RENAME–used to modify the object name in the data base.

Examples: CREATE, ALTER, DROP statements
DCL
DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it.

DCL commands used to security purpose.
GRANT–this command used to give the pemissons to the paricular Data.
REVOKE–This command used to release the permissions, which already given to any user.
Examples: GRANT, REVOKE statements
TCL
TCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database.
Examples: COMMIT, ROLLBACK statements

Wednesday, November 24, 2010

Single Line Functions

The single line function work on individual columns from individual rows and return one result per row.


The single line functions take different types of arguments, work on data item from each row, and return one value back for each row.

The different single line functions are:

 Numeric functions

 Date functions

 Character functions

 Conversion functions

NUMERIC FUNCTION:

ABSOULTE:

Abs() function is used to display the absolute value of a specified value, (i.e) negative into positive value.

COS:

Cos() function is used to find the cosine value.

LOG:

Log () function is used to find the logarithmic value.

POWER:

power() function is used to find the power value of specified value.

SQRT:

sqrt() function is used to find the square root value.

CEIL:

ceil() function is used to display round up value.

FLOOR:

floor() function is used to display the value truncating the decimal point value.



SIGN:

sign() function is used to display the first element.

MOD:

mod() function is used to calculate the modulus value.

TAN:

tan() function is used to find the tangent value.

TRUNCATE:

trun() function is used to truncate the floating point value and display.

DATE FUNCTION:

SYSDATE:

It is used to display the current date.

ADD FUNCTION:

It is used to add the months to the current date.

LAST_DAY:

It is used to display the last day of the current date or given date.

NEXT_DAY:

It is used to display the next day of the specified day. It specifies the date of the next day.

ROUND:

It is used to display the current date.

GREATEST:

It is used to display the end of the month.

CHARACTER FUNCTION:

The character function are used to manipulate in the characters.

INITCAP:

It is used to display the initial letter in capital letter, if it small.

UPPER:

It is used to display the string in upper case, that it is in lower case .

LOWER:

It is used to display the string in lower case, if it is upper case.

LENGTH:

It is used to find the length of the string. It display the number of strings(characters).

REPLACE:

It is used to replace the string with another string. It can also be used to replace the name.

LPAD:

It is used to display the special character with the specified character and number of character in left.

RPAD:

It is used to display the special character with the specified character and number of character in right.

LTRIM:

Ltrim() function is used to truncate the space in the left. It displays the string truncating the left space if any.

RTRIM:

It is same as ltrim, it display the string truncating the right space.

SUBSTRING:

The function substr() is used to display the string that specified with number to display.

TRANSULATE:

Transulate() function is used to transulate the character into another character.











CONVERSION FUNCTION:

TO_CHAR:

It is used to convert the system date into character. Specify the date format in character as dd month YYYY, it displays, in month as character and the date and year in numerics.

TO_DATE:

It is used to convert the format into character. It displays the month in character, if specified.

TO_NUMBER:

It is used to display the number. It can also add the two numbers.

TRUNC:

It is used to select the user id, it displays the user number.



GROUP FUNCTIONS:

NO NAME

1 Aaa

2 Bbb

3 Ccc

4 Ddd

MIN:

The function min() is used to display the minimum value. In the table, min(no), 1 is selected.

MAX:

The function max()is used to display the maximum value. In the table, max(no), 4 is selected.

SUM:

The sum() function is used to display the sum. In this table, sum (0), displays the sum,10.

AVG:

The function is used to calculate the average, displays the average. In the above table it displays the average,2.5.

COUNT:

It displays the number of records. It is specified with the asterisk(*) to count the number of records. In the above table displays 4.

Structure of DBMS

Structure of DBMS


For more details Click here

Monday, November 15, 2010

History of Database Systems

A Brief History of Database Systems

Data are raw facts that constitute building blocks of information. Database is a collection of information and a means to manipulate data in a useful way, which must provide proper storage for large amounts of data, easy and fast access and facilitate the processing of data. Database Management System (DBMS) is a set of software that is used to define, store, manipulate and control the data in a database. From pre-stage flat-file system, to relational and object-relational systems, database technology has gone through several generations and its 40 years history.

  • 1968 File-Based: predecessor of database, Data maintained in a flat file.  Processing characteristics determined by common use of magnetic tape medium.
  • 1968-1980 Era of non-relational database: A database provides integrated and structured collection of stored operational data which can be used or shared by application systems.  Prominent hierarchical database model was IBM’s first DBMS called IMS. Prominent network database model was CODASYL DBTG model; IDMS was the most popular network DBMS.
  • 1970-present Era of relational database and Database Management System (DBMS): Based on relational calculus, shared collection of logically related data and a description of this data, designed to meet the information needs of an organization; System catalog/metadata provides description of data to enable program-data independence; logically related data comprises entities, attributes, and relationships of an organization’s information. Data abstraction allows view level, a way of presenting data to a group of users and logical level, how data is understood to be when writing queries.
Example Database Systems are:


  •  Microsoft Corp- SQL Server
  • Oracle- Oracle 9i
  • IBM – IMS/DB, DB2

 For More Details refer here

Saturday, September 18, 2010

Steps for Interview

  1. Learn about yourself.
  2. Review your resume.
  3. Find our where you can goto learn about your topic (use search engines for sites and buy needed books).
  4. Learn about organization.
  5. Prepare Interview questions ahead of time (Prepare answers for common Questions).
  6. Rehearse your delivery with known persons
  7. Make a good immersion during the interview.
  8. Stick to your Message.
  9. Know your Weakness.
  10. Practice positive visualization.
  11. Focus on your Abilities.
These are the some steps that can help an fresher to get through the interview, these points were delivered by an Alumni of Computer Applications, KSR College of Engineering with Final MCA Students during the Alumni Interaction Event.

Top HR Interview Questions

The following are the Top HR Interview Questions
  1. Tell me about yourself  ?
  2. What are your greatest strengths ?
  3. What are your greatest weakness ?
  4. Tell me about something you did – or failed to do – that you now feel a little ashamed of ?
  5. Why are you leaving (or did you leave) this position ?
  6. The "Silent Treatment"
  7. Why should I hire you?
  8. Aren’t you overqualified for this position?
  9. Where do you see yourself five years from now?
  10. Describe your ideal company, location and job.
  11. Why do you want to work at our company?
  12. What are your career options right now?
  13. Why have you been out of work so long ?    
     
      Like nearly 64 Questions with answers visit : HR Interview Questions
 Have a Wonderfull Day.

Tuesday, July 27, 2010

C# Classes and objects

For Class and Objects Refer the following websites links:

1. devarticle website
2.  C# station
3. Aspfree
4.  Kirupa
5. Video 1
6. Video 2
7. Informit

Learn and Shine....!

C# program for Structure and Enumeration


using System;
using System.Collections.Generic;
using System.Text;

namespace structenumexample
{
class Program
{
enum Sem
{
Nil=0, First = 1, Second= 2,Third = 3, Fourth = 4, Fifth = 5, Sixth = 6
}
struct stud
{
int regno, m1, m2, m3, m4, m5, tot;
string name, result, perf;
float avg;
Sem sem;

public stud(int regno, int m1, int m2, int m3, int m4, int m5,string name,int sem)
{
this.regno = regno;
this.m1 = m1;
this.m2 = m2;
this.m3 = m3;
this.m4 = m4;
this.m5 = m5;
this.name = name;
this.avg = 0;
this.tot = 0;
this.result = "";
this.perf = "";
this.sem = (Sem) sem;
}

public void proce()
{
tot = m1 + m2 + m3 + m4+m5;
avg = tot / 5;
if ((m1 >= 40) && (m2 >= 40) && (m3 >= 40) && (m4 >= 40) && (m5 >= 40))
{
result = "PASS";
if (avg > 75)
perf = "Distinction";
else if (avg > 60)
perf = "First";
else if (avg > 50)
perf = "Second";
else
perf = "Third";
}
else
{
result = "FAIL";
perf = "Nil";
}

}
public void showres()
{
System.Console.WriteLine(" {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11}", regno, name, sem,m1, m2, m3, m4, m5, tot, avg, result, perf);
}
}
public static void Main(string[] args)
{
int regno, m1, m2, m3, m4, m5;
string name;
int sem;
stud[] st = new stud[10];
int i;
for (i = 0; i < 10; i++)
{
Console.WriteLine("Enter the Regno of the student");
regno = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Name of the student");
name = Console.ReadLine();
Console.WriteLine("Enter the Semester of the student (1/2/3/4/5/6)");
sem = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the m1 of the student");
m1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the m2 of the student");
m2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the m3 of the student");
m3 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the m4 of the student");
m4 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the m5 of the student");
m5 = Convert.ToInt32(Console.ReadLine());
st[i] = new stud(regno,m1,m2,m3,m4,m5,name,sem);
}
for (i = 0; i < 10; i++)
{
st[i].proce();
st[i].showres();
}
Console.ReadLine();
}
}
}

The above program is the example for the Structure and Enumeration usage in C#.