Google News
logo
JMeter - Quiz(MCQ)

JMeter : Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.

JMeter can be used as a unit-test tool for JDBC database connections, FTP, LDAP, web services, JMS, HTTP, generic TCP connections and OS-native processes.

A)
Slave
B)
Target
C)
Master
D)
All of the above

Correct Answer :   All of the above

A)
Ajax
B)
Java
C)
Apache
D)
SQL

Correct Answer :   Apache


Explanation : This graphical application is 100% Java-based and open source, also known as Apache JMeter.

A)
Testing Web Application
B)
Executing Web Application
C)
Searching Web Application
D)
None of the above

Correct Answer :   Testing Web Application


Explanation : The Apache JMeter is an open-source, purely Java-based software. The software is used to perform performance testing, functional testing, and load testing of web applications.

A)
Websites
B)
Databases(JDBC)
C)
Web services both - REST and SOAP
D)
All of the above

Correct Answer :   All of the above

A)
\\return\code='1'
B)
/retunr/message='Success ' '
C)
//retunr/message='Success'
D)
//retunr/message="Success"

Correct Answer :   //retunr/message='Success'

A)
Web
B)
JAR
C)
LDAP
D)
Desktop

Correct Answer :   Desktop

7 .
Testing ____ applications are the primary use of JMeter, but other uses are functional testing, JDBC database connections, Web services, generic TCP connections, and OS native processes as well.
A)
Web
B)
FTP
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explaination : Testing Web applications or FTP applications is the primary use of JMeter, but other uses are functional testing, JDBC database connections, Web services, generic TCP connections, and OS native processes as well.

8 .
The JMeter performance testing tool offers various test activities, such as ____, Regression, and Functional testing, in order to determine your web server's performance metrics accurately.
A)
Load
B)
Stress
C)
Performance
D)
All of the above

Correct Answer :   All of the above


Explaination : The JMeter performance testing tool offers various test activities, such as Performance, Load, Stress, Regression, and Functional testing, in order to determine your web server's performance metrics accurately.

9 .
Tests of software performance evaluate the application's performance under expected or higher loads as a ____ test.
A)
Functional
B)
Non-functional
C)
Semi-functional
D)
None of the above

Correct Answer :   Non-functional


Explaination : Tests of software performance evaluate the application's performance under expected or higher loads as a non-functional test.

A)
User-friendly GUI
B)
Open source application
C)
Support various testing approaches
D)
All of the above

Correct Answer :   All of the above


Explanation : The features of JMeter are :

* Open source application
* User-friendly GUI
* Support various testing approaches

A)
To generate random data
B)
To manage user sessions
C)
To simulate real user behavior
D)
To manage HTTP requests and responses

Correct Answer :   To manage user sessions


Explanation : The HTTP Cookie Manager in JMeter is used to manage user sessions by storing and sending cookies in HTTP requests and responses.

A)
To define the test plan
B)
To define the target system
C)
To define the number of users and the duration of the test
D)
To define the type of test to be performed

Correct Answer :   To define the number of users and the duration of the test


Explanation : The Thread Group in JMeter is used to define the number of virtual users and the duration of the test.

A)
Bean Scripting Framework
B)
Bit Scripting Framework
C)
Bean Server Framework
D)
Bean Searching Framework

Correct Answer :   Bean Scripting Framework

A)
Linux
B)
REACT OS
C)
Windows
D)
MAC OS X

Correct Answer :   REACT OS

A)
FTP Request Defaults
B)
HTTP Request Defaults
C)
FTP Cookie Manager
D)
HTTP Cookie Manager

Correct Answer :   FTP Cookie Manager

16 .
Different performance attributes of the system are measured during performance testing, such as ____, scalability, and stability.
A)
Reliability
B)
Resource Use
C)
Response time (speed)
D)
All of the above

Correct Answer :   All of the above


Explaination : Different performance attributes of the system are measured during performance testing, such as response time (speed), reliability, resource use, scalability, and stability.

A)
It is important to test the final software product for speed, scalability, and stability under a variety of load conditions before launching it into the market.
B)
It's likely to cause slow processing and poor usability if the product goes live without performing performance testing, which can negatively affect the sales goal.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : Performance Testing is needed because :

* It is important to test the final software product for speed, scalability, and stability under a variety of load conditions before launching it into the market.
* It's likely to cause slow processing and poor usability if the product goes live without performing performance testing, which can negatively affect the sales goal.

A)
Fatal
B)
Crucial
C)
Former
D)
Fatigue

Correct Answer :   Fatigue


Explanation : Stress Testing is also known as Fatigue Testing.

A)
Load
B)
Stress
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : The types of Performance Testing are :

* Load
* Stress

A)
XPath Assertion
B)
XML Assertion
C)
XML Schema Assertion
D)
None of the above

Correct Answer :   XPath Assertion

A)
Add view results Tree to Thread Group
B)
Add View Results in Table to Thread Group
C)
Add View Results Table to HTTP Test Script Recorder
D)
Add View Results Tree to HTTP Test Script Recorder

Correct Answer :   Add View Results Tree to HTTP Test Script Recorder

A)
SOAP/REST
B)
WPA/WPA2
C)
SMTP/POP3
D)
AMQP/MQTT

Correct Answer :   WPA/WPA2

23 .
During ____ testing, different systems can be compared or a single system's capabilities can be accurately measured in controlled lab conditions.
A)
Load
B)
Data
C)
Stress
D)
Reference

Correct Answer :   Load


Explaination : During load testing, different systems can be compared or a single system's capabilities can be accurately measured in controlled lab conditions.

A)
Timers
B)
Listeners
C)
Assertions
D)
All of the above

Correct Answer :   All of the above


Explanation : Assertions, listeners, timers, logic controllers, and configuration elements make up a test plan.

A)
To validate the response time
B)
To validate the response code
C)
To validate the response data
D)
To validate the response message

Correct Answer :   To validate the response data


Explanation : The Response Assertion in JMeter is used to validate the response data by checking if a certain string or regular expression is present in the response.

A)
Timer
B)
Sampler
C)
Post-processor
D)
Pre-processor

Correct Answer :   Post-processor


Explanation : The Post-processor element in JMeter is used to extract data from the response by using regular expressions or other methods.

A)
Distributed Testing
B)
Load Testing
C)
Web App Testing
D)
Functional Testing

Correct Answer :   Distributed Testing

A)
HTTP Request
B)
Monitor Results
C)
Debug Sampler
D)
MongoDB Script

Correct Answer :   Monitor Results

A)
Constant Timer
B)
Uniform Random Timer
C)
Gaussian Random Timer
D)
Continue Timer

Correct Answer :   Continue Timer

A)
Counter
B)
Random Variable
C)
CSV Data Set Config
D)
Simple Config Element

Correct Answer :   CSV Data Set Config

A)
Size
B)
XML
C)
Response
D)
Duration

Correct Answer :   Duration

A)
200
B)
302
C)
404
D)
502

Correct Answer :   404

A)
Test Plan
B)
Controllers
C)
Thread Group
D)
All of the above

Correct Answer :   All of the above


Explanation : Major components of JMeter are :

* Test Plan
* Thread Group
* Controllers, etc

34 .
Test plans include everything that is going to be executed in a sequence that follows the sequence outlined in the plan from _______.
A)
Top to bottom
B)
Left to right
C)
Right to left
D)
Bottom to top

Correct Answer :   Top to bottom


Explaination : Test plans include everything that is going to be executed in a sequence that follows the sequence outlined in the plan from top to bottom.

A)
To generate random data
B)
To execute custom code during the test
C)
To preprocess data before sending a request
D)
To postprocess data after receiving a response

Correct Answer :   To execute custom code during the test


Explanation : The BeanShell Processor in JMeter is used to execute custom code during the test by using the BeanShell scripting language.

A)
Controller
B)
Listener
C)
Sampler
D)
Configuration Element

Correct Answer :   Controller


Explanation : The Controller element in JMeter is used to distribute the load across multiple servers by using the Distributed Testing feature.

A)
.JMX files are used to store JMeter files and test plans.
B)
Parts of the test plan can also be saved as different selections.
C)
In order to run the entire test plan, it is necessary to save the test plan first.
D)
All of the above

Correct Answer :   All of the above


Explanation : Important points regarding a test plan is/are :
  
* .JMX files are used to store JMeter files and test plans.
* Parts of the test plan can also be saved as different selections.
* In order to run the entire test plan, it is necessary to save the test plan first.

A)
Decide how to test the dataset.
B)
Decide how many threads to run.
C)
Decide how long your ramp-up period will be.
D)
Tests should be run a certain number of times.

Correct Answer :   Decide how to test the dataset.


Explanation : A thread group does not provide the control to decide how to test the dataset.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2


Explanation : Controllers can be divided into 2 categories.

A)
Timer
B)
Listener
C)
Sampler
D)
Controller

Correct Answer :   Listener


Explanation : The Listener element in JMeter is used to monitor the test results in real-time by displaying the test metrics and graphs.

A)
To define a test plan
B)
To define a test suite
C)
To define a reusable test fragment
D)
To define a test case

Correct Answer :   To define a reusable test fragment


Explanation : The Test Fragment in JMeter is used to define a reusable test fragment that can be used in multiple test plans or test cases. It allows you to define a group of test elements as a single entity that can be easily included in other tests without duplicating code.

42 .
You're carrying out a load test. Due to the session timeout, all samples fail after the login request. What is your option for dealing with this situation?
A)
Add Cookie Manager
B)
Add Header Manager
C)
Add Footer Manager
D)
Add Cache Manager

Correct Answer :   Add Cache Manager

A)
Custom Writer
B)
Data Manipulator
C)
Flexible File Writer
D)
Advanced Data Writer

Correct Answer :   Flexible File Writer

A)
While Controller
B)
Loop Controller
C)
ForEach Controller
D)
All of the above

Correct Answer :   All of the above

A)
Server
B)
Performance
C)
Search
D)
Peer-to-peer

Correct Answer :   Performance


Explanation : Clients are presented with various forms of server responses during performance testing.

A)
Correlation
B)
Post-processing
C)
Regular Expression Tester
D)
Regular Expression Extractor

Correct Answer :   Correlation

A)
JQuery Extractor
B)
XPath Extractor
C)
CSS Selector/JQuery Extractor
D)
Regular Expression Extractor

Correct Answer :   Regular Expression Extractor

A)
Local file contents
B)
File name to retrieve
C)
Credentials of FTP account User
D)
Domain name / IP address of FTP server

Correct Answer :   Local file contents

A)
Graph Results
B)
Spline Visualizer
C)
Assertion Results
D)
All of the above

Correct Answer :   All of the above


Explanation : The following are the listeners :

* Graph Results
* Spline Visualizer
* Assertion Results

A)
C++ Cache Manager
B)
CSS Cache Manager
C)
HTTP Cache Manager
D)
All of the above

Correct Answer :   HTTP Cache Manager


Explanation : Most commonly used configuration elements are HTTP Cache Manager.

A)
Simple Object Access Protocol (SOAP)
B)
Representational State Transfer (REST)
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : There are two broad categories of web services :

* Simple Object Access Protocol (SOAP)
* Representational State Transfer (REST)

52 .
Using the Listener element, you can view a visual representation of the data you received from your ____ request.
A)
JMS
B)
FTP
C)
Web
D)
Database

Correct Answer :   FTP


Explaination : Using the Listener element, you can view a visual representation of the data you received from your FTP request.

A)
Line graph
B)
Bar graph
C)
Histogram
D)
Scatter diagram

Correct Answer :   Line graph

A)
Report backtest results
B)
Set the criteria for a test to pass
C)
Allows simultaneous testing scenarios
D)
None of the above

Correct Answer :   Set the criteria for a test to pass

A)
JDBC
B)
JSR223
C)
Beanshell
D)
All of the above

Correct Answer :   All of the above


Explanation : The following are the pre-processor elements :

* JDBC
* JSR223
* Beanshell

A)
Test Configuration
B)
Test Conformation
C)
Scenario Configuration
D)
Scheduler Configuration

Correct Answer :   Scheduler Configuration