IT Trainer Questions


Q:

What is Silk Test and what is the use of it ?

Answer

ilk Test is a Functional testing tool product of Seague software. It uses the language called 4GL(fourth Generation Language).


It has 2 components,
Silk Test Agent - Run on remote machine
Silk Test Host - Creating, Modifying, Viewing the scripts


Uses of Silk Test tool:


1. It’s a tool developed for performing the regression and functionality testing of the application.
2. It benefits when we are testing Window based, Java, the web, and the traditional client/server applications.
3. Silk Test help in preparing the test plan and managing them to provide the direct accessing of the database and validation of the field.

Report Error

View answer Workspace Report Error Discuss

3 2199
Q:

What do you mean by undeclared and undefined variables ?

Answer

Difference between undeclared and undefined variables is defined as


Undeclared variables are those that do not exist in a program and are not declared. If the program tries to read the value of an undeclared variable, then a runtime error is encountered.


Undefined variables are those that are declared in the program but have not been given any value. If the program tries to read the value of an undefined variable, an undefined value is returned.

Report Error

View answer Workspace Report Error Discuss

4 3051
Q:

What is the need of Response.Output.Write() in Asp.net ?

Answer

Response.Write() and Response.Output.Write() both does the same work for printing output on the screen. But their is a small difference between them. As we can write formatted output using Response.Output.Write() but Response.Write() can't allows the formatted output.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer

4 4374
Q:

What is BCP ? When is it used ?

Answer

The Bulk Copy Program (BCP) is a command-line utility that ships with Microsoft SQL Server. It is a tool used to duplicate enormous quantity of information from tables and views. It does not facsimile the structures same as foundation to target.
BULK INSERT command helps to bring in a data folder into a record, table or view in a user-specific arrangement. With BCP, you can import and export large amounts of data in and out of SQL Server databases quickly and easily. Any DBA who has utilized this functionality will agree that BCP is an essential tool.

Report Error

View answer Workspace Report Error Discuss

3 1359
Q:

Which of the following are incorrect form of StringBuffer class constructor  ?

A) StringBuffer(int size , String str) B) StringBuffer(int size)
C) StringBuffer(String str) D) StringBuffer()
 
Answer & Explanation Answer: A) StringBuffer(int size , String str)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Database Administration , IT Trainer

3 6159
Q:

Seven people A, B, C, D, E, F and G live on separate floors of a 7-floor building. Ground floor is numbered 1, first floor is numbered. 2 and so on until the topmost floor is numbered 7. Each one of these having a different cars-Cadillac, Ambassador, Fiat, Maruti, Mercedes, Bedford and Fargo but not necessarily in the same order. Only three people live above the floor on which A lives. Only one person lives between A and the one having a car Cadillac. F lives immediately below the one having a car Bedford. The one having a car Bedford lives on an even-numbered floor. Only three people live between the ones having a car Cadillac and Maruti. E lives immediately above C. E is not having a car Maruti. Only two people live between B and the one having a car Fargo. The one having a car Fargo lives below the floor on which B lives. The one having a car Fiat does not live immediately above D or immediately below B. D does not live immediately above or immediately below A. G does not have a car Ambassador.

Question :

 How many people live between the floors on which D and the one having a car Bedford ?

A) One B) Two
C) Three D) Four
 
Answer & Explanation Answer: B) Two

Explanation:

111-151497940723.png image

Above is the table obtained from the given information in the passage.

There are two people (B & G) live between the floors on which D and the one having a car Bedford.

Report Error

View Answer Report Error Discuss

21 15279
Q:

What do you mean by friend function in C++ ?

Answer

Friends can be either functions or other classes. The class grants friends unlimited access privileges.

* The declaration of the function should be preceded by the keyword 'friend'.
* The function definition will not use the keyword or the scope operator '::'.


Thus, a friend function is an ordinary function or a member of another class.

Report Error

View answer Workspace Report Error Discuss

15 3833
Q:

Give an example for the use of volatile keyword in c++ ?

Answer

Most of the times compilers will do optimization to the code to speed up the program. For example in the below code,


int k = 15;
while( k == 15)


{
// Do something
}


compiler may think that value of 'k' is not getting changed in the program and replace it with 'while(true)', which will result in an infinite loop. In actual scenario, the value of 'k' may be getting updated from outside of the program.


Volatile keyword is used to tell compiler that the variable declared using 'volatile' may be used from outside the current scope, so that compiler won't apply any optimization. This matters only in case of multi-threaded applications.


In the above example if variable 'k' was declared using volatile, compiler will not optimize it. In shot, value of the volatile variables will be read from the memory location directly.

Report Error

View answer Workspace Report Error Discuss

5 4743