What is quorum disk or partition in clustering?
A quorum disk or partition is a section of a disk that's set up for use with components of the cluster project. It has a couple of purposes
A quorum is the minimal number of votes that is needed in a cluster, usually the majority. So if we have 3 nodes in a cluster, that means we have a total of 3 votes in the cluster and we will need a m...
Use of focus() method in ASP.Net
The focus() method sets focus to the current window.When web page is loaded you can use a BODY onload event and javascript client code to set focus method(). Example The above example assumes a web ...
Can we use a servlet as the shared object
We can use servlet as a shared object by using as shared object the servlet can maintain its state by using its init() and destroy() methods to load and save its state.
What is driver manager?
The Driver Manager is a library that manages communication between applications and drivers.The Driver Manager is used solves a number of problems related to determining which driver to load based on a data source name, loading and unloading drivers, and calling functions in drivers.
in jdbc- object which can connect java application to a jdbc driver that is called driver manager.
overloading is when you define two or more functions with same name and different signatures i.e number of parameters or type of parameters. overloading is resolved at compile time. it is a static or compile time binding.
Overloading is ability of one function to perform different tasks, i.e,it allows creating several methods with the same name which differ from each other in the type of the input and the output of the...
What are the features of ASP.Net 4.0?
Some other features of ASP.Net 4.0 are
1.Permanently Redirecting a Page
2.Better control of the ViewState
3.Chart control
4.Html Encoded Code Expressions
5.Better validation model (ASP.NET MVC)
1.output cache extensibility
2.session state compression
3.routing in asp.net
4.increased URL character strength
5.new syntax for Html Encode
6.View State mode for individual controls
What is the difference between mvc1 and mvc2 in j2ee?
1.MVC1 consists of Web browser accessing Web-tier JSP pages. The JSP pages access Web-tier JavaBeans that represent the application model, and the next view to display is determined by hyperlinks sele...
Testing steps - from which phase the testing should be started ?
As well as is there having any GLobal standard testing phase which should be sequential. Like unit testing - module testing ....So on.
Testing starts at the requirement phase of the SDLC and continuous till the last phase of the SDLC. Steps involved in testing 1.Static testing includes review of documents required for the software d...
From 7:00 am to 11:00 am it rained 2.25 inches. At 11:00 am the rain increased to fall at a rate of 1.25 in. Every two hours. How many inches of rain landed on the ground by 5:00 pm? a)7 b)9.75 c)6 d)3.25 e)7.125
Answer is c)6
11AM - 5PM = 6 hrs
rain increased 1.25 every 2 hrs
3. 3*1.25 = 3.75
total rain = 2.25 + 3.75 = 6
Write a test case for fibonacci series?
Test case for fibonacci series can be 1.When an zero is entered it should return a zero. 2.When a negative integer is entered it should not accept the value and should return an error msg. 3.When a p...
Why Java soft has declared httpservlet class as an abstract class?Is there any performance issue?
In httpservlet class there is no any abstract method although Javasoft declared this class as an abstract class.Ok,this is valid in Java.So if we want to utilize this class we will have to extends this class.But we can use to achieve this one by using httpservlet class as simple Java class also.
Java soft has declared httpservlet class as an abstract class for its performance, scalability and reusability issues and for security purpose.
Security Purpose
What is baseline testing? Is it same for web and other type of testing?
Baseline testing are testing standards to be used at the starting point of comparison within the organization.It is a test which is taken before any activity or treatment have occurred. Requirement specification validation is a baseline testing.
Why type of testings are available for visualstudio 2010 ?
Some types of testing available are:
1.ordered testing
2.unit testing
3.manual testing
4.load testing
5.coded UI testing.
What is the default wait time in silk test?
The default wait time in silk test is 10 seconds.
What is vlan in vio server in aix ? What is its main purpose ?
VLAN stands for virtual LAN,it is a broadcast domain created by switches.With VLANs, a switch can create the broadcast domain.The purpose of VLANS is to improve network performance by separating large broadcast domains into smaller ones.
Program to find inverse of nth order square matrix?(c++)
void trans(float num[25][25],float fac[25][25],float r)
{
int i,j;
float b[25][25],inv[25][25],d;
for(i=0;i
for(j=0;j
b[i][j]=fac[j][i];
}
}
d=detrm(num,r);
inv[i][j]=0;
for(i=0;i
for(j=0;j
inv[i][j]=b[i][j]/d;
}
}
printf("
THE INVERSE OF THE MATRIX:
");
for(i=0;i
for(j=0;j
printf(" %f",inv[i][j]);
}
printf("
");
}
}
we need determinant to find the inverse
The program for determinant is
float detrm(float a[25][25],float k)
{
float s=1,det=0,b[25][25];
int i,j,m,n,c;
if(k==1)
{
return(a[0][0]);
}
else
{
det=0;
for(c=0;c
m=0;
n=0;
for(i=0;i
for(j=0;j
b[i][j]=0;
if(i!=0&&j!=c)
{
b[m][n]=a[i][j];
if(n<(k-2))
n++;
else
{
n=0;
m++;
}
}
}
}
det=det+s*(a[0][c]*detrm(b,k-1));
s=-1*s;
}
}
return(det);
}
Write a program to identify a duplicate value in vector ?
"c void rmdup(int *array, int length) { int *current, *end = array + length - 1; for (current = array + 1; array < end; array++, current = array + 1) { while (current < ...
By understanding a platform providers elasticity model/dynamic configuration method we can test in cloud.
What do you mean by package access modifier?
Access modifier are used to implement encapsulation feature of oops.There are 3 access specifiers namely Private: The current class will have access to the field or method. Protected - The current cl...
How to implement reverse linked list using recursion?
The program is
List* recur_rlist(List* head)
{
List* result;
if(!(head && head->next))
return head;
result = recur_rlist(head->next);
head->next->next = head;
head->next = NULL;
return result;
}
void printList(List* head)
{
while(head != NULL) {
std::cout<
head = head->next;
}
}
void main()
{
List* list = createNode(2);
append(list, createNode(3));
append(list, createNode(4));
append(list, createNode(5));
append(list, createNode(6));
List* revlist = recur_rlist(list);
printList(revlist);
}
How can you read a sol file using Java script?
The methods IloCplex.readSolution and IloCplex.writeSolution is used to read a sol file in java script.
OOPS is nothing but object oriented programming language, nothing but pure java objects . Here we are creating the object inside the class.It provides the set of features included Inheritance, Polymor...
We use oops as it supports unique concepts such as classes and objects.Oops handles concepts such as Data Encapsulation & Data Hiding, it also involves Inheritance and Polymorphism.By using oops the ...
Where do you use partial class ? Explain with real time scenario of the usage ?
Splitting the class into multiple files is called as partial class.The compiler treated the files as different classes but during compilation these files will be treated as a single class. Example:If...
What is the situation you will need to use partial class in .Net
when different programmers work on single project and all write a code in class .Every programmer declare this class as Partial class and implement own code at the end of the day this partial class have all functionality that all programmers put in this class.
Visual Studio uses partial classes to separate auto-generated code from user-generated code. Example:Let us consider that visual studio creates a file called Form1.Designer.cs which holds the designe...
Design an iterative algorithm to traverse a binary tree represented in two dimensional matrix
A binary tree can be traversed using only one dimensional array. InOrder_TreeTraversal() { prev = null; current = root; next = null; while( current != null ) { if(prev == current.parent) { prev = cu...
What is sigbus error
When a bus error occurs a signal is sent to the processor called as sigbus signal.The constant for sigbus is defined in header file signal.h.Sigbus error is thrown when there is improper memory handling.
What do you mean inscope and outscope
We can define scope by defining deliverable, functionality and data and a;so by defining technical structure. In-scope are things the project generates internally e.g. Project Charter, Business Requir...
Can we raise_application_error in exception block?? If we use what will happen?
Whenever a message is displayed using RAISE_APPLICATION_ERROR, all previous transactions which are not committed within the PL/SQL Block are rolled back automatically . RAISE_APPLICATION_ERROR is use...
What is an error handling framework?
Error handling framework indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions.
What is firewall leakage testing
Firewall leakage test provides the invaluable function of informing the user whether their firewall is providing adequate protection or not.Leak-testing programs are designed to exploit particular flaw and use a particular attack technique to break a firewalls standard protection mechanisms.
Code switching and code mixing
What is the difference between code switching and code mixing?
Concurrent use of more than one language in the same sentence of a conversation is known as code switching as
Code mixing refers to mixing of two or more languages in a speech.It occur within a multilingual setting where speakers share more than one language.
To print unique numbers eliminating duplicates from given array
Write a Java code to print only unique numbers by eliminating duplicate numbers from the array? (using collection framework)
import javax.swing.JOptionPane;
public static void main(String[] args) {
int[] array = new int[10];
for (int i=0; i
+ "an integer:"));
}
checkDuplicate (array);
}
public static void checkDuplicate(int array []) {
for (int i = 0; i < array.length; i++) {
boolean found = false;
for (int j = 0; j < i; j++)
if (array[i] == array[j]) {
found = true;
break;
}
if (!found)
System.out.println(array[i]);
}
}
Why in C++ (0.1 + 0.1) is not equal to 0.2 ??
The floating-point arithmetic in most computer languages is based on binary fractions (1/2, 1/4, 1/8, 1/16, ...) and not decimal fractions (1/10, 1/100, 1/1000, 1/1000,...)there is no ActionScript Number that is exactly equal to 0.1 because it require an infinite number of binary fractional bits.
What is command routing in mdi
Command routing is passing commands to its targeted objects.When a command is routed, it goes to the main frame. From the main frame, it is routed to the child frame of the active view; it is then rou...
What is the difference between an image and a map
Image:An image is an exact replica of the contents of a storage device stored on a second storage device. Map:A file showing the structure of a program after it has been compiled. The map file lists ...
How to capture webtable values
By using the function getroproperty("field name") we can capture webtable values.
How do humans recognize a word?
We basically process the shape of each individual letter in a word at the same time, and therefore determine the word itself. We then derive the semantics of the word using "back up" files in the brain.
By Identifing it by knowing language or knowledge
How do you establish a connection between two ear files
The Connection Pool Manager is used to establish a connection between two ear files.
What is difference between query calculation and layout calculation
The query calculation helps to create a report to add a new row or column with values that are based on a calculations.
Layout calculation helps to create a report which contains run time information such as current time, date, and user name.It does not perform any operations on data.
Define raster and vector data.
Define raster and vector data. Explain what is the difference between raster and vector data?
Raster data is a set of horizontal lines composed of individual pixels, used to form an image on a CRT or other screen.Raster data makes use of matrix of square areas to define where features are loca...
How to send sms from Java application ?
Look up SMS gateway. TO send a text, your really just sending any EMAIL with the SMS gateway. Its very easy.
for instance, versions is: yournumber@vtext.com .So just have the user input the phone number and their carrier and then send email out using JavaMail.
What are 4 member function for each object in c++.
Each C++ object possesses the 4 member fns, what are those 4 member functions.Please tell me what I s the answer for this question.
Each C++ object has constructor,default constructor,copy constructor and destructor as the member functions.
Following are four default functions available for each object
1) constructor
2) destructor
3) copy constructor
4) assignment operator
How to retrieve the hidden field value
How to retrieve the value of hidden filed in one page from another
In .aspx, you can access the hidden fields when the page is submitted by using -
string customerId = Request.Form["txtCustomerId"];
What is the difference between mload and tpump ?
1.TPump allows us to load data into tables with referential integrity which MultiLoad doesn't allow. 2.TPpump does not support MULTI-SET tables,but multiple tables can be loaded in the same MultiLoad...
How to write program to print descending order
Here is a program to print first n odd numbers in descending order
#include
main()
{
int i=0,j=0,n;
printf("Enter a number:");
scanf("%d",&n);
printf("The first %d odd numbers are:-
");
for(i=0;i<=n;i++)
{
if(j%2!=0)
printf("%d
"j);
j=j+1;
}
}
Which protocol is mainly used in web services?
The protocols used in web services are 1.Transport Protocol: used for transporting messages between network applications and includes protocols such as HTTP(s), SMTP, FTP, as well as the recent Block...
How to find the size of the (datatype) variable in Java?In C we use sizeof() operator for for finding size of data type
There is no any particular function in java to find the size of the variable,because java removes the need for an application to know about how much of space needs to be reserved for a primitive value, an object or an array with a given number of elements.
What services does the internet layer provide?
The internet layer packs data into data packets known as IP datagrams, which contain source and destination address information that is used to forward the datagrams between hosts and across networks....
Is it possible to debug the rsa encrypting algorithm?
If yes, how it is possible?
The RSA algorithm as it makes use of unique prime number which is not the same each time when being generated.Hence we cannot debug the algorithm.
No we cannot debug RSA because for creating keys random prime is used so we cannot generate again same prime number therefore we cannot debug the RSA.
We use DHCP Relays when DHCP client and server don't reside on the same (V)LAN, as is the case in this scenario. The job of the DHCP relay is to accept the client broadcast and forward it to the server on another subnet.
It is a Bootstrap Protocol that relays DHCP(Dynamic Host Configuration Protocol) messages between clients and servers for DHCP on different IP Network.using DHCP in a single segment network is easy. I...
What is heartbeat in clustering?
Heartbeat cluster is a program that runs specialized scripts automatically whenever a system is initialized or rebooted.This cluster allows clients to know about the presence (or disappearance!) of pe...
How round robin algorithm works ?
In round robin algorithm time slices are assigned to each process in equal portions and in circular order, handling all processes without priority. Round-robin scheduling is simple, easy to implement,...
What are the parameters in http.Conf file ?
Some parameters are
1.mod_rewrite
2.WLLogFile
3.DebugConfigInfo
4.StatPath
5.CookieName
6.MaxPostSize
7.FileCaching
What is the output of kill -3 pid ?
kill -3 pid find the thread dump jvm process
Kill -3 pid is used to create thread dump for the process id. This is basically used for troubleshooting and to understand what went wrong with the above process. Suppose some node of weblogic is not ...
What is enumerated data type ?
Enumerated data type are the variables which can only assume values which have been previously declared. These values can be compared and assigned, but which do not have any particular concrete repres...
How will you test the font of any style ?
Eg: verdana, arial etc
Thanks for the Answer Sandhya , Actually I have faced a question how shall we test the Font without using any tool.??
And one more query that , how can we test by previewing the font ?
Please help me out on the same....
The Font Control Panel allows you to configure font settings, organize fonts and preview font styles. Preview function is used to test fonts of any style.
Minimum number of comparisons required
What is the minimum number of comparisons required to find the second smallest element in a 1000 element array?
999 comparisons are required to find the second smallest element in an array.
Report defects to the developer
In how many way we can report defects to the deveploer?
We can report defects to the developer either in formal way or through informal way. Communicating the details of the failure with the developers in person, in email or over the phone is an informal ...
How do you plan for verification in your project?
The plan for verification of a project can include steps like
1.Develop verification plan.
2.Trace between specifications and test cases.
3.Develop Verification Procedures.
4.Perform verification.
5.Document verification results.
Briefly explain the stages in execution of C program? How are printf and scanf statements statements being moved into final executable code?
The stages of execution are:
* Making and Editing
* Saving
* Compiling
* Linking
* Loading
* Running
When do we use .Mtr and .Tsr extensions in QTP? State the difference with suitable example?
We use filename.mtr as an extension for Per test object rep files.
We use filename.tsr as an extension for Shared Object rep files.
What is automation testing process? What are the main steps invloved in it?
Automation testing is done to save a lot of rework as well as a lot of time. But it can be applied to stable system only. In general Automation testing involves six step : 1.) Decision to automate te...
Automation Testing Process saves lots of time and rework. It is opted when there is repetitive work and is also used in case of regression testing. For Automation Testing Process, scripts are written...
Distance between x and z intercept
Determine the distance between x and z intercept of the plane whose eqn is 2x+9y-3z=18
Sqrt of ((d/a)^2+(d/c)^2)
d=18 a=2 b=9 c=-3
(d/a)^2=81 (d/c)^2=36
Sqrt(81+36)=58.5
Briefly explain the stages in execution of C program ?How are printf and scanf statements statements being moved into final executable code?
There are seven stages of execution
1. Forming the goal
2. Forming the intention
3. Specifying an action
4. Executing the action
5. Perceiving the state of the world
6. Interpreting the state of the world
7. Evaluating the outcome
Define clr and base class libraries.
A base class library is a standard library to all common intermediate languages.With the help of common intermediate language the base class library can encapsulate a large number of common functions,...
clr = common language runtime works like the heart works fr any being........
How to avoid deadlock in Java?
A deadlock occurs when one thread has the control for A and tries to get the control for B while another thread has the control for B and tries to get the control for A. Each will wait forever for the...
Indexes searching capabilities
How do indexes increase the searching capabilities?
By using the concept of serial scanning the indexes can increase the searching capabilities.
How to compress a string (algorithem)?
"java import java.io.ByteArrayOutputStream; java.io.IOException; import java.util.zip.GZIPOutputStream; import java.util.zip.*; public class zipUtil{ public static String compress...
How will you increase the allowable number of simultaneously open files?
Instant File Opener allows to create a list of multiple files, programs, folders, and URLs to be opened at the same time by opening a single special file or by logging into Windows. Files are opened ...
How will you invoke another program from within a C program?
We can invoke another program by using function like system() call like system(test.exe).
How will you call a function, given its name as a string?
We cannot call a function whose name is a string, we have to construct a table of two-field structures, where the first field is the function name as a string, and the second field is just the functi...
What is the use of url recording mode ?
URL mode is used to have control over the resources that need to be or need not to be downloaded, since each and every browser request to the server and resources received from the server are recorded...
What are the different ways to read input from keyboard at run time?
By using scanner class we can input data from the keyboard.By declaring the Scanner classs input as System.in, it pulls data from the keyboard (default system input).
There are 5 sub with equal high marks. Mark scored by a boy is 3:4:5:6:7 (not sure). If his total aggregate if 3/5 of the total of the highest score, in how many subjects has he got more than 50%?
It is cleanly mentioned in question that he has scored 3 subjects
In three subjects he will get more than 50%.
An engine length 1000 m moving at 10 m/s. A bird is flying from engine to end with x sec and coming back at 2x sec. Take total time of bird traveling as 187.5s. Find the to and fro speed of the bird.
distancetravelled by the bird=2000m
time taken=187.5 sec
=375/2 sec
speed is in the ratio of 1:2
dividing the time in the ratio of 1:2
time to=375/2(2/3)=125 sec
speed=distane/time=1000/125=8 m/sec
speed in thefro direction=16m/sec
What is pre-emptive data structure ?
There are primitive data types but not primitive data structures.
Primitive data types are predefined types of data, which are supported by the programming language. For example, integer, character, and string are all primitive data types.
What kind of useful task does stacks support?
Stack supports four major computing areas,they are
1.expression evaluation
2.subroutine return address storage
3.dynamically allocated local variable storage and
4.subroutine parameter passing.
Inherit priVATe/protected class
Can a priVATe/protected class be inherited? Explain
Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.
What is the number of masked code ee@?
When kill -3 command is executed, it will quit from executing the process and additionally it will dump core for that process mentioned with pid.
022 is the number of mask code ee@.
What is doctype? What is dom?
DOM - API for HTML. It represents a web page as a tree. In other words, DOM shows how to access HTML page. DOCTYPE is used 1) for validation, "validator.w3.org" 2) specifies the version of HTML. ...
The DocType declaration helps a document to identify its root element and document type definition by reference to an external file, through direct declaration.It helps in specifying certain attribute...
What are the byte values of datatypes?
The default byte value of data types in zero.
What is the relationship between XML and sgml? Does XML replace sgml or is it a subset of sgml?
SGML is the basis XML and HTML and provides a way to define markup languages and sets the standard for their form.SGML passes structure and format rules to markup languages.
XML is a subset of SGML.It is a meta language and is used to define other markup languages.
Describe an algorithm to compute the average of two scores obtained by each of the 100 students
This can be done using structures
struct student
{
int score1;
int score2;
}st[5];
int sum,avg;
printf("Enter the first score:");
scanf{"%d",&st[i].score1);
printf("Enter the second score:");
scanf{"%d",&st[i].score2);
for(i=0;i<5;i++)
{
sum=st[i].score1+st[i].score2;
avg=sum/2;
printf("average=%d",&avg);
}
What is race around condition?
A race around condition is a fault in the process or a system where the output or the result of the process is critically and unexpectedly dependent on the timing of other events.
Race condition especially occurs in multithreaded or in distributed systems.
How will you migrate the data from one system domain to another system domain? What testing procedures will follow?
Domain migration happens when servers are upgraded and the data (including any authentication and authorization information) must be moved to a new system, when an administrator changes from one ISP t...
Do we use const keyword only for compile time constants? Explain
Const in C# is a compile time constant as it is closest considered like a #define of a literal value.It is used to define constant values. In C#, we can declare a const of any type as long as the val...
What project option causes the necessary files to be generated when the project is compiled?
gcc -c proc.adb is an option to generate the necessary files during compilation.
Print using string copy and concate commands
How will you print tata alone from tata power using string copy and concate commands in c?
include
#include
#include
int main()
{
char myString[] = "TATA POWER";
char output[10];
strcpy(output,myString);
output[4] = ;
printf("OUTPUT :%s
", output);
printf("ORGINAL STRING :%s", myString);
getch();
}
What is the number of the masked code ee@?
022 is the number of the masked code ee@
Read the heights in inches and wieght in pounds
Read the heights in inches and wieght in pounds of an individual and compute and print their bmi=((weight/height)/height)*703
#include
#include
void main
{
int h,w,bmi;
clrscr();
printf{"Enter your height in inches:"};
scanf{"%d",&h};
printf{"Enter your weight in pounds:"}
scanf{"%d",&w};
bmi=((w/h)/h)*703;
printf{"BMI=%d",&bmi};
getch();
}
What is the "state of the art in qa"?
State of art in QA is an answer type in "The need for Semantic Inference in QA".Some features for such Answer type are:
>Labels questions with answer type based on a taxonomy
>Classifies questions (e.g. by using a maximum entropy model)
What is smart client?
Smart client is an application which can simultaneously hold the advantages of the thin client such as auto-update,zero install and advantages of thick client such as high productivity and high performance.
Smart client can be worked as thick client or thin client.
What is Microsoft XML?
It is a service which enables the developers to create interoperable XML applications on all platforms of XML 1.0.
Write the Java version of ms dos copy command
The command FileUtils.copyFile(fOrig, fDest); is similar to ms ds copy command.
Oracle stores information regarding the names of all the constraints on which table? A)user_constraints b)dual c)user d)none of these
Constraints divided into 3 types those are: 1. domain integrity constraints:- not null,check 2. entity integrity constraints:- unique,Primary key 3. referential integrity constraints:- foreign key In...
user-constraints and all_constraints
What is the functional difference between wave trAP, lighning arrestor, surge absorber.
The function of Wave trap is to trap the communication signals of higher frequency sent from remote substation and diverting them to teleprotection panel in the control room substation. The function ...
Function that counts number of primes
Write a function that counts the number of primes in the range [1-n]. Write the test cases for this function.
static int getNumberOfPrime(int N) {
int count = 0;
for (int i=2; i<=N; i++) {
int max = (int)Math.sqrt(i);
boolean prime = true;
for (int j=2; j<=max; j++) {
if (i%j == 0 && i != j) {
prime = false;
break;
}
}
if (prime) {
count++;
System.out.print(i + ",");
}
}
return count;
}
Test case for prime numbers can be :
let the prime no be n
case1: expected o/p (prime no)result
divide the no n by 1 remainder=0 pass
divide the no n by n remainder=0 pass
divide the no n by 2 remainder!=0 pass
.
.
divide the no n by upto n-1 and if remanider not equal zero
then it is a prime no.
Advantages of ADO over data control
Name two advantages of ADO over data control.
Some advantages of ADO over data control are 1.ADO is faster with most databases compared to data control. 2.ADO separates Datahandling and Database Structure manipulation,hence its easier to protect...
What is grid control? For what purpose it is used?
DataGrid control is a control in vb which helps in displaying the entire table of a record-set of a database. The control also allows users to view and edit the data.
The average temperature of monday to wednesday was 37c and of tuesday to thursday was 34c. If the temperature on thursday was 4/5 th of that of monday, the temperature on thursday was?
37 - 3 = 34
( (mon + tue + wed) / 3 ) - 3 = (tue+wed+thu)/3
( mon + tue + wed -9) / 3 = (tue + wed+ thu) /3
( mon + tue + wed - 9) = (tue + wed + thu )
mon - 9 = thu
(since thu = (4/5) mon )
(5 * thu)/4 - 9 = Thu
Thu = 36
The average temperature on Thursday will be 36 degrees.
Which types of trigger can be fired on DDL operation? a. Instead of triggerb. Dml triggerc. System triggerd. DDL trigger
The trigger which can be fired on DDL operator is DDL trigger.
Explain how sequence diagram differ from component diagram?
1. A component diagram represents how the components are wired together to form a software system where as a sequence diagram is an interaction diagram which represents how the processes operate with ...
What are the criterias that are considered to design a framework in QTP?
Some criterias in designing a framework are 1.Based on the requirements the framework should be kept simple, because Complexities can only destruct the whole purpose of framework. 2.As the project p...
What is use of grounding the neutral of the star connecting transformer through resistor (ngr)?
All electrical systems should have a link to ground.otherwise there will be severe ground insulation stress on transients. A neutral grounding transformer links the power system neutral to ground.
A resistors used for earthing the star point of a transomer and protect the transformer.
If the number of hits become flat, then the issue is with,a)app serverb)web serverc)db serverd)authorization server
Its an issue with connection of Webserver.
Problem related to webserver to tune the weblogic connections
What algorithm is used in garbage collection?
The algorithms used by garbage collectors are
1.Naïve mark-and-sweep
2.Tri-color marking
What to you mean by section 508 standards. In what ways it is helpful in testing?
The Section 508 Standards provide technical requirements where the federal agencies should meet the needs of people with disabilities when they buy, build, maintain and use information and communicati...
Post order binary tree traverse
Design a conventional iterative algorithm to traverse a binary tree represented in two dimensional array in postorder.
In Postorder traversal sequence we first look for the left node then the right node and then the root. Algorithm:
Code
void postOrder(tNode n) { if(n==null) return; postOrder(n.left); postOrder(n.right); visit(n); }
List out the characteristics of an algorithm
1.It should be simple.
2.Generally written in simple language.
3.It involves finite number of steps.
4.should be executed in short period of time.
5.Output of algorithm should be unique.
What is the importance of algorithms in the field of computer science?
Algorithms are blue prints of a program which gives all the details and functionality involved in finding the solution to a problem.It is important as we can build a program on any platform with the help of an algorithm.
How can you make a class as interface, if you cannot add any pure virtual function?
By putting a virtual destructor inside an interface makes a class an interface.
Add pure virtual destructor in that class
A two-dimensional array x (7,9) is stored linearly column-wise in a computer's memory. Each element requires 8 bytes for storage of the value. If the first byte address of x (1,1) is 3000, what would be the last byte address of x (2,3)?
use the formulae
X(i,j)=Base+w[n(i-1)+(j-1)]
where m=7 ,n =9 ,i=2 ,j=3
hence 3000+8*[9(2-1)+(3-1)]
=3000+8*(9+2)
=3000+8*11=3088
How to convert bytecode to sourcecode?
A Java Decompiler (JD) can convert back the Bytecode (the .class file) into the source code (the .java file).
Functions for error trapping are contained in which section of a PL/SQL block?
The Exception section of the PL/SQL block contains the functions for error handling.
Internet and telephone network topology
Which topology is mostly used as the internet & telephone network?
In Internet WE mostly use Star Topology, But Mesh topology Is Secure,and In telephone System mostly , used Star Topology.
Internet does not follow a standard topology,networks may combine topologies and connect multiple smaller networks, in effect turning several smaller networks into one larger one.
A ring topology can be used for telephone networks.
What is internal io and external io?
The internal io are created through EAI Siebel Wizard.These object have their base type as siebel business objects. The internal io are used in EAI Siebel Adapter BS through query methods. External i...
How to change jar file icon.
The jar file doesnt have an icon, its a system-wide setting that applies to ALL jar files.
What are the different types of shells available in UNIX?
There is a lot of shell available in UNIX.
Ex:- Bourne shell, Bash shell, CShell, Korn shell etc.
$cat /etc/shells <--from linux
Why is QTP referred to as unicode compliant?
QTP is refereed to as an Unicode complaint because it is recognizable with the unicode character set across various applications and it is supported only by the internet explorer.
QTP is reffered to as Unicode Complaint, because it is not browser compatable. It's only supported by IE Browser. And more over some components are not able to record.
What is assembly in .Net and what do you mean by protected class always present in the same assembly?
The .NET assembly is a standard for the components built with Microsoft.NET.Assemblies can be executable (.exe) or non executable such as .dll(dynamic link library). There are two kind of assemblies ...
How many thread priority levels levels are there in Java 3810 1224
The priority of thread can be max,norm and min depending on the underlying os or JMV.
The thread priority levels in terms of integer range from 1 to 10
For max, min & medium priority we have the following:
MAX_PRIORITY (value=10)
NORM_PRIORITY (value=5)
MIN_PRIORITY (value=0)
Requirements elicitation process
Explain the various steps to conduct requirements elicitation process
Stepe involved in elicitation requirement are 1.Identify the real problem, opportunity or challenge 2.Identify the current measure which show that the problem is real 3.Identify the goal measure to s...
What is an intersection table and why is it important?
An intersection table implements a many-to-many relationship between two business components.
A table added to the database to break down a many-to-many relationship to form two one-to-many relationships
Define delay time - load runner
Delay time is the time the elapses between request and response.
What's involved in end to end vb.Net testing?
A software once completed goes though rigorous testing before its actual integration.It also goes through different types of software testing and also different types of integration. The different ty...
How can we compress any text file using c. Can anybody provide me sample code
The function comp() can be used for compression.The compression logic for comp() should provide the fact that ASCII only uses the bottom (least significant) seven bits of an 8-bit byte. The compressio...
Name three activities involved in requirement gathering
Three activities involved in requirement gathering are
1.Eliciting requirement
2.Analyzing requirement
3.Recording requirement
List the rules used to enforce table level integrity.
There are 3 rules to enforce table level integrity. 1.Foreign key value can be modified only if we want to match the corresponding primary key value. 2.We cannot delete records either from parent or c...
What is the degree of relationship? Name the three degrees.
The number of entity type involved
i.e
One : Unary
Two : Binary
Three : Ternary
Degree of relationship is the cardinality of relationship that defines the number of instances of one entity as it relates to the number of instances of the other entity.Depending on the combinations ...
How to schedule background jobs at os level?
We can not completely schedule background jobs at OS level but we can trigger a background job which has already been scheduled by using sapevt tool.
By sapevt we can define jobs that wait for the occurrence of the event along with the parameter.
What isAPI testing?
API testing is used for the system which has collection of API that needs to be tested. The system could be system software, application software or libraries.In API testing,we need to setup initial e...
Types of testing performed for any windows
Enlist types of testing performed for any window in sequence?
The types of testing performed are
Security
Regression testing
User acceptance testing
Unit testing
System testing
Is it possible to specific tables when using RMAN duplicate feature? If yes, how?
It is possible to use RMAN duplicate features to specific tables,with RMAN Duplicate we first create a target or duplicate single instance database and then convert the single instance database to a RAC database.
Contemporary information technology
What is contemporary information technology?
Contemporary Information Technology helps in understanding the history and development of communication and information technology.It deals with the applications and strategic uses of information technology; computer hardware, software and telecommunications and networking.
How are Oracles aim (application implementation methodology) used in testing?
During testing oracles amis at Business System Testing which focuses on linking test requirements back to business requirements and securing project resources needed for testing. It supports utilizin...
What is smart object recognition
Smart object recognition is used to identify the GUI objects in the screen. When u recording the script automatically the object recogniser records the objects in the screen.
Where is the bitmap checkpoint information saved?
They will be stored in resource action folders.
What is organization unit? Features of organization unit and its benifits
Organization Unit is a means in which we can keep objects such as user accounts, groups, computer, printer . applications.It allows us to assign specific permission to the users. Benifits 1.OUs can b...
Organization Unit is like creating a group of users or computers in a domain so that we can apply policies easily to a group at a time.
What is the exact difference between QTP and rft ?
QTP has only one platform to develop scripts only in VBScript where as RFT has two platforms - Visual Studio and Eclipse to develop scripts in VB and Java respectively. In QTP the documentation avail...
Why contructors does not supports visual functions?
Constructor does not support virtual functions because we need an object to invoke a virtual method in the first place and more over constructors are used to initializing objects,which is a static typ...
What kind of modulation processes are ADOpted in bluetooth technology?
Bluetooth uses 0.5 BT Gaussian-filtered two-frequency shift keying (2FSK).
Modulation Process used in Bluetooth is GFSK(Gaussian Frequency-Shift Keying)
Why resultset being an interface can call next()
A class which implements an interface implements its methods.When we obtain a reference to a ResultSet then we are getting an instance of a class that implements the ResultSet interface.Hence class provides concrete implementations of all of the ResultSet methods.
What is the extention of the .Net
Network
The extension for .NET
. stands for linkage with any application
N stands for network
E stands for Embedded
T stands for Technology
What are the differences between tp lite and tp heavy
Tp lite monitors are the monitors which embed the services provided by TP monitor,these were available as part of the DBMS or middleware software provided by vendors like Sybase, Gupta, and Oracle.hen...
What are the differences between iis 5.0 and iis 6.0?
Some differences are 1.IIS 0.5 uses operating system with 32 bit architecture where as IIS 0.6 uses 32bit and 64 bit architecture. 2.IIS 0.5 has binary metebase configuration but IIS 0.6 has XML confi...
How do you perform subnet addressing ?
Subnetting divides one large network into several smaller ones. It adds an intermediate level of hierarchy in IP addressing.
To create or to perform subnet addressing the local address should be divided into a number identifying the physical network and a number identifying the host on the subnet. Then the senders route m...
XSNL(XML search neutral language) is a language which acts between the meta search interface and the targeted system, it is built to be as flexible and fine grained as possible.
It is used for the development of an advanced meta search engine specialized in newspaper news.
Scientific language is a programming language for the use of mathematical formulas and matrices.ALGOL, FORTRAN, and APL Are some of the scientific languages in computer programming.
File extension .xba is a Unknown or unassigned file extension.
Let me tell you where exactly it is used and what it does as per my knowledge.Application library used by OpenOffice.org, an open-source productivity suite; contains the functionality for the componen...
Post block trigger belongs to which type of trigger?
Post block trigger belongs to Navigational triggers.
Navigation Trigger
Value set is a collection of values.A value set associated with a report parameters, provides a list of values to the end user to accept one of the values as report parameter value.
i thhink it is simmilar to enum in c/c++
An unabridged list is an information which is not reduced in length by condensing.
Define associative memory. Discuss its limitations and suggest a remedy.
Associative memory is the type of memory that allows the recall of the data based on the degrees of similarity between the input pattern and the pattern stored in the memory.It is a memory organization where memory is accessed by content and not through address.
What are data model and class model in object oriented approach specially in c++?
Data model is an abstract model which describes the representation and usage of data.In oops context data are modeled as units of objects and data model represents the logical organization of real wor...
What is the exact difference between QTP and rft ??
The main difference between QTP and RFT
QTP uses VB script, RFT uses Java or .Net script
QTP user friendly, RFT not that much user friendly
QTP is a Mercury product and RFT is IBM product.The basic difference is that, in RFT we can use Javascript and in QTP we cant use the Javascript.Ofcourse, VB scripting can be used in both of the tools...
What is the difference between rft and QTP ??
1.QTP uses lite weight scripting language. RFT uses powerful language Java. 2.QTP - started by Mercury and taken over by HP. RFT - started by Rational and taken over by IBM. 3.QTP has only one pl...
What are the different types of load conditions?
The types of load conditions are:
Performance test
Load test
Stress test
Capacity test
What is the difference between implicit function & explicit function.
is the equation of circle is explicit function or not
A function in which the dependent variable has not been given in terms of the independent variable is known as implicit function.Ex: 2x-y = 3 A function which determines the output value in terms o...
A Bluetooth enabled device can connect to other Bluetooth enabled devices in proximity. Each device can simultaneously communicate with up to seven other devices within a single piconet.The data betwe...
A Bluetooth device playing the role of the "master" can communicate with up to 7 devices playing the role of the "slave". This network of "group of up to 8 devices" (1 ma...
What is revoke and checklist?What is the output of user acceptence testing?
Revoke is a command to removes user access rights or privileges to the database objects.
Checklist is a command which lists the tests which should be performed on a particular process.
The output depends on eh test cases and the cases depends on the choice and complexity of the project.
Why init(), destroy() can't be overridden in servlets?
Can override init & destroy .
People used to make mistakes by overriding inti(ServletConfig).
Because if we override and forget to call super.inti(ServletConfig) then default actions doesnt get performed. As a result getServletConfig() will return null.
It is possible to Override init() & destroy() methods in servelts
What is mtbf? Explain in suitable examples.
MTBF stands for Mean Time Between Failures.MTBF tells us the most frequent failures within a process.It is the sum of the operational periods divided by the number of observed failures.
MTBF means mean time between failures.failure--------------------repair--------------------failure<------MTTR---------------><-----MTTF-----------------><--------------------------MTBF-...
How to extract the second row of a text-file?
We can use either
head -2 file.dat | tail -1 or
cat file.dat | sed -n 2p > output.dat
sed -n 2p
It is a class which provide an interface for creating families of related objects.It encapsulate the logic which helps to decide which subclass should be instantiated and hence removes this decision f...
A Factory class is one that is used to return instances of other classes. This is generally used in the context of Factory Design Pattern.
What are application clusters in crm?
CRM application cluster is a software that ranges in size and complexity making it possible for an organization to select the type of software needed the most. It consists of how a customer is relate...
What is cascade and drill through? What is the difference between them?
Cascade is a process which takes values from other prompts.It results in a single report and is used based on some condition. Drill through is a process which bis used to navigate from summary to deta...
What are structured test methods and processes.
Structured test methods replace functional testing in the highest density, these devices offers a rational alternative to functional test. It uses fewer test patterns but generates patterns to detect ...
What can a method do with a checked exception?
With a checked exception a method can either throw an exception to the method which calls it or it can handek the exception in the catch block.
Is it possible to connect two priVATe networks through internet using vpn concentrator?
VPN is used to make remote connections i.e,it is used to connect remote sites or users together with the help of a public network (usually the Internet). It uses "virtual" connections routed through t...
Yes, The use of VPN is to secure connection between two private networks over the internet.
How many strings can we declare in an array in QTP?
We can declare a string element sized upto 8203 characters in an array.
using a single IP address and locally splitting it up so that this single network IP address can actually be used on several interconnected local networks is known as netted IP.
What are headers and trailers? How are they added and removed?
Headers and trailers are the concepts of OSI model. Headers are information structures which identifies the information that follows, such as a block of bytes in communication. Trailer is the informat...
How many modes are there in QTP ? Describe about them ?
In simple words there are 3 types of recordings in QTP Normal:It is the by default recording mode in QTP. Low Level:This mode we use generally when QTP do not identifying the objects. It records the e...
Three modes of Recordings are there:
Normal
Low level
Analog
What is the other name for static-passive flexibility?
Static-passive flexibility is also known as passive flexibility.
What is static-active flexibility?
Static-active flexibility is the ability to stretch an antagonist muscle using only the tension in the agonist muscle.
What are the possible outcomes of flexibility?
Flexibility can either give a positive outcome or a negative outcome.
What are the analysis a tester should perform before carrying out whitebox testing?
White box testing provides the testers with complete knowledge of the infrastructure to be tested, often including network diagrams, source code, and IP addressing information. It can be performed to...
Dynamic flexibility is the range of motion which is achieved by actively moving body segment using muscular action.
It is important for developing speed and power.
What is wireless test executive?
Wireless test executive is an easy-to-use graphic interface for controlling test selection, execution, and runtime options. Tests are displayed in a hierarchical list where each entry represents one t...
How is whitebox testing used with integration testing?
Integration testing looks at how all components of an application interact. White box integration tests specifically look at the interfaces between the components.
What is the law of flexibility?
The law of flexibility says that the success is best achieved when you are clear about the goal but flexible about the process of getting there.
What is flexibility leadership?
Flexibility leadership is a quality executed by the leaders who are self-aware, create personal guiding principles and are flexible in their leadership approaches. There are a set of leadership traits...
What are the different levels in wireless testing?
Levels of testing:
1.Usability Testing
2.Network Performance Testing
3.Server-Side Testing
4.Automating Unit Testing
What is data flow testing present in whitebox testing?
Data flow testing is a White-box test design technique.The testing is based on selecting paths through the programs control flow in order to find the sequence of events related to the status of data objects.It uses control graph to find the anomalies.
What technologies are used with wireless testing?
The technology used will determine the type of test environment and tools that we need. * WAP * Bluetooth, etc. * XML, WML * Security protocols Tools * WAP Simulators by hardwar...
What is the visibility of a tester in whitebox testing?
White box testing has full visibility of the internal workings of the software product, specifically, the logic and the structure of the code. The purpose of any security testing method is to ensure t...
What is webcombo box in ASP.Net2.0
Waiting 4 ans
n .NET2.0 ComboBox and TextBox has the facility. Just set the Autocomplete property to any of the following {Suggest,Append,SuggestAndAppend} And the Autocomplete DataSource to any one of the followin...
A web combo box is used to manipulates the dataset rather than query the database everytime, to shorten the resulting resultants.
How to convert a form that contain some chart and some textbox to pdf in visual basic ?
By using mjwPDF class we can convert a form to PDF in vb.
Write a test cases for triangle types ?
Some test cases can be:
Sum of angles should be equal to 180 degrees.
It should be a closed figure.
The figure should be made up of 3 straight lines such that 2 straight lines are drawn from a single vertex.
How are hex literals specified in vbscript?
The hex literals are specified using"Hex()" method in vb script.
Example:
a = 25
Wscript.Echo Hex(a)
The output of this script is 19, which just happens to be the hex equivalent of 25.
What is the use of optional key word in vbscript?
Vb Script functions cannot use the Optional keyword because it Vb Script we need to declare every argument that we want to use. In Visual Basic the Optional keyword, which allows some arguments to be ...
1. Crisp binary choices 2. Ambiguous data 3. Decision makers 4. All of them
Fuzzy logic system relays on all Crisp binary data, ambiguous data and on decision makers.
Basic elements of a picture in volume graphics
The basic elements of a picture in volume graphics is 1. Pixel 2. Volsel 3. Voxel 4. EIther pixel or voxel
The basic elements of a picture in volume graphics is voxel.
pixel
The network address made available to the transport layer should use a uniform numbering plan
1. In a session 2. In a lan3. In a wan 4. Across lan and wan
Across LANs and WANs.
What are the levels(level-1,level-2........) of functional testing?
Functional testing is related to what the system does , it is also called blackbox testing
level-0 sanity testing
level-1 comprehensive testing
level-2 regression testing
level-3 re-regression testing
Which languages are included in object based languages other than vb and Java script
Object-oriented languages include Simula, Smalltalk, C++, Eiffel, Python, Ruby, C# and REALbasic other than Vb and java script.
other object oriented languages are c++ & simula 67
In corba, the 'messageerror' giop type is used for?
"Messageerror" GIOP type is sent as a response to the malformed or otherwise invalid messages. It is not used to report errors outside the messaging system; such errors are reported using the Reply message.
Which of the following are valid types of com servers
A: in-process b: local and remote c: all of the above d: none of the above
A:in-process is one of the type of COM server.
What is the technology used in voicexml?
SpeechFrame is the technology used in voiceXML.It allows the web developer to write, drag-drop and test new VoiceXML applications. SpeechFrame converts web based business processes in vocal services t...
The relational model has _____ components?
The Relational model contains 3 components 1)set of relations and set of domains ( data structure).
2)Integrity rules (data integrity) and
3)The operation that can be operate on the data (data manipulation).
Relational model consists of three components:
Registry is a database used by Microsoft Windows to store configuration information about the software installed on a computer. The Windows registry consists of the following six parts: HKEY_User - c...
What is the diff between sit & ist?
SIT stands for System Integration Testing, it is a process of testing the source code developed and fixes some variance before proceeding to the next testing phase. IST stands for Interconnect Stress...
What files are created in QTP?
Text files and Xml files are created in QTP.
A data set is stored on the client side and it cannot access the database directly.
Dataset is an in-memory representation of a database. Its stored no where but in memory. Goes off when GC stats after a littl sleep.
Frames is a feature supported by most modern Web browsers than enables the Web author to divide the browser display area into two or more sections (frames). The contents of each frame are taken from a different Web page. Frames provide great flexibility in designing Web pages.
The use of multiple, independent sections to create a single Web page. Each frame is built as a separate HTML file but with one "master' file to identify each section. When a user requests a page with...
Masked Defect is a defect which is hiding another defect. E.g. there is a link to add employee in the system. On clicking this link you can also add a task for the employee. Let’s assume, both the f...
The QCD architecture provide a highly cost-effective, massively parallel computer capably of focusing significant computing resources on relatively small but extremely demanding problems. In QCD arch...
The GameKit framework contains APIs to allow communications over a Bluetooth network.These APIs allow us to transfer data among the different devices.
Implementing Bluetooth Wireless Technology in End ProductsOver the past few years, Bluetooth technology has been greeted with great enthusiasm from a variety of companies who are keen to implement the...
What are the attributes that make up a dhtml?
DHTML is called as dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser. The main technologies that are used in dHTML are namely: HTML Javascript CSS which is also called as cascading style sheet ...
The attributes that make up DHTML are HTML, JavaScript, CSS and DOM. These are explained below as: Java script: JavaScript is the popular scripting language on the internet, and it works in all major...
What is pwp??? Someone else has also asked in web testing questions.
PWP stands for Image file,a roll of film viewed using Photoworks.
Can we use goto statements in QTP. If not is there any other option for that?
In QTP there is no goto statement hence by using conditional statements along with looping statements behaves like the goto statement.
How do computer aided software testing tools support test management?
Software testing tools support for Time consumption and we can ensure efficiency of the product level from the customer point of view.
Computer aided software testing tools support test management to define what to test, how to test, when to test and what happened, it reduces time, requires less man power and it also provides testing statistics for management reporting.
Give one example where you have used regular expression?
as per nitin answer i agree but we can use regular expression in test cases also how it is like shown below: if we have lengthy statements in test cases we can use this for ex:in testdata alphanumeric...
Code
pattern=""[a-zd*]"
How to parameterize checkpoint ?
Insert the checkpoint and right click on the checkpoint statemnt and then select checkpoint properties option,checkpoint properties dialog box will be opended. Select the property which u want to parameterize and check the parameter radiobutton.Click on parameter options button and select relevant...
To parametrize a check point we need to insert and click on checkpoint and select properties option and parametrize the property which is required ,Click on parameter options button and select relevant options and enter the parameter name and click on ok. Finally click on ok button.
In OOPS do curent memory locators provide enough speed or flexibility?
OOPs memory locators provide enough flexibility as it is frindly to the programmer,rather we can say objects talking to each other and maintaining their relationship.
What are the attributes of test automation
The attributes of test automation Maintainability,Reliability ,Flexibility ,Efficiency ,Portability ,Robustness and
Usability
What are the disadvantages of checkpoints?
One of the disadvantage is that is it consumes a lot of CPUs time for checking the given functionality.
Content testing checks whether the users can easily understand all items that appear on a site.
Content testing having a low fidelity design and it includes basic formatting are : Navigation,Usefulness,Tone and Style,Organization and readability.
Explain windowbase & webbased application?
Web based application:An application that is accessed over a network such as the Internet or an intranet are known as web based applications.These applications are popular as they have the ability to ...
SOAP stands for Simple Object Access Protocol.It is a communication protocol between applications.It is based on XML and is a format for sending messages via Internet.It is is a W3C recommendation. A...
How to add recovery scenario's to test settings through script
By using "Recovery.GetScenarioName Iter, ScenarioFile, ScenarioName" statement we can add recovery scenarios to test settings.
Can we execute stored procedures using wr/qtp? If yes how?
By using SQL statements we can execute stored procedures.
Which dynamic objects are using in QTP?
Dynamic object is an object which changes its properties at the run time and thus its mandatory properties cant be predicted from the starting. By using DP and Regular expressions we can work with Dynamic Objects in QTP.
How to convert Java applets into image file?
May be Applet.getImage(new URL(...)) can be used to convert java applet into image file.
Java applets are not used in DWH. So its irrelevant question in DWH concepts group.
What is the difference between the hot key and shortcut key
The shortcut keys are related to a specific window and will only work in that window. It is part of the name of a menu item or button, where it can be underlined, and is available (without modifiers) ...
hotkey: which is used to open r close an application.....
shortcutkey: used to perform actions with in the application....
Table operator is used to correlates each row of left-hand side table expression to right hand-side table expression.
What is the difference between thin client and thick client?
Thin Clients 1.Easy to deploy as they require no extra or specialized software installation 2.The data captured is verified by the server. 3.Clients run only and exactly as specified by the server 4.R...
Thin client is browser based and thick client is window based
1)Shell executable doest support application domain.
2)True,in .Net there is no deterministic destruction
3).net runtime is having two types of isolation.
Is QTP supports the reports(business objects) to automate.
The qtp support for business objects depends on the primary language used through proper add-ins.
If Java, use the Java add-in (and maybe the Extensability).
If VB, use the VB add-in.
If web based, use the Web add-in.
and so on
Hence it depends on programming language.
How to import data for data driven test?
We can import data by using DataTable.ImportSheet "....TestDataInput.xls",1,dtGlobalSheet
Give an example of a built-in-function and any user-defined function?
Built-in function are the functions which are already present in the standard library files and they can be accessed directly Example sqrt(),round() etc... .sqrt() the above example returns the...
An interface contains _________ methods
Skill/topic: inheritancea) abstractb) non-abstract c) implemented d) un-implemented
An interface contains abstract methods because interfaces cannot be instantiated, but rather are implemented. A class that implements an interface must implement all of the methods described in the interface, or be an abstract class.
Abstract
Wait, property,exist syntaxes with examples.
Wait Property is used for synchronization in QTP.It forces QTP to wait before going to the next step.Suppose an object can display in 5 second and we insert wait(10) then it will allow QTP to wait fur...
Wait property Syntax: Object.waitproperty "property name", "property value", time out. Example: y = Window("Test").WaitProperty("focused", True, 3000) Here we use the WaitProperty method to make the p...
The constructor of the hashtable class initializes data members and creates the hashtable.
Skill/topic: hash tablea) trueb) falseexplanation: the constructor of the hashtable class initializes data members and creates the hashtable. The size of the array of pointers (tablesize) is passed to the constructor when the application declares an instance of the hashtable class
The size of the array of pointers (tablesize) is passed to the constructor when the application declares an instance of the Hashtable class and therefore the constructor of the hashtable class initializes data members and creates the hashtable.
Getsize() function is used to protect the integrity of the data.
Skill/topic: hash tablea) trueb) falseexplanation: the getsize() member function of the hashtable class reads the size data member of the hashtable class and returns its value to the statement that calls the getsize() function. If you gave the application direct access to the size data member, statements...
True,GetSize() function is used to protect the integrity of the Data by controlling the access to the size parameter, such that only the function members of the hashtable can access the size parameter.
Skill/topic: hash tablea) a hash number key to a keyb) key to a hash number keyc) a key to an indexexplanation: the hashstring() member function is another function called by other member functions of the hashtable class whenever a function needs to convert a key to a hash number key. The hashstring()...
C) a key to an Index
The hashString() member function is called by other member functions of the Hashtable class whenever a function needs to convert a key to hash number key.
Skill/topic: hash tablea) trueb) false
True,the hasnext() function determines if there is another entry in the hashtable based on the current state of the iterator.
Skill/topic: hash tablea) hashtable , hashmap class
Hashmap and hashtable are the classes which the Java.Util package contains to work with hashtables.
The C++ version of the hashtable application is simpler than the Java version.
Skill/topic: hash tablea) trueb) falseexplanation: the Java version of the hashtable application is simpler than the C++ version because the Java version defines the hashtable class in the Java collection classes that are defined in the Java.Util package
The hash table applications of java are simpler then c++ because java defines a class in java collection class called HASHTABLE class which is present in the java.util package.
Hashing is performed at bit level.
Skill/topic: hash tablea) trueb) false
True, hashing is performed at bit level by using a hash function. A hash function is any function that can convert data to either a number or an alphanumeric code.
Why are data members of the hashtable class stored in the priVATe access specifier?
Skill/topic: hash tablea) data members of the hashtable class are stored in the priVATe access specifier to ensure the integrity of the data. Only member functions can assign and retrieve values of these data members.
The data members of the hashtable class stored in the priVATe access specifier as members can be used by the class itself or by friends.It ensure data integrity.If the members are declared as private then only mamber functions can assign and retrive values.
A key entered by an application be directly compared to a key in a hashtable.
Skill/topic: hash tablea) trueb) falseexplanation: no. A key entered by the application must be hashed before it can be compared to a key in the hashtable.
False.
The key entered must be hashed before an application compares it with the hash key table.
Skill/topic: hash tablea) a hash key is created by bit shifting a hashed value and then adding to the value bits of a character of the key entered by the application
A hash variable can be created the same way as an array variable.The simplest method is to create an empty hash object and fill it with key/value pairs. Arrays use numeric indexes, from 0 to array.length - 1, hashes use meaningful indexes, normally strings or symbols.
Hashing results in a hash number that has great significance.
Skill/topic: hash tablea) trueb) falseexplanation: hashing results in a hash number that has no real significance beyond it being used as the key for an entry.
The hash number resulted from hashing is used as the key for an entry.
A value is also a component of a node that is used to store data.
Skill/topic: treea) trueb) false
True, a value is also a component of a node which is used to store data.
A ______ is a component of a node that identifies the node.
Skill/topic: treea) valueb) treec) keyd) indexexplanation: a key is a component of a node that identifies the node. An application searches keys to locate a desired node
The data model provides unique keys as a component of the node which identifies the node.
The removenodeat() function removes a node by using the node’s index?
Skill/topic: stacks and queues: insert, delete, peek, finda) trueb) falseexplanation: the removenodeat() function removes a node by using the node’s index rather than the reference to the node in memory
True, the removenodeat() function removes a node by using the nodes index and not by the the reference to the node in memory.
The insertnodeat() function places a new node at a specific location in the linked list.
Skill/topic: stacks and queues: insert, delete, peek, finda) trueb) false
True , the insertNodeAt() function can place a node at the front or back of a linked list if you pass the appropriate index to this function.
The _______ function retrieves the value of the size member of the linkedlist class.
Skill/topic: stacks and queues: insert, delete, peek, finda) getsize()b) givesize()c) seesize()d) addsize()explanation: the getsize() function retrieves the value of the size member of the linkedlist class. The getsize() function contains one statement that simply returns the value of the size member
The getsize() function retrieves the value of the size member of the linked list class.
The linkedlist class is defined in the _______ package.
Skill/topic: stacks and queues: insert, delete, peek, finda) Java.Util
The linkedlist class is defined in the java.util package.
Why is it important to enhance the functionality of the linkedlist class?
Skill/topic: stacks and queues: insert, delete, peek, finda) you enhance the functionality of linkedlist class to more easily manipulate a linked list
To increase the efficiency of the linkedliss class and to allow easy manipulations on the linked list we should enhance the functionality of the class.
Skill/topic: stacks and queues: insert, delete, peek, finda) trueb) false
True,insertnodeat() function specifies the index where to insert the new node in the linked list.
Can a linked list store data other than integers?
Skill/topic: stacks and queues: insert, delete, peek, finda) yesb) noexplanation: integers are usually used, but you can modify the data type of the data in the definition of the node to change the kind of data stored in the linked list.
When we are using structure variable then i will say yes!
Code
struct node{ int info; string name; float average; node *node; };
link list is a data structure not a property of integers...
so, the data the it store can be anything like a class object or structure object etc.
What happens if an invalid index value is passed to a function?
Skill/topic: stacks and queues: insert, delete, peek, finda) if an invalid index is passed, the function terminates without further processing. [explanation] functions that use an index value always determine if the index passed to them is valid before using the index value . If an invalid index is...
If the user passes in an invalid index, the program will cause an assertion error. While this is useful to indicate to the user that something went wrong, so they can deal with it as appropriate.
Skill/topic: stacks and queues: insert, delete, peek, finda) trueb) falseexplanation: the appendnode() function appends the new node to the list without requiring the programmer to specify where to place the new node in the linked list.
No,the appendNode() function do append the new node at the programmers specified place instead it appends the new node at the tail of the linked list instead of head.If the likt is empty then it uses reference pointer to change the head pointer.
Skill/topic: stacks and queues: insert, delete, peek, finda) trueb) false
True,the insertnodeat() function specifies the index of where to insert the new node into the linked list.
What is the return value of the findnode() function?
Skill/topic: stacks and queues: insert, delete, peek, finda) the return value of the findnode() function is the index position of the node.
The index position of the node is returned by the findnode() function.
Deletenode() function requires the _____ of the data element of the node that is being removed.
Skill/topic: stacks and queues: insert, delete, peek, finda) referenceb) valuec) declarationd) variable
DeleteNode() function requires the value of data element of the node that is being removed.
Why does queuelinkedlist class inherit the linkedlist class?
Skill/topic: queues using linked listsa) the queuelinkedlist class inherits the linkedlist class because the linkedlist class contains data members and function members that are necessary to manage the linked list that is used for the queue.
True,as the linkedlist class contains the functions and data members which are used to manage the linked list which is used for the queues,hence queuelinkedlist class inherit the linkedlist class.
_______ form of access is used to add and remove nodes from a queue.
Skill/topic: queues using linked listsa) fifo , first in first out
Queues are first in first out form of data structures.In a FIFO data structure, the first element added to the queue will be the first one to be removed.
Which node is removed from the queue when the dequeue() member method is called?
Skill/topic: queues using linked listsa) the node at the front of the queue is removed when the dequeue() member method is called.
The dequeue() function is used to remove the node at the front and returns a value, this value is stored in an item.
In an array queue, data is stored in an _____ element.
Skill/topic: queues using linked listsa) nodeb) linked listc) arrayd) constructorexplanation: in an array queue, data is stored in an array element. In a linked list queue, data is stored in a node of a linked list
The array element is used to store data in an array queue.
Conceptually, a linked list queue is the same as a queue built using an array.
Skill/topic: queues using linked listsa) trueb) falseexplanation: conceptually, a linked list queue is the same as a queue built using an array. Both store data. Both place data at the front of the queue and remove data from the front of the queue
A FIFO (first in, first out) structure means data is added to the back of the queue and removed from the front of the queue. A first in first out structure is equivalent to last in last out structure,...
A queue built using array is same as a linked list queue because both insert the data in the front and delete the data from front of the queue,i.e,both follow fifo data structure.
The isempty () member function must determine if the stack is empty.
Skill/topic: stacks using linked lista) trueb) falseexplanation: the pop () member function must determine if the stack is empty
False.
The pop() function determine whether the stack is empty or not by calling the isEmpty() member function..
__________ file contains the actual stack application.
Skill/topic: stacks using linked lista) stacklinkedlistdemo.Cpp
StackLinkedListDemo.cpp file contains the stack applications.
Why is the destructor of the stacklinkedlist class empty?
Skill/topic: stacks using linked lista) the destructor of the stacklinkedlist class is empty because the destructor of the linkedlist class is called prior to the destructor of the stacklinkedlist class. This is because the linkedlist class is inherited by the stacklinkedlist class.
The destructor of the LinkedList class is called before the destructor of the StackLinkedList class. The LinkedList class constructor deletes all memory that is associated with the nodes of the linked list. Therefore, the destructor of the StackLinkedList class is empty.
Why is the constructor of the stacklinkedlist class empty?
Skill/topic: stacks using linked lista) the constructor of the stacklinkedlist class is empty because the constructor of the linkedlist class is called when an instance of the stacklinkedlist class is declared. The constructor of the linkedlist class initializes the node and attributes that are
The constructor is empty because the constructor of the LinkedList class is called before the constructor of the StackLinkedList class,we know that the StackLinkedList class inherits the LinkedList cl...
How is the front of the queue calculated ?
Skill/topic: queuea) the front of the queue is calculated by front = (front+1) % size
Front=(front+1)%size is used to calculate the front of a queue.
What is the formula used to calculate the back of the queue?
Skill/topic: queuea) the back of the queue is calculated by using the following formula:back = (back+1) % size
back = (back+1) % size is the formula to calculate the back of the queue.
How do you code error handling in QTP ?
There are 3 error handling statements 1. On Error GoTo line:It use a subroutine to handle error output. 2. On Error Resume Next: Specifies that when a run-time error occurs, control goes to the statem...
What is the repeater function...And what does data integrity means?
The correctness and consistency of stored data is known as integrity of data.
Which swing components are synchronized?
The repaint(), revalidate(), and invalidate() methods are synchronised.
How does windows NT supports multitasking?
Windows NT supports multitasking with the help of preemptive multitasking which is based on preemptive operating system. The operating system takes control of the processor from a task in two ways: W...
preemptive multitask
An assembly is a collection of one or more .exe or .dll s. An assembly is the fundamental unit of application development and deployment for .net framework. It is a collection of types and resources that are built to work together and form a logical unit of functionality.DQ
An assembly is a collection of types and resources which are built to work together and form a logical unit of functionality.It provides common language runtime information depending on the type implementations.
How does an appdomain get created?
When a managed application is initialised by the .NET runtime an appdomain is created.
AppDomain is created by the .Net worker Process(aspnet_wp.exe).
ASP.NET is a programming framework used to create enterprise-class Web Applications.Every element in an ASP.NET page is treated as an object and run on the server.
ASP.NET is the latest version of Microsoft's Active Server Pages technology (ASP).
ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for creating dynamic and interactive web pages
What is report header and what are the information contains.
It display general scenario information and it contain the information like (title, scenario, result start time, end time and duration).
Every report has a report header that prints at the beginning of the report.It contains information about report title, a summary table, a chart or any information that only needs to appear once at the reports start.
Each report viewer contain the report header and report viewer tool bar.
Report viewer is a report which contains report viewer tool bar and report header.
Open an existing scenario . configure the scenario. set the result directory. run the scenario.
Steps to run a scenario
Step 1:Open the sample scenario in the Editor
Step 2:Select a Display Device and Display Mode
Step 3:Select a Response Button
Step 4:Set the Report Option
Step 5:Run the Scenario
Using vuser script information dialog box.
We can modify script by using vuser scripting information dialog box.
It contain all the vuser script that vuser can run.
It is a list which contains the users script which the user can run.
During run time where the hosts saves the files.
In temporally in the local drive of each host.
During run time the hosts saves the files temporally in the local drive of each host.
Through scenario wizard we can create a new scenario.
Scenario wizard is a platform for creating new scenarios.
What is load runner API function .
Data base vuser do not operate client application .Using load runner API function the database vuser can access the data from the server.
With the help of loadrunner API function the data in the server can be made accessible to the database users.
All chickens lay eggs (true/false)
False
no,the chicken that i eat doesnt lay eggs!!!!
False, roosters dont lay eggs.
One dollar is saved in one month. Then how much dollar is saved in one day?
1/30 =0.0333$
1/30=0.0333
0.0333$ is saved in one day.
True
True, we should not be able to read a file after writing in that file without calling the given functions because if the file was open for writing and IF the last operation was an output operation, th...
what is the output? int i=7 printf("%dn",i++*i++);
i++=8
i++*i++=64
56 bcoz ++ operator precedence is right to right.......
twice the original area
area=1/2*b*h
Now b=4b and h=h/2
Hence new area=1/2*4b*h/2
=b*h
Hence the area is double the original area.
detain: suspect. aptitude
confine:prisoner::detain:captive
poltergeist: apparition:: a. Dwarf: stature b. Witch: familiar c. Ogre: monster d. Sorcerer: spell
c
poltergeist:apparition::ogre:monster
because poltergeist and apparition have same meaning similarly ogre and monster have the same meaning.
a
The answer is
A)elusive;objectivity.
deteriorate : improve aptitude
deteriorate:improve::aptitude:inablity
3526548179
d i c t i o n a r y
3 5 2 6 5 4 8 1 7 9
Hence the code is 3526548179.
find odd man out enroll: capitulate: enlist: conscript
capitulate
Capitulate is the odd one out as it means to surrender under specified conditions where as all the other mean to involve in some armed forces.
find odd man out - tautology : oncology : repetition : redundancy
Oncology
Oncology is the odd one out because it is a diseased condition in humans.
fool
UN SAGE
Sage means wise. Its opposite is Unwise.
bless
Antonym of anathematize is salute or bless
Management don't need _______ person a. Self-appointed b. Recalcitrant c. Culprit d. Outspoken
b
Management dont need recalcitrant persons, as they are hard to handel.
What is meant by line item dimension?
Line item dimension is a concept where the dimension precisely contains one characteristic.The line item dimension does not create a dimension table, instead the role of dimension table is taken by the characteristics of the SID table
.
Find the output of the following programint *p,*q;p=(int *)1000;q=(int *)2000;printf("%d",(q-p));
500
The output is 1000/2=500.
(d)
Terminal emulation is the software which allows personal computer to pretend as a computer terminal.
Line of sight isa) straight lineb) parabolicc) tx & rx should be visible to each otherd) none
C
Tx and Rx should be visible because for proper transmission there should be a connection between the transmitter and receiver,hence Tx and Rx should be visible to each other.
D
c. flag register
The conditional results after execution in an micro processor are stored in flag register which is a part of psw.
What is the maximum decimal number that can be accommodated in a byte.A) 128b) 256c) 255d) 512
C
We know that 1 Byte=8Bits,Hence 2^8=256.
A bite can represent one of these 256 distinct values i.e,numbers between 0(min) to 255(max).
Hence the maximum decimal number accommodated in a byte is 255.
The opposite of a leaf page; it is the highest level index page. An index can contain only the one root page; all other index pages are associated to the root.
The indexes of DB2 are represented using b-tree,the b-trees top page is called as the root page.The root page entries represent the upper range limits of the index and are referenced first in a search.
What is an asynchronous write?
. It is a write to disk that may occur before or long after a commit. The write is controlled by the buffer manager.
Asynchronous write is when the pages from bufferpool is written to disk by the page cleaners.
Asynchronous write is a function where the the function call immediately returns after the operation was enqueued or if before this happens an error was encountered.This function is present in "aio.h"...
How does db2 use multiple table indexes?
Db2 use the multiple indexes to satisfy multiple predicates in a select statement that are joined by an and or or.
By using the concept of list prefetch DB2 uses multiple index processing.I is used to satisfy multiple predicates in a select statement that are joined by an AND or OR.
What is the self-referencing constraint?
A31. The self-referencing constraint limits in a single table the changes to a primary key that the related foreign key defines. The foreign key in a self referencing table must specify the delete cascade rule.
Self-referencing constraint makes the table both the parent and dependent table in the same referential constraint.
Here the table is created first and then the foreign key is defined to that table.
To maintain the integrity of db2 objects the dbd permits access to only on object at a time. Lock contention happens if several objects are required by contending application processes simultaneously.
Lock contention are used for maintaining concurrency in the DB2® environment.There are several types of contention situations that degrade DB2 performance, including suspension, timeout, and deadlock.
Begin program-specific programming interface information.
Context is the virtual environment required to suspend a running software program.The concept of context assumes significance in the case of interruptible tasks, wherein upon being interrupted the processor saves the context and proceeds to serve the Interrupt service routine
What are the drivers available?
The drivers avaliable in jdbc are
Type 1: JDBC-ODBC Bridge driver (Bridge)
Type 2: Native-API/partly Java driver (Native)
Type 3: AllJava/Net-protocol driver (Middleware)
Type 4: All Java/Native-protocol driver (Pure)
SAX defines an abstract programmatic interface that models the XML information set (infoset) through a linear sequence of familiar method calls.They are used to develop standard for the events-based parsing of XML documents.
The web.xml defines each servlet and JSP page within a Web Application. It enumerates enterprise beans referenced in the Web application. It also provides configuration and deployment information fo...
Is Java dynamic typed language?
Yes, java is dynamic typed language as it has a property of a language where type checks are performed mostly at run time.A program is dynamically typed if it uses at least one dynamically typed variable.
Implicit objects of JSP are available in destroy() method or not?
No the implicit objects of JSP are not available in destroy() method. The destroy method is invoked by the container when a JSP page is about to be destroyed.It can be overridden by a page author to p...
LayeredPane is a container which allows switching between different sets of displayed components. Each set of components, called a page, is declared within the LayeredPane component and its possible t...
Can u read all elements from an array?
Reading elements from an array depends on the type of data that we want to read from an array,if the array is a linked list or stack or a queue it is not possible to read all the elements but if the array is fo a prmitive data typr then it is possible to read all the elements,
If service method is used then doget() and dopost() stand for what?
We use doGet() when you want to intercept on HTTP GET requests.The servlet doGet() is used to preprocess a request.Ex:doing some business stuff before displaying the JSP page, such as gathering data f...
The Thread.stop() method can be used to kill a thread but it is unsafe and thus deprecated.
Other way would be to have a variable indicating if the thread should be stopped. Other threads may set the variable to make the thread stop. Then, the thread itself may clean up and stop.
How can you change the primary scripting language for a page?
Specify <%@ language = scripting language %>
By using <%@ LANGUAGE = Scripting language %>
How does the server identify and execute the server-side scripts within HTML code?
• including the runat=server attribute in the <script> tag • use <% … %> server script delimiter
The server identify and execute the server-side scripts within HTML code by using <% %> server script delimiter and by including the RUNAT=SERVER attribute in the
CompareTo method which is present in the String class is used to check the two strings. It checks each character with the other String and if found equals then returns 0. Else negative value or positi...
CompareTo() method is derived from Comparable interface and is used to find the Ordering of Strings.
equals() method is from java.lang.Object and used for comparing objects.