Custom Search

Saturday, March 2, 2013

PROGRAMMING LANGUAGE ONE WORDS


PROGRAMMING LANGUAGE ONE WORDS


Define polymorphism?

Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program.It allows us to have overloading of operators so that an operation can exhibit different behaviours in different instances.

What is encapsulation?

The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code.

Define inheritance?

The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance. It allows the extension and reuse of existing code without having to rewrite the code from scratch. Inheritance is the process by which objects of one class acquire properties of objects of another class.

What are the basic concepts of object oriented programming?

It is necessary to understand some of the concepts used extensively in object oriented programming.These include
§  Objects
§  Classes
§  Data abstraction and encapsulation
§  Inheritance
§  Polymorphism
§  Dynamic Binding
§  Message passing

What is C++

C++ is created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers.

What is the difference between Stack and Queue? 

Stack is a Last In First Out (LIFO) data structure. 
Queue is a First In First Out (FIFO) data structure

Write a fucntion that will reverse a string. 

char *strrev(char *s)
{
int i = 0, len = strlen(s);
char *str;
if ((str = (char *)malloc(len+1)) == NULL)
/*cannot allocate memory */
err_num = 2;
return (str);
}
while(len)
str[i++]=s[–len];
str[i] = NULL;
return (str);
}

What is the software Life-Cycle? 

The software Life-Cycle are
1) Analysis and specification of the task
2) Design of the algorithms and data structures
3) Implementation (coding)
4) Testing
5) Maintenance and evolution of the system
6) Obsolescence

What is the difference between a Java application and a Java applet? 

The difference between a Java application and a Java applet is that a Java application is a program that can be executed using the Java interpeter, and a JAVA applet can be transfered to different networks and executed by using a web browser (transferable to the WWW).

Name 7 layers of the OSI Reference Model? 

-Application layer
-Presentation layer
-Session layer
-Transport layer
-Network layer
-Data Link layer
-Physical layer


How can you tell what shell you are running on UNIX system?

You can do the Echo $RANDOM. It will return a undefined variable if you are from the C-Shell, just a return prompt if you are from the Bourne shell, and a 5 digit random numbers if you are from the Korn shell. You could also do a ps -l and look for the shell with the highest PID.

What is Boyce Codd Normal form? 

A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a->b, where a and b is a subset of R, at least one of the following holds: 

* a->b is a trivial functional dependency (b is a subset of a)
* a is a superkey for schema R

What is pure virtual function? 

A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration 

Write a Struct Time where integer m, h, s are its members 

struct Time
{
int m;
int h;
int s;
};

How do you traverse a Btree in Backward in-order? 

Process the node in the right subtree
Process the root
Process the node in the left subtree

What is the two main roles of Operating System? 

As a resource manager
As a virtual machine

In the derived class, which data member of the base class are visible? 

In the public and protected sections.

What is ASP?
  • Active Server Pages (ASP), also known as Classic ASP, is a Microsoft's server-side technology, which helps in creating dynamic and user-friendly Web pages. 
  • It uses different scripting languages to create dynamic Web pages, which can be run on any type of browser. 
  • The Web pages are built by using either VBScript or JavaScript and these Web pages have access to the same services as Windows application, including ADO (ActiveX Data Objects) for database access, SMTP (Simple Mail Transfer Protocol) for e-mail, and the entire COM (Component Object Model) structure used in the Windows environment. 
  • ASP is implemented through a dynamic-link library (asp.dll) that is called by the IIS server when a Web page is requested from the server.


What is ASP.NET?
  • ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services. 
  • It is a part of .NET Framework. You can create ASP.NET applications in most of the .NET compatible languages, such as Visual Basic, C#, and J#. 
  • The ASP.NET compiles the Web pages and provides much better performance than scripting languages, such as VBScript. 
  • The Web Forms support to create powerful forms-based Web pages. 
  • You can use ASP.NET Web server controls to create interactive Web applications. 
  • With the help of Web server controls, you can easily create a Web application.

What is the basic difference between ASP and ASP.NET?

  • The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. 
  • This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

In which event are the controls fully loaded?
  • Page load event guarantees that all controls are fully loaded. 
  • Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event

How can we identify that the Page is Post Back?

Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

What is the lifespan for items stored in ViewState?

The items stored in ViewState live until the lifetime of the current page expires including the postbacks to the same page.

How information about the user's locale can be accessed?

The information regarding a user's locale can be accessed by using the System.Web.UI.Page.Cultureproperty.

What is the difference between SQL notification and SQL invalidation?

The SQL cache notification generates notifications when the data of a database changes, on which your cache item depends. The SQL cache invalidation makes a cached item invalid when the data stored in a SQL server database changes.

Which is the parent class of the Web server control?

The System.Web.Ul.Control class is the parent class for all Web server controls.

Can you set which type of comparison you want to perform by the CompareValidator control?

Yes, by setting the Operator property of the CompareValidator control.




No comments:

Post a Comment