100% found this document useful (1 vote)
2K views

Performance Testing

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Performance Testing

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Question No.

2
You run a load test, and the performance does not agree with your goals. What is the next step that
should be taken?
O Consult with subject matter experts
O Add an additional web server to the environment
O Add additional memory to the hardware under test
O Change your Run-time settings and rerun the scenario
None of the options

Question No.3
What inputs are required for planning performance testing?
Workload Information
Applications Details
Performance Monitoring Framework
Concurrent Users

Question No.4
Which of the following type of tests checks for memory leakage and other problems that may
occur with prolonged execution?
Stress Testing
Soak Testing
Endurance Testing
Exhaustive Testing
None of the options

Question No. 5
An end user of an online car dealer is facing poor response. The car dealer checks with the
system administrator and is told that there is no problem in the web or DBMS servers. Which
of the following is lik
The system administrator is telling a lie
There is a delay either at network or client PC or both
The problem will get solved upon reboot
Network capacity will need to be upgraded

Question No. 6
Which of the following are examples of a Throughput?
O Number of banking transactions per minute
O Number of orders per minute
O Number of web interactions per second
Number of disk 1/Os per second, bandwidth
All the options

Question No. 7
Which C function do you use to convert a string to a long integer value?
itoa
atof
atol
strtol
strtok

Question No.8
Response times of 4 jobs are 5, 1, 3 and 3. How many jobs have their response time greater
than the average response time?
3
0
1
2

Question No. 9
Asynchronous Communication will help in
Tight Coupling among transactions
O Weak Coupling among transactions
Better Responde Time
Faster Development
None of the options

Question No. 10
Once a system has been tested and tuned for performance:
O It will never face a problem
O It will not have problem if there is an application change
o It can have a problem if the system grows
O It will have problem if system grows
O None of the options statements are true

Question No. 11
Which of the following is not a part of Workload
O User Load - # of concurrent users
Server configuration
O Data
Background Processes

Question No. 12
Consider two machines with the following configuration
O Machine A performs twice as fast as Machine B
O in most cases Machine Almerforms well
For accessing Database Machine B performs well
Nothing can be said about performance unless processor bandwidth and disc performance is
known
Nothing can be inferred from the above information

Question No. 13
What counters we monitor especially for a processor?
O Pages/Sec
O Bytes Sent/Sec
O %User Time
O%Compressor Time
Both B and C

Question No. 14
Testing where in we subject the target of the test, to varying workloads to measure and evaluate
the performance behaviors and ability of the target and of the test to continue to function
properly under these different workloads.
O Load Testing
Liability Testing
White box Testing
O Component Testing
Question No. 15
According to Little's Law Average No. in a system is equal to
Average Respons/hTime * Throughput
Average Transaction time * Average Response Time
O Response time * Throughput
O Transactions/Sec * Response Time in Sec
O Both C and D

Question No. 16
Workload with respect to a non functional testing can be which of the following?
O No. of users accessing the System
O No. of transactions occurring in the System
Batch programs
Background load on the System
All the options

Question No. 17
Select the different performance testing tools?
O IBM RPT, JUnit, JMeter
O HP Load Runner, IBM RPT, HP Sitescope
O OpenSTA, JMeter, Silk Performer
OCA WilyIntroscope, Load Runner, Microsoft VSTS
WebPerformance. Nagios and HP Business Availability Centre

Question No. 18
Minimum Response time of a system depends on
O No of concurrent users
O Maximum visit count among the components of the system
O Maximum service time among the components of the system
O Cannot be estimated unless load testing is done
Both B and C

Question No. 19
XYZ application is a datawarehouse application which generates reports. Data in the warehouse
grows at a compounded rate of 100% with initial database size of 1 GB. The Project Manager
wants to know what will of 3rd year. Which type of Performance Testing should he conduct if his
user base is not going to increase?
O Load Testing
O Stress Testing
O Volume Testing
O System Testing

Question No. 20
Volume Testing involves which of the following?
O Generating test data for different sizes
O Increasing virtual users gradually
O Running the test for extended period of time to detect points of failure
All of these
O None of these

Question No. 21
A performance test consists of
O One or more business transactions
O No. of Users which perform the transaction
Time taken by the user to perform the transaction
Duration for which the transactions are performed.
All of these

Question No. 22
Stress Testing is
O Knowing application performance when it is loaded with maximum number of users that is
expected to support
O Characterizing Scalability of the application under test
Running the test for extended period of time and increased user load to detect points of failures
Checking for Performance Sensitivity

Question No. 23
The Right Sequence of Performance Testing is
O Planning Load Test, Creating Script, Creating Scenarios, Execution, Analysis
Analysis, Planning Load Test, Creating Scenarios, Creating Script, Execution
Planning Load Test, Creating Scenarios, Creating Script, Execution, Analysis -????
O Analysis, Planning Load Test, Creating Script, Creating Scenarios, Execution
O Analysis, Creating Script, Planning Load Test, Creati'y Scenarios, Execution

Question No. 24
Running a system at average concurrent user load for prolonged period of time to determine any
memory leak is called
O Spike Test
O Stress Test
O Endurance Test
All of these
Stress Test and Endurance Test

Question No. 25
http://www.aliensbrain.com/tag/268/technology/question?page=3076
A Nationalized Bank Processes 10,000 Withdrawals per day and 5,000 Deposits per day. If it allows
5 hours transactions processing per day. What is the throughput of the system?
© 2000 tph
O 5000 tph
15,000 tph
3000 tph
None of these

Question No. 26
The Clients requirement for all the performance counters will be prescribed in
O Test Plan
Testing Scenario
Service Agreement
Service Level Agreement
Secured Licensed Agreement

Question No. 27
Any performance testing tools produces which of the following entities?
Test Scripts
Test Scenarios
Test Results
Test Data

Question No. 28
What is a Think Time?
O Time taken by the user to startup the Server
O Time that user takes between two transactions
O Time taken by a user to do the second iteration of the same scenario.
. All of these
O None of these

Question No. 30
What are the measures of Throughput?
Transactions per Second
Error per second
Bytes per second
Both A and C
Question No. 1
One of your scripts has a transaction called Save Batch that commits many lines of financial
accounting transactions to the database. Your Client Manager tells you that the system should be
able to support 50 users hitting the transaction simultaneously into the system. Referring to the
above scenario, which Load Runner feature tests to see when the system can meet this
performance criterion?
Iteration Pacing
Rendezvous Points
Action blocks
Check points
The Wait function

Question No. 2
You would like to associate individual V-users to given transaction response times. In order to do
this, you must out the V-user number and its group to the output log using the correct C Utility
function. Referring to the scenario above, which one of the following Utility functions do you use
to achieve this objective?
lr_user_data_point
Ir_get_host_name
lr_get_attrib_string
Lr_whoami
None of the options

Question No.4
Which one of the following is not a protocol of Load Runner?
O Java- RMI
O CORBA- Java
Media Player(MMS)
O Real Player
O HDAP

Question No. 5
Identify the correct Loadrunner correlation functions.
web_save_reg_paramo
web_save_param()
web_reg_save_param()
Ir_save_param

Question No. 6
Which one of the following is not a Load Runner Function?
web_set_max_html_param_len
web_reg_save_param_array
web_get_int_property
web_set_timeout
web_reg_find

Question No. 7
You have two fields (one for social security and one for employee number). Your task is to set up
parameterization so that each social security number is only used once per test run and that it
correlates to the employee number
Referring to the scenario above, what settings do you use
O Social Security: Unique Each Occurrence
Employee Number: Unique Each Occurrence
Social Security: Specific Each Occurrence
Employee Number: "Same line as Social Security"
O Social Security: Sequential Each Iteration
Employee Number: Sequential

O Social Security: UniquelOnce


Employee Number: "Same line as Social Security"
O Social Security: Unique Once
Employee Number: UniquelOnce

Question No. 8
A batch program in SQL Server 6.5 takes 3 days to complete, even though management would like
it to finish in 3 hours. What is a very likely cause of poor performance?
O Bad index management
Network delay
O Use of SQL Server 6.5 instead of 7.0
O Limitations of Microsoft technology

Question No. 9
What is the common function used to display messages in the Replay Log of Loadrunner?
O Ir_eval_string
Olr_output_string
O Ir_display_message
Ir_output_message

Question No. 10
Hits per Second
- Throughput
Transaction Response Time`
- Virtual User Status
The above is a list of which type of items??
O Performance counters
Server-side monitors
O Client-side monitors
Window Resource Counters
O SQL monitors data elements
Hits per seconds:- refer to the number of HTTP requests sent by the users to the web
servers in a seconds. Throughput:- define the number of transaction per seconds. Think
Time:- it's a waiting time between transaction, or users waiting time.

1. During test execution, the datapool framework is used to vary


A. user names and passwords
B. data in a transaction flow
C. the contents in responses
D. request header variables
Answer: B
2. What documents all artifacts that define the system, users, and tasks associated with the target
workload
for the performance testing effort?
A. datapool document
B. product manual
C. test schedule guide
D. workload analysis document
Answer: D
3. Which type of performance test determines the conditions under which a system fails and how
it fails?
A. load
B. longevity and endurance
C. stress
D. volume
Answer:
4. What must you do if you want to record tests on a web browser other than Microsoft Internet
Explorer?
A. download and install the RPT IE plug-in for the supported web browser from developerWorks
B. select Enable Environments for Testing?from the Configure menu and add the web browser as
described
in the product documentation
C. manually configure the browser to communicate to the server(s) via a SOCKS proxy as described
in the
product documentation
D. manually configure the web browser to use the Microsoft JVM as described in the product
Documentation
Answer: C
5. You have an RPT test that does not indicate the correct number of pages in the actual web-
based
application. An application goes through cight distinct pages but the RPT recorded test only shows
six
pages.
How can you correct this?
A. change the Performance Test Generation - Prolocol preferences and re-generate the test from
the
recorded session (recmodel file)
B. change the HTTP Recorder Options and re-record the test
C. manually add the missing pages or remove the extra/redundant pages from the test editor
D. re-record the test and, while recording, click on New Page?from the Recorder Control tab where
the
pages were skipped
Answer: A
6. What is one way to modify or enhance a test programmatically?
A add Java custom code classes to a test as well as directly to the test code (java)
B. add Java custom code classes to a test, but not directly to the test code (*.java)
C. directly modify the test code ("java) by adding custom code dasses to the appropriate files
D. modify the default test superdass with custom code
Answer: B
7. How can you create a copy of an RPT test?
A. right-click the test, select Copy from the menu, enter a new name for the copied test
B. Select the test, from the File menu, click? Save As?, enter a new name for the copied test
C. switch to the Navigator view; select the source Java file (*.rec) of the test from the File menu,
click ? Save As? enter a new name for the copied test
D. from the Navigator view, right-click the recmodel file, select Generate Test, choose
Performance Test
Generator, enter a new name for the copied test
Answer:D
8. What must you do if you want to reuse RPT tests on a server other than the one on which they
were
recorded?
A use the Test Search feature to find and replace the server host name(s) in each RPT test
B. select each page for each RPT test in the test editor and change the Target host to the new
server host
name
C. create a new location and deployment for the new server host name(s) and add the RPT tests as
artifacts for the deployment
D. re-record the tests in the new environment because it is not possible to reuse a recorded test
on different
servers
Answer: A
9. What must you do to change the connection security in an existing lest from SSL to non-sec
secure
(assuming the servers are reconfigured for this)?
A. use the Test Search feature to find and replace each connection string from http?lo https?
B.create a new location for each server using an SSL connection and deselect the Enable SSL
checkbox in
the server details window
C. go to a performance test schedule and deselect the Enable SSL checkbox in the Schedule
Element
Details connection settings
D. go to the test editor and deselect the Enable SSL checkbox in the Connection Details
Authentication and
Security pane
Answer:D
ce
10. What fastest way to debug a test by validating data returned from a server?
A. run the test and then, in the Execution History, view the page in the Protocol Data ? Browser
tab and
manually verify the displayed value
B. enable a content verification point (VP) for the value on the page where it is displayed
C. create a reference from the returned value and then validate the reference against a datapool
using a
condition test element
D.create a reference from the returned value and then validate the reference against a datapool
using an
if-then?statement in custom code
Answer: B
11. What is one way to debug an RPT test by logging test values (server data, datapool selections,
etc.)?
A. add Log Entry test elements to the test in the test editor
B. use the Log Entry script support function while recording the test
C. add the test execution services reportMessage() method to the test source code
D. add custom code classes to the test using the reportMessage() method
Answer:D
12. You manipulate the execution of steps in a test by repeating sequences of a transaction.
How can you add further control?
A. add a Loop test element and then Events and Dependencies in the test suite
B. add door for?loop statements to the test source code and then use either the breakLoop() or
the
ContinueLoop() method
C. add a Loop lest element and then custom code classes with either the breakLoop() or the
continueLoop()
method
D. add a Loop test element and then Loop Control test elements in the test editor
Answer: C
13. How can you pass values
one simulated user to another during a test?
A.create a global variable for each value in the test schedule and add references to both store and
retrieve
the test values in the global variables
B. add custom code classes to the test using the IDataArea put() and gel() methods to both store
and
retrieve the test values
C. create a shared class for all tests and then use the IDalaArea pul() and get() methods to both
store and
retrieve the test values
D. add custom code classes to the test using any Java file 10 method to write and read the values
to a
persistent file
Answer: B
14. What is the first step in workload definition?
A clarify and document the goals of the performance-testing project
B. examine the production environment being tested
C. identify test variables and user groups
D. record a performance test to verify that the application is testable
Answer: A
15. You want to use test data in RPT custom code that comes from a server (for example, lo
validate a
response or to calculate a running total).
What must you do to accomplish this?
A.create a datapool value that gets its value from a test reference for the server value, then add
this to the
custom code argument list
B. create a reference for the server value at the beginning of the test, then add this to the custom
code
argument list
C. create a reference for the server value anywhere before/above the point in the test where the
value is
retumed, then add this to the custom code argument list
D. create a reference for the server value at the footer of the test, then add this to the custom
code
argument list
Answer: C
16. How can you verify that activity is being recorded during a test capture session?
A. view the Protocol Data Response Content tab and verify that page data are displayed
B. view the test editor and verify that pages are being created for the test
lepke agi.com
C. pause the recording and view the test Java source file to verify that there are transaction calls in
the test
D. view the Recorder Control view and verify that the Kbytes recorded?is not zero and
continuously
updated
Answer: D
17. Which is a challenge of test data management?
A understanding the relationship of interrelated data needed for datapools and correlation
B. using the datapool import wizard when managing large amounts of data
C. developing representative and realistic tests, while minimizing the overhead introduced by the
test tool
D. managing the datapool data for all the iterations of the virtual testers across all agents
Answer: C
18. What is the purpose of test data management for load testing?
A. lo ensure representative and realistic tests where metrics can be gathered accurately
B. to ensure that data are not retrieved from the various cache lines in the system under test
C. to ensure that tests play back correctly after recording
COM
D. to use different user names and passwords for each iteration
Answer: A
19. Session IDs being used and maintained throughout a transaction is an example of
A. a datapool with unique user names and passwords only
B. a datapool with unique user names, passwords, and sessions IDs
C. a combination of datapooling and correlation techniques
D. built-in auto correlation features
Answer: D
20. What is the purpose of correlation techniques during the enhancement phase of a test?
A. to ensure that the same items that were recorded are not used during the playback
B. to ensure that dynamic responses can be accommodated in subsequent requests
C. to ensure
that dynamic and unique session IDs are used for each virtual user
D. to ensure that dynamic requests are datapooled to provide different input values
Answer: B
21. The Test Data table for a page is used to
A view the locations of test elements
B.create substitutions for datapools
C. validate the URL encoded substitutions
D. view candidates for substitution
Answer:D
22. By default, an element that has been substituted with a datapool variable appears in a test as
A. light blue text on a dark blue background
B. dark blue text on a light blue background
C. white text on a dark green background
D. dark pink text on a pink background
Answer: C
23. Generally, applications that use client side logic require the relevant subsequent responses to
be
correlated with a
A. field reference
B. reference
C. variable from a datapool
D. custom code class
Answer:D
24. What is the goal of the workload analysis?
A. to clarify the objective of the workload interval
aking.com
B. lo ensure that tests performed represent real user activity
C. to gather statistics about the system under test
D. to identify
the critical measurement points for each test
Answer: B
25. Once a reference has been established, what is used to most efficiently find all subsequent
potential
substitutions?
A. the Search and Replace tool
B. the Test Search tool searching all Requests
C. the "find more" and "go to functions from the right-click submenu on a candidate
D. the Test Data preview pane under the test elements
Answer: B
26. What does each virtual user use during every loop when the open mode of a datapool is set to
private
with no wrap?(.e. the wrap check box is unchecked)?
A. a unique row from the datapool because the test will not retrieve restart from the beginning of
the
datapool when the end of the datapool is reached
B. a private view of the datapool with unique rows apportioned
C. a private view of a datapool with values that can be reused by other virtual users
D. a private view of a datapool assigned per agent machine
Answer: C
27. A customer recently purchased RPT. The playback tests appear to have passed in the Test
Execution
YUQOQUN
History. However, upon closer inspection using the Protocol Data view, some pages following the
datapool
substitution failed.
What is the most likely cause of this problem?
A. The datapool was opened in the wrong shared mode.
B. The datapool variable was substituted with the incorrect test element.
C. The datapool was not checked with a verification point.
D. The datapool value was substituted, but not fully correlated.
Answer:D
28. if the automatic data correlation for execution is set to efficiency and the datapools are open
in private
Pret
mode, lest execution will be
A. faster, but dalapool values will not be unique for each virtual tester
B. faster, and datapool values will be unique for each virtual tester
C. slower, but datapool access will be fast because of private views
D. slower because the correlated values are substituted from the nearest previous reference
Answer: A

what are the measures of throughput Transaction per second


adding more nodes to a system is which type scalability Horizontal or scale
out
an existing company foresees increase in daily transaction volume and adds one
more database server to existing on this leads to which type of testing Volume
Testing

what is the name of inbuilt monitoring tool of windows PerfMon

relationship between throughput and response time inversely proportional

load testing for an application can be done manually True


the below graph belongs to which of the following
what is response time in performance testing
network bandwidth is a measure of – THroughput
unix command used for monitoring the average transfer rates SAR & ISOTAT
which of the following is not a non functional testing tool
which one of the following code samples would you use if you want to declare an array to store ID
numbers of sales orders
A load testing tool consumes 2MB per virtual user. In a benchmark with 1000 virtual users how
many machines would you require. Assume 50MB for OS and other utilities (per machine). - 10
machines of 256 MB
the concept used for handling dynamic data content in a test script is referred as Correlation
during the analysis of a scenario you realize that the hits per second becomes flat as users
continue to increase - A web server connection problem
what inputs are required for planning performance testing Workload Information, Application
Details, Performance Monitoring Framework
Which of the following is a non functional type of testing – all
when a new performance testing tool is purchased it should be used first by Everyone who may
eventually have some use for the tool
vertical scalability o adding more resources (CPU/RAM/DISK)
what are network sniffers
Which of the following type of test checks for memory leakage and other problems that may occur
with prolonged erection Endurance Testing
load testing tools All
performance testing is relevant only for Client-server
tpm transactions per minute is a measure of Throughput
A simple call to the lrd_msg function gives you the following compile error
what is the common function used to display messages in the replay log of loadrunner .
lr_output_message

https://www.guru99.com/loadrunner-interview-questions.html
http://www.aliensbrain.com/tag/461/architecture/question?page=64
Which term refers to a set of actions or user steps performed within an application to
accomplish a business goal?
Business process
what information does netstat give
All
Q When developing a script why is it necessary to iterate the script multiple times

Q: Running a system at average concurrent user load for prolonged period of time to determine any
memory leak is called
Q: which attribute of an html form tells the browser how to encode the information?
Method
Why do we need load tests?
Q: which of the following is not true about performance testing
Q: A 3 tier application takes too long to satisfy the end user requirements. As a performance
consultant what will be your action
Sugges for pwerful
Q: standard deviation of response time means average response time
Q: The initial run of a performance test to see if your application can perform its operations under a
normal load is called capacity test
Q: adding a cpu to a single node is which type of scalability
Vertical scalability
The selection of performance test cases requires
asynchronous communication will help in
What inputs are required for planning performance testing
a reliable system will be one the following
Is unlikely to cause a failure
which performance test objective is met when determining if the system is stable enoughto go in
production?
Acceptance

what are the measures of throughput

Q An end user of an online car dealer is facing poor response,


There is a delay either at network or client or PC both
Q volume testing checks on which of the following
All
how does clustering in improving the performance
Q according to little's law average no in a system is equal to
Average transaction time * Average response time
network bandwidth is a measure of
Throughput
Load testing on application can be done manually True
the initial run of a performance test to see if your application can perform its operations under a
normal load
Smoke test
when a new performance testing tool is purchased it should be used first by
Everyone who may eventually have some use for the tool
the graph below belongs to which of the following
which of the following is not a non-functional testing tool Loadrunner
what inputs are required for planning performance testing
which one of the following code samples would you use to declare an array to store the ID number
of sales order
int salesid[30]
performance testing is relevant only for
client-server applications
A load testing tool consumes 2MB per virtual user. In a benchmark with 1000 virtual users
how many machines would you require. Assume 50MB for OS and other utilities (per
machine).
10 machines of 256 MB
what would best describe think time from the following options
what would best describe thinktime from the following options

tpm transactions per minute is a measure of Throughput


if no performance tool is available for testing your application the best approach is to

adding more nodes to a system is which type scalability


Horizontal or scale out
Q vertical scalability means adding more CPU
which of the following of test checks for memory leakage and other problems that may occur
with prolonged execution
Endurance testing
an application is planned to roll out in all major cities of all the continents. this application is
mainly used for downloading Volume Testing
what technology used in performance testing tools – virtual user tech

what are the measure of throughput

identify correct loadrunner correlation function web_reg_save_param

which tool is useful in the process of manual correlation Wdiff


what is the common function used to display messages in the replay log of loadrunner
lr_output_messag

which one of the following is not a parameter type or parameter setting in VuGens
parameterization functionality Advance row each iteration
in schedule builder what will happen if duration is set to five minutes the scenario will
continuously or five minutes

An internet trading system with 64 Kbps lines to end users has been web
enabled. The average web page size is 40 KB. Users are complaining
about response times exceeding 2 seconds. What would you recommend
as an immediate possibility to improve performance?
1. Tuning of DBMS
2. Tuning of web server
3. Ask users to work at nights
4. Use of a web booster such as Citrix or NetScaler

Question No. 6
A) Transaction time helps isolate performance problems.
B) Transactions affect different systems components and tiers
C) `
All the three statements are false
Only A is true
All the three statements are true
Only B and C are true
Only A and C are true

How does clustering in improving the performance?


A) Improves Availability - Failover
B) Provide Load Balancing Mechanism
C) Help in virtualization
D) Improves Software Utilization
O Both B and C
Both A and C
O Both A and B
Both C and D
OD alone

Ir_start_transaction("deposit"); If you have just created the LoadRunner transaction shown in


the sample code above, and you click Insert End Transaction, what is the correct default?
Olr_end_transaction("deposit", LR_STOP);
Olr_end_transaction("deposit", LR_END);
Olr_end_transaction("deposit", LR_PASS);
Ir_end_transaction("deposit", LR_AUTO);
O Ir_end_transaction("deposit", LR_FAIL);

Which performance test objective is met when determining if the system is stable enough to go
into production?
O reliability
regression
acceptance
O capacity planning
O product evaluation

if an application is running slow which of the following is true

1. You can always improve performance by using more CPUs


2. You can always improve performance by using more RAM
3. You can always improve performance by using more disks
4. None of the above

adding a cpu to a single node is which type of scalability

Horizontal scaling or Sclae UP

A load tester wants to test a particular application for 500 user. he has identified that their
required usernames and password must be parameterized. so how many username and
password has to be present in the data file for this particular scenario?
500 usernames and 500 password

if an application is running slow which of the following is true - CPU

why we need to do load tests?

You might also like