Archive for February, 2007

h1

Manual Testing Interview Questions

February 27, 2007

What makes a good test engineer?
A good test engineer has a ‘test to break’ attitude, an ability to take the point of view of the customer, a strong desire for quality, and an attention to detail. Tact and diplomacy are useful in maintaining a cooperative relationship with developers, and an ability to communicate with both technical (developers) and non-technical (customers, management) people is useful. Previous software development experience can be helpful as it provides a deeper understanding of the software development process, gives the tester an appreciation for the developers’ point of view, and reduce the learning curve in automated test tool programming. Judgement skills are needed to assess high-risk areas of an application on which to focus testing efforts when time is limited.
What makes a good Software QA engineer?
The same qualities a good tester has are useful for a QA engineer. Additionally, they must be able to understand the entire software development process and how it can fit into the business approach and goals of the organization. Communication skills and the ability to understand various sides of issues are important. In organizations in the early stages of implementing QA processes, patience and diplomacy are especially needed. An ability to find problems as well as to see ‘what’s missing’ is important for inspections and reviews. For More

h1

ASP Interview Questions and Answers Part – 2

February 25, 2007

What is the Order of precedence for LOGICAL Operators.
NOT, AND, OR, XOR, EQV, IMP

What is an Err Object?

Name it’s properties and methods.

What are LOCAL and GLOBAL variables?

Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable.

Which is the default Scripting Language on the client side?

JavaScript

What is HTML(Hypertext Markup Language)?
It’s a method by which web pages can be built and generally used for formatting and linking text.

What is a Web Server?

It’s a Computer that provides Web services on the Internet or on a local Intranet. It is designed to locate, address and send out simple HTML pages to all other users who access these pages.

What is Session Object?

It stores information about a User’s session. Gives a notification when a user session begins or ends.

What is Server-Side includes?

It provides extra information by which it makes the site easier to manage. It can include text files using the #include statement, retrieve the size and last modification date of a file, defines how variables and error messages are displayed and inserts the values of HTTP variables in the page sent back to the browser.

What is a FileSystemObject object?

It provides access to the physical file system of the web server. It gets and manipulates information about all drives in a server, folders and sub-folders on a drive and files inside a folder.

What is a Scripting Language?

It permits to create more interactive Web Pages. Validation, formatting of web pages can be done. VBScript, JavaScript are some examples.

For More

h1

ASP Interview Questions and Answers Part – 1

February 25, 2007

What is ASP?
ASP stands for Active Server Pages. It is a server side technology which is used to display dynamic content on web pages. For example you could write code that would give your visitors different information, different images or even a totally different page depending on what browser version they are using.

How can you disable the browser to view the code?

Writing codes within the Tag

Question What is a “Virtual Directory”?

Virtual directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page.

Give the comment Tags for the following?

VBScript : REM & ‘(apostrophe)
JavaScript : // (single line comment)
/* */ (Multi-line comments)

Which is the default Scripting Language of ASP (server-side)?

VBScript

Which is the default Data types in VBScript?

Variant is the default data type in VBScript, which can store a value of any type.

What is a variable?

Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.

What is the maximum size of an array?

Up to 60 dimensions.

What is Querystring collection?

This collection stores any values that are provided in the URL. This can be generated by three methods:
By clicking on an anchor tag
By sending a form to the server by the GET method
Through user-typed HTTP address
It allows you to extract data sent to the server using a GET request.

What are the attributes of the tags? What are their functions?

The two attributes are ACTION and METHOD
The ACTION gives the name of the ASP file that should be opened next by which this file can access the information given in the form The METHOD determines which of the two ways (POST or GET) the browser can send the information to the server

What are the methods in Session Object?

The Session Object has only one method, which is Abandon. It destroys all the objects stored in a Session Object and releases the server resources they occupied.

What is ServerVariables collection?

The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.

What is the difference between Querystring collection and Form collection?
The main difference is that the Querystring collection gets appended to a URL.

What is a Form collection?
The Form collection holds the values of the form elements submitted with the POST method. This is the only way to generate a Form collection.

What are the ASP Scripting Objects?

The Dictionary object, the FileSystemObject object, TextStream object.

What happens to a HTML page?

The browser makes a HTTP request; the server gives a HTTP response to the browser and the browser converts into a HTML page.

What happens to ASP pages?

The browser makes a HTTP request; the server does the processing and gives a HTML response to the browser.
For More

h1

Java Job Interview Questions

February 23, 2007

1. What is the difference between private, protected, and public?

These keywords are for allowing privileges to components such as java methods and variables.
Public: accessible to all classes
Private: accessible only to the class to which they belong
Protected: accessible to the class to which they belong and any subclasses.
Access specifiers are keywords that determines the type of access to the member of a class. These are:
* Public
* Protected
* Private
* Defaults

2. What’s the difference between an interface and an abstract class? Also discuss the similarities. (Very Important)

Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Interface is a Java Object containing method declaration and doesn’t contain implementation. The classes which have implementing the Interfaces must provide the method definition for all the methods
Abstract class is a Class prefix with a abstract keyword followed by Class definition. Interface is a Interface which starts with interface keyword.
Abstract class contains one or more abstract methods. where as Interface contains all abstract methods and final declarations
Abstract classes are useful in a situation that Some general methods should be implemented and specialization behavior should be implemented by child classes. Interfaces are useful in a situation that all properties should be implemented.

Differences are as follows:

* Interfaces provide a form of multiple inheritance. A class can extend only one other class.
* Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static methods, etc.
* A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class.
* Interfaces are slow as it requires extra indirection to to find corresponding method in in the actual class. Abstract classes are fast.

Similarities:

* Neither Abstract classes or Interface can be instantiated.

How to define an Abstract class?
A class containing abstract method is called Abstract class. An Abstract class can’t be instantiated.
Example of Abstract class:

abstract class testAbstractClass {
protected String myString;
public String getMyString() {
return myString;
}
public abstract string anyAbstractFunction();
}

How to define an Interface?
Answer: In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.
Example of Interface:

public interface sampleInterface {
public void functionOne();
public long CONSTANT_ONE = 1000;
}

For More

h1

30 simple Java questions

February 23, 2007

30 simple Java questions

  1. What’s the difference between an interface and an abstract class?

    An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.

  2. Why would you use a synchronized block vs. synchronized method?

    Synchronized blocks place locks for shorter periods than synchronized methods.

  3. Explain the usage of the keyword transient?

    This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).

  4. How can you force garbage collection?

    You can’t force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.

For More…

Follow

Get every new post delivered to your Inbox.