Thursday, 2 May 2013

Important short question for Viva or Interview in C#.NET


Important Viva/Interview/ Short Question for C#

Q1. What is Connected and Disconnected Approach?
Ans: Connected= Data Reader, Disconnected= Data Adapter

Q2. What is difference between Data Adapter and Data Reader.
Ans: Data Adapter is disconnected approach in which we fetch the entire table at once as XML packet and use that packet for rest of the purpose.
Data Reader is connected approach in which data mode is read-only. We can fetch one record at a time that why it is faster because it doesn’t have memory fragmentation or shortange kinda of problem.

Q3. What the various Methods of Command Class?
Ans:  ExecuteNonQuery, ExecuteReader, ExecuteScalar, EndExecuteNonQuery, EndExecuteReader etc.

Q4. Who manages the code of C#?
Ans: CLR (Command Language Run Time)

Q5. What is the difference between list box and comboBox?
Ans: We  can select multiple values from the list box while comboBox allow only one item to be selected a t a time.  There are multiple item visible in list box while only one item is visible in case of comboBox.

Q6. Difference between Radio Button and CheckBox?
Ans: We can select only one option at a time in case of radio button while multiple checkboxes can be checked.

Q7. What are the various OOPS conecepts?
Ans: Class, Object, Inheritance, polymorphism, encapsulation, dynamic binding, data abstraction etc.

Q8. What is the difference between overriding and overshadowing?
Ans: Shadowing: The method called depends on the type of the reference at the point the call is made
        Overriding: The method called depends on the type of the object at the point the call is made.
Q9.  What the various way to transfer data from one form to another?
Ans: Using Object of the class
·         Using Constructor of the class
·         Using Method
·         Using Packet ( DataSet)

Q10. What is ADO.NET ?
Ans: ADO.NET is basically a utility of .NET framework that provides us facility to connect with the remote machine or with database. This enable application to interact with the database. In .Net framework ADO.NET is used to design distributed application. . It is an integral part of the .NET Framework, providing access to relational, XML, and application data. ADO.NET supports a variety of development needs, including the creation of front-end database clients and middle-tier business objects used by applications, tools, languages, or Internet browsers.

Q11. Why do we use Connection String?
Ans: Connection string  provide the way to connect with the database server. It carry the information of the server along with the name, username and password of the Database.  During the compilation it tells the CLR where the database is residing.

Q12. What the various application areas of C#?
Ans: Window Application, web Application, Web Services, Console Application, Mobile Application.

Q13. What do you mean by MDI and SDI?
Ans: MDI= Multiple Document Interface, SDI = Single Document Interface.

Q14. What is other name of properties in c#?
Ans: Smart Data Field.

Q15. What is the main feature of inheritance or nick name?
Ans: Reusablity

Q16. The help window which open during the coding which provide list of properties and actions called?
Ans: Intellisense Window.

Q17.  What is abstract/Sealed/partial class?
Ans: Abstract class: This class is made for inheritance purpose all the methods of this class must be overridden. We can’t have object of this class.
Sealed Class: This class can’t be inherited we can use its members by creating the object of this class. It provide data abstraction kind of functionality.
Partial Class: A class which can be defined or expended as per the requirement called partial class. We can define new member of this class anywhere in the program any number of time.

Q18. What is namespace?
Ans: A namespace is nothing but a container which contains number of classes, interfaces. User can combine number of classes or interfaces of same category in one interface and then can use this namespace by importing it the program. It is write once use anywhere kind of thing.

Q19. What is CLR, CTS and CLS?
Ans: The Common Language Runtime is the underpinning of the .NET Framework. CLR takes care of code management at program execution and provides various beneficial services such as memory management, thread management, security management, code verification, compilation, and other system services. The managed code that targets CLR benefits from useful features such as cross-language integration, cross-language exception handling, versioning, enhanced security, deployment support, and debugging.

Common Type System (CTS) describes how types are declared, used and managed in the runtime and facilitates cross-language integration, type safety, and high performance code execution.

The Common Language Specification (CLS) is an agreement among language designers and class library designers to use a common subset of basic language features that all languages have to follow.

 If you have any other question or if you want to share your own view/Questions then Comment Below:
Thanks 

Friday, 24 August 2012

Computer Graphics Notes and Book

Computer Graphics Notes ppts and E-books one click download here. To download notes and ppts click on Download Button -->


To Download Book click here

Tuesday, 10 January 2012

LPU MCA II Sem Books Set Whole Courses



Download all the Refernce books of MCA Sem 2 for Lovely Professional University. This .rar Folder contains 5 books of 83MB which all are our reference books of following subjects :
1.Algorithm and Data Structure Seymour Lipschutz, Title: Schaum Outline Series
2.Computer Architecture & Oragnization By William Stallings Publisher PHI
3.Software Engg. : R.S. Pressman, Software Engineering - A Practitioners Approach, Publishers: McGraw Hill, Fifth Edition
4.Object Oriented Programing Using C++ : B Balagurushyami Tata Mc GrawHill Pub.
5.Computer Networks : Behrouz A. Forouzan, Data Communication and networking, 4th Ed., Tata McGraw Hills year of publication 2006.
Downloading Link to all these Books are Given Below !!






To Download these all books click here!! Share the blog and Like Us on Facebook. Click 1 Ads Before Leaveing. Subscribe for Further Posts ---> Sign In with Gmail .. Get Mail to Your Account..

Monday, 3 October 2011

Source of Finance : Long-Term Source




A business requires funds to purchase fixed assets like land and building,
plant and machinery, furniture etc. These assets may be regarded as the
foundation of a business. The capital required for these assets is called
fixed capital. A part of the working capital is also of a permanent nature.
Funds required for this part of the working capital and for fixed capital
is called long term finance.
Purpose of long term finance:
Long term finance is required for the following purposes:
1. To Finance fixed assets :
Business requires fixed assets like machines, Building, furniture
etc. Finance required to buy these assets is for a long period,
because such assets can be used for a long period and are not for
resale.

2. To finance the permanent part of working capital:
Business is a continuing activity. It must have a certain amount of
working capital which would be needed again and again. This part
of working capital is of a fixed or permanent nature. This
requirement is also met from long term funds.
3. To finance growth and expansion of business:
Expansion of business requires investment of a huge amount of
capital permanently or for a long period.

The main sources of long term finance are as follows:

1. Shares:
These are issued to the general public. These may be of two types:
(i) Equity and (ii) Preference. The holders of shares are the owners
of the business.
2. Debentures:
These are also issued to the general public. The holders of
debentures are the creditors of the company.
3. Public Deposits :
General public also like to deposit their savings with a popular
and well established company which can pay interest periodically
and pay-back the deposit when due.
4. Retained earnings:
The company may not distribute the whole of its profits among its
shareholders. It may retain a part of the profits and utilize it as
capital.
5. Term loans from banks:
Many industrial development banks, cooperative banks and
commercial banks grant medium term loans for a period of three
to five years.
6. Loan from financial institutions:
There are many specialised financial institutions established by
the Central and State governments which give long term loans at
reasonable rate of interest. Some of these institutions are:
Industrial Finance Corporation of India ( IFCI), Industrial
Development Bank of India (IDBI), Industrial Credit and Investment
Corporation of India (ICICI), Unit Trust of India ( UTI ), State
Finance Corporations etc. These sources of long term finance will
be discussed in the next lesson.




Sunday, 2 October 2011

Normalization Process



I'll refer to the following tables when explaining some concepts
Tbl_Staff_Branch
Tbl_Staff_Branch
Tbl_Staff
Tbl_Staff
Tbl_Branch
Tbl_Branch

What are update Anomalies

The Problems resulting from data redundancy in an un-normalized database table are collectively known as update anomalies. So any database insertion, deletion or modification that leaves the database in an inconsistent state is said to have caused an update anomaly. They are classified as

Top

What is Functional Dependency? what are the different types of Functional Dependencies?

Functional Dependencies are fundamental to the process of Normalization Functional Dependency describes the relationship between attributes(columns) in a table. 
For example, if A and B are attributes of a table, B is functionally dependent on A, if each value of A is associated with exactly one value of B (so, you can say, 'A functionally determines B').

Functional Dependency diagram
Functional dependency between A and B

Attribute or group of attributes on the left hand side of the arrow of a functional dependency is refered to as 'determinant'
Simple example would be StaffID functionally determines Position in the above tables.

Functional Dependency can be classified as follows:

Top

What is Database Normalization?

Database Normalization is a step wise formal process that allows us to decompose Database Tables in such a way that both Data Redundancy and Update Anomalies(see above for more info on update anomalies) are minimised. 
It makes use of Functional Dependencies that exist in a table (relation, more formally) and the primary key or Candidate Keys in analysing the tables. 
Three normal forms were initially proposed called First normal Form (1NF), Second normal Form (2NF), and Third normal Form (3NF).
Subsequently R.Boyce and E.F.Codd introduced a stronger definition of 3NF called Boyce-Codd Normal Form(BCNF).
With the exception of 1NF, all these normal forms are based on Functional dependencies among the attributes of a table. Higher normal forms that go beyond BCNF were introduced later such as Fourth Normal Form (4NF) and Fifth Normal Form (5NF). However these later normal forms deal with situations that are very rare.

Normalization diagramNormalization Process

Tuesday, 27 September 2011

Capital Structure : Modigliani and Merton Miller(M&M)




We know that the best capital structure for a corporation is when the WACC is minimized. This is partly derived From two famous Nobel prize winners, Franco Modigliani and Merton Miller who developed the M&M Propositions I,II,IIIand IV.


M&M Proposition I


M&M Proposition I states that the value of a firm does NOT depend on its capital structure. For example, think of 2 firms that have the same business operations, and same kind of assets. thus, the left side of their Balance Sheets look exactly the same. The only thing different between the 2 firms is the right side of the balance sheet, i.e the liabilities and how they finance their business activities.
     If a firm'sstocks make up 70% of The capital structure while bonds (debt) make up for 30%.In other firm it is the exact opposite. This is the case because the Assets of both capital structures are the exactly same.



M&M Proposition 1 therefore says how the debt and equity is structured in a corporation is Irrelevant. The value of the firm is determined by Real Assets and not its capital structure.

M&M Proposition II

    M&M Proposition II states that the Value of the firm depends on three things:
1) Required rate of return on the firm's Assets (Ra)
2) Cost of debt of the firm (Rd)
3) Debt/Equity ratio of the firm (D/E)

The WACC formula can be manipulated and written in another form:
Ra = (E/V) x Re + (D/V) x d


The above formula can also be rewritten as

Re = Ra + (Ra - Rd) x D/E)



This formula  is what M&M Proposition I is all about.

As Debt/Equity Ratio Increases -> Re will Increase (upwards sloping).
This is the basic identity of M&M Proposition I and II, that the capital structure of the firm does not affect its total value.
- WACC therefore remains the same even if the company borrows more debt (and increases its Debt/Equity ratio). 

·     M-M proposition 3:the distribution of dividends does not change the firm’s market value: it only changes the mix of E and D in the financing of the firm.



·     M-M proposition 4: in order to decide an investment, a firm should expect a rate of return at least equal to ra, no matter where the finance would come from. This means that the marginal cost of capital should be equal to the average one. The constant ra is sometimes called the “hurdle rate” (the rate required for capital investment).

Capital Structure: Theory

Friday, 23 September 2011

Cost of Captial : Introduction


The cost of capital is a term used in the field of financial investment to refer to the cost of a company's funds (both debt and equity), or, from an investor's point of view "the shareholder's required return on a portfolio of all the company's existing securities".It is used to evaluate new projects of a company as it is the minimum return that investors expect for providing capital to the company, thus setting a benchmark that a new project has to meet.

The cost of debt is relatively simple to calculate, as it is composed of the rate of interest paid. In practice, the interest-rate paid by the company can be modelled as the risk-free rate plus a risk component (risk premium), which itself incorporates a probable rate of default (and amount of recovery given default). For companies with similar risk or credit ratings, the interest rate is largely exogenous (not linked to the company's activities).

The cost of equity is more challenging to calculate as equity does not pay a set return to its investors. Similar to the cost of debt, the cost of equity is broadly defined as the risk-weighted projected return required by investors, where the return is largely unknown. The cost of equity is therefore inferred by comparing the investment to other investments (comparable) with similar risk profiles to determine the "market" cost of equity.

Once cost of debt and cost of equity have been determined, their blend, the weighted-average cost of capital (WACC), can be calculated. This WACC can then be used as a discount rate for a project's projected cash flows.

Thursday, 22 September 2011

Process Synchronization : Semaphores




Semaphore is a "process synchronization tool" which are assigned by two operation 
a. wait (p)
b. signal (v)
It states that if there are many proceess sharing a same variable, then other process must wait it until the process in critical section is completed, as the process in critical section is completed its send a signal to the other process to enter a critical section.
Semaphores provide mutual exclusion. They are used for process sync and are used to resolve deadlock conditions. 
System semaphores are used by the operating system to control system resources. A program can be assigned a resource by getting a semaphore (via a system call to the operating system). When the resource is no longer needed, the semaphore is returned to the operating system, which can then allocate it to another program.
  For More explanation and Algorithm visit this link. Click here....

Solutions for Critical Section Problem




Summary of Techniques for Critical Section Problem

Software
  1. Peterson's Algorithm: based on busy waiting
  2. Semaphores: general facility provided by operating system (e.g., OS/2)
    • based on low-level techniques such as busy waiting or hardware assistance
    • described in more detail below
  3. Monitors: programming language technique.

Hardware
  1. Exclusive access to memory location
    • always assumed
  2. Interrupts that can be turned off
    • must have only one processor for mutual exclusion
  3. Test-and-Set: special machine-level instruction
  4. Swap: atomically swaps contents of two words

Process Synchronization : Critical Section


Critical Section
  • set of instructions that must be controlled so as to allow exclusive access to one process
  • execution of the critical section by processes is mutually exclusive in time
Critical Section (S&G, p. 166) (for example, ``for the process table'')
repeat
      
      critical section
      
      remainder section
until FALSE


Solution to the Critical Section Problem must meet three conditions...
  1. mutual exclusion: if process  is executing in its critical section, no other process is executing in its critical section
  2. progress: if no process is executing in its critical section and there exists some processes that wish to enter their critical sections, then only those processes that are not executing in their remainder section can participate in the decision of which will enter its critical section next, and this decision cannot be postponed indefinitely
    • if no process is in critical section, can decide quickly who enters
    • only one process can enter the critical section so in practice, others are put on the queue
  3. bounded waiting: there must exist a bound on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted
    • The wait is the time from when a process makes a request to enter its critical section until that request is granted
    • in practice, once a process enters its critical section, it does not get another turn until a waiting process gets a turn (managed as a queue)

Process Synchronization


In computer science, synchronization refers to one of two distinct but related concepts: synchronization of processes, and synchronization of data. Process synchronization refers to the idea that multiple processes are to join up or handshake at a certain point, so as to reach an agreement or commit to a certain sequence of action.

Process synchronization or serialization, strictly defined, is the application of particular mechanisms to ensure that two concurrently-executing threads or processes do not execute specific portions of a program at the same time. If one process has begun to execute a serialized portion of the program, any other process trying to execute this portion must wait until the first process finishes. Synchronization is used to control access to state both in small-scale multiprocessing systems -- in multithreaded and multiprocessor computers -- and in distributed computers consisting of thousands of units -- in banking and database systems, in web servers, and so on.

Sunday, 18 September 2011

Dijkstra's Shortest Path Algorithm




Friday, 16 September 2011

Source of Finance

Sources Of Finance terms refers to the Sources from where an firm can get investments or money to run the business. Needs of Money :-
1. To run the business.
2. To maintain the status in market
3. For growth of Business.
4. To stay in compition of market etc.
These are some basic needs of finance on the basis of Needs of Finance there are different-2 Sources of Finance too which are as follows :-
I. On basis of Time Period :-
    A. Long-Term Finance (---10 Years or more----)
    B. Short- Term Finance (1 to 3Years)
    C. Mid- Term Finance(5 to 10 Years)




A. Long-term sources of finance: Long-term financing can be raised from the following sources:

  • Share capital or equity share
  • Preference shares
  • Retained earnings
  • Debentures/Bonds of different types
  • Loans from financial institutions
  • Loan from state financial corporation
  • Loans from commercial banks
  • Venture capital funding
  • Asset securitisation
  • International
B.Medium-term sources of finance: Medium-term financing can be raised from the following sources:
  • Preference shares
  • Debentures/bonds
  • Public deposits/fixed deposits for duration of three years
  • Commercial banks
  • Financial institutions
  • State financial corporations
  • Lease financing / hire purchase financing
  • External commercial borrowings
  • Euro-issues
  • Foreign currency bonds.
C.Short term sources of finance: Short-term financing can be raised from the following sources:


  • Trade credit
  • Commercial banks
  • Fixed deposits for a period of 1 year or less
  • Advances received from customers
  • Various short-term provisions