0% found this document useful (0 votes)
10 views

Testing

The document consists of a series of questions and answers related to Selenium, a web application testing framework. It covers various aspects such as components of Selenium, its functionalities, supported programming languages, and testing methodologies. Additionally, it addresses manual testing concepts and the role of different testing tools and techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Testing

The document consists of a series of questions and answers related to Selenium, a web application testing framework. It covers various aspects such as components of Selenium, its functionalities, supported programming languages, and testing methodologies. Additionally, it addresses manual testing concepts and the role of different testing tools and techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 31

1.What is Selenium?

a) A testing framework
b) A web server
c) A programming language

d) A database management system

Answer: a

2.Which of the following is NOT a part of the Selenium suite?


a) Selenium IDE
b) Selenium WebDriver
c) Selenium Eclipse
d) Selenium Grid

Answer: c

3. What is the purpose of the Selenium WebDriver?


a) Automating browser actions
b) For creating databases
c) Developing desktop applications
d) Encrypting website data

Answer: a

4. Which programming languages does Selenium support?


a) HTML, CSS, PHP, Go
b) Python, Java, JavaScript, C#, Ruby
c) Visual Basic, Fortran, Perl
d) None of the mentioned

Answer: b

5. 5. What is Selenium Grid primarily used for?


a) Only for UI design
b) Debugging network connections
c) Running tests in a single browser
d) Running tests on different machines and browsers simultaneously

Answer: d

6. Which Selenium tool would you use to test a web page without writing code?
a) Selenium IDE
b) Selenium WebDriver
c) Selenium API
d) Selenium Grid

Answer: a

7. How do you handle cookies in Selenium?


a) By using add Cookies() method
b) Through browser options only
c) By the manage().getCookies() function
d) Cookies are not supported in Selenium

Answer: c
8. Which method in Selenium is used to locate a web element by its ID?
a) getElementByAttribute
b) findElementById
c) findElementByTag
d) findElementByClass

Answer: b

9. 9. How do you handle pop-ups in Selenium?


a) By using the Alert interface
b) By the handlePopUp() method
c) By findElementByPopup
d) Using BrowserHandle()

Answer: a

10. 10. What is the purpose of the findElement() method in Selenium?


a) To close the browser
b) To capture browser screenshots
c) To open a new browser window
d) To find and interact with web elements

Answer: d

11. 11. Which method is used to send text to a text box in Selenium?
a) driver.typeText()
b) driver.setText()
c) driver.sendKeys()
d) driver.enterText()

Answer: c

12. What is the purpose of driver.manage().timeouts().implicitlyWait()?


a) It sets the default timeout for all WebDriver commands
b) It waits for a specified element to appear
c) It waits for an element to be clickable
d) It waits for the page to load

Answer: a

13. Which Selenium method is used to take a screenshot of a test?


a) saveScreenshot()
b) getScreenshot()
c) captureScreenshot()
d) takeScreen()

Answer: b

14. How do you identify elements by their class name in Selenium?


a) findElementByClass()
b) findElement(By.className())
c) getElementClass()
d) findElementByTag()

Answer: b

15. What is TestNG in the context of Selenium?


a) A graphic design tool
b) A database integration tool
c) A test framework for Selenium
d) A browser debugger

Answer: c

16. Which of the following actions can Selenium perform?


a) Enter data in forms
b) Click links and buttons
c) Navigate between pages
d) All of the mentioned

Answer: d

17. How can you check if an element is present on the page in Selenium?
a) element.isDisplayed()
b) driver.findElement()
c) driver.isElementPresent()
d) element.isPresent()

Answer: a

18. What is the default timeout for implicitlyWait() in Selenium?


a) 30 seconds
b) 10 seconds
c) 60 seconds
d) 100 seconds

Answer: b

19. Which command is used to get the URL of the current page in Selenium?
a) driver.getPageURL()
b) driver.currentURL()
c) driver.getCurrentUrl()
d) driver.getURL()

Answer: c

20. What is Manual Testing?


a) Testing performed by writing scripts
b) Testing performed using automated tools
c) Testing performed manually by a human tester
d) Testing performed by a robot

Answer: c

21. What is a Test Case?


a) A tool used for debugging
b) A specific condition to validate an application
c) A template for designing software
d) A code snippet for automation

Answer: b

22. Which of the following is a type of Manual Testing?


a) Load Testing
b) API Testing
c) Unit Testing
d) Exploratory Testing
Answer: d

23. What is the first step in the Manual Testing process?


a) Execute test cases
b) Requirement analysis
c) Retest the software
d) Write a defect report

Answer: b

24. What is the primary role of a Manual Tester?


a) Identifying and reporting defects
b) Writing and executing code
c) Automating the testing process
d) Optimizing system hardware
Answer: a

25. What is a Test Environment?


a) The setup required to execute test cases
b) The production environment
c) A document specifying the test plan
d) The debug log of the application
Answer: a

26. What is Smoke Testing?


a) Testing system performance
b) Checking database consistency
c) Testing critical functionalities after a build
d) Detailed functional testing

Answer: c

27. What is a Defect?


a) A mismatch between actual and expected results
b) A failure in hardware components
c) An enhancement request
d) A line of code causing issues
Answer: a

28. Which tool is primarily used in Manual Testing?


a) TestNG
b) Selenium
c) JIRA
d) LoadRunner
Answer: c

29. What is a Test Suite?


a) A testing tool
b) A collection of test cases
c) A defect tracking tool
d) A single test case
Answer: b

30. What is Exploratory Testing?


a) A simultaneous test design and execution process
b) A structured form of testing
c) Automated testing for new features
d) Testing with predefined test cases
Answer: a

31. What is a Defect Priority?


a) The time taken to fix the defect
b) The team assigned to fix the defect
c) The cause of the defect
d) The criticality of fixing a defect
Answer: d

32. What is the main advantage of Manual Testing over Automation Testing?
a) Elimination of human error
b) Ability to test non-scripted scenarios
c) Cost efficiency for large-scale tests
d) Faster execution of tests

Answer: b

33. What is Retesting in Manual Testing?


a) Testing unrelated modules
b) Testing system performance under load
c) Testing to ensure a fixed defect is resolved
d) Testing previously passed test cases
Answer: c

34. What is a Test Scenario?


a) A debugging tool
b) A detailed test case
c) A tool for automation
d) A high-level description of what to test
Answer: d

35. Which of the following is NOT a type of Manual Testing?


a) Code Coverage Testing
b) Integration Testing
c) Security Testing
d) Exploratory Testing

Answer: a

36. What is Test Execution?


a) Debugging the code
b) Running test cases and logging results
c) Designing test cases
d) Writing automation scripts
Answer: b

37. Which phase does Manual Testing occur in the SDLC?


a) Deployment
b) Requirement gathering
c) Coding
d) Testing
Answer: d

38. Which of the following is true about Alpha Testing?


a) It is conducted in the production environment
b) It focuses only on non-functional aspects
c) It is done by developers or testers in a controlled setting
d) It is performed by end-users

Answer: c

39. What is Positive Testing?


a) Testing the application with valid inputs
b) Testing how the application handles errors
c) Testing without documentation
d) Testing invalid scenarios
Answer: a

40. What is the purpose of Test Management Tools in Manual Testing?


a) To generate application logs
b) To manage and track testing activities
c) To automate test cases
d) To replace testers
Answer: b

41. What is system testing?


a) Testing focused on code quality
b) Testing the integration of hardware and software as a complete system
c) Testing done by developers only
d) Testing of individual software modules
Answer: b

42. What is the primary purpose of Selenium in software testing?

a) To automate mobile application testing

b) To automate web application testing

c) To enhance software development speed

d) To improve database management

Answer: b

43.Which of the following is NOT a component of Selenium?

a) Selenium IDE

b) Selenium Grid

c) Selenium RC

d) Selenium Server

Answer: d

44. Which programming language is NOT supported by Selenium WebDriver?

a) Python

b) Java

c) Ruby

d) Swift

Answer: d
45. In which mode does Selenium operate to run tests?

a) Headless mode

b) GUI mode only

c) Both GUI and headless mode

d) Only background processes

Answer: c

46. Which company initially developed Selenium?

a) Facebook

b) Google

c) ThoughtWorks

d) Microsoft

Answer: c

47. Which browser is NOT natively supported by Selenium WebDriver?

a) Safari

b) Internet Explorer

c) Opera

d) Firefox

Answer: c

48. What is the purpose of Selenium Grid?

a) To run tests only on local machines

b) To enable parallel testing across multiple machines and browsers

c) To execute tests faster

d) To handle only API testing

Answer: b

49. Which component of Selenium is primarily used for record-and-playback features?

a) Selenium WebDriver

b) Selenium IDE

c) Selenium Grid

d) Selenium RC

Answer: b
50.In Selenium WebDriver, which method is used to navigate to a specific URL?

a) driver.getUrl("http://example.com")

b) driver.navigate("http://example.com")

c) driver.visit("http://example.com")

d) driver.get("http://example.com")

51. A Selenium test script fails because it cannot find an element on the page. What is the most likely cause?

a) The web page takes too long to load, and the element is not yet available

b) The element ID is not unique

c) The web driver is not installed

d) The browser window is too small

Answer: a

52. Which component of Selenium allows running tests on remote machines?

a) Selenium Grid

b) Selenium IDE

c) Selenium WebDriver

d) Selenium RC

Answer: a

53. What is the primary role of Selenium WebDriver?

a) To record and playback tests

b) To manage test data

c) To automate browser interactions

d) To create test cases manually

Answer: c

54.Which component was deprecated in favour of Selenium WebDriver?

a) Selenium Grid

b) Selenium RC

c) Selenium IDE

d) Selenium Server

Answer: b

55. Which Selenium component does not support parallel execution?

a) Selenium IDE

b) Selenium Grid

c) Selenium RC

d) Selenium WebDriver
Answer: a

56. How does Selenium WebDriver communicate with the browser?

a) Through APIs

b) Through Selenium IDE

c) Directly interacting with the browser

d) Through browser-specific drivers

Answer: d

57. What is the role of JSON Wire Protocol in Selenium WebDriver?

a) It enables parallel testing

b) It acts as a communication layer between WebDriver and the browser

c) It enhances test reporting

d) It stores test data

Answer: b

58. Which driver is used for running Selenium tests on Chrome?

a) GeckoDriver

b) SafariDriver

c) ChromeDriver

d) EdgeDriver

Answer: c

59. How does Selenium handle cross-browser testing?

a) Through separate browser drivers

b) Through a single universal driver

c) By only supporting one browser

d) Through Selenium IDE only

Answer: a

60. In Selenium, which class is used to manage multiple windows or tabs?

a) WindowSwitcher

b) BrowserManager

c) WindowHandler

d) WindowHandles

Answer: d

61. In Selenium, which class is used to manage multiple windows or tabs?

a) WindowSwitcher

b) BrowserManager
c) WindowHandler

d) WindowHandles

Answer: b

62. A test fails due to a timeout while interacting with a webpage. What is a possible solution?

a) Increasing the wait time

b) Restarting the test

c) Decreasing script execution speed

d) Ignoring the error

Answer: a

63. A Selenium Grid setup fails to execute tests across nodes. What could be the issue?

a) Incorrect test script

b) Node not registered to the hub

c) Using WebDriver instead of Selenium Grid

d) Insufficient memory on nodes

Answer: b

64. Which of the following is required to run Selenium WebDriver tests on Chrome?

a) GeckoDriver

b) SafariDriver

c) ChromeDriver

d) WebDriverManager

Answer: c

65. What is the purpose of WebDriverManager in Selenium?

a) To manage database connections

b) To launch ChromeDriver automatically

c) To automatically handle driver binaries

d) To manage test data

Answer: c

66. In which programming language is the Selenium WebDriver API primarily developed?

a) Python

b) Java

c) JavaScript

d)Ruby

Answer: b
67. Which method is used to initialize WebDriver in Java for Chrome?

a) new ChromeDriver()

b) driver.start()

c) driver.init()

d) ChromeDriver.initialize()

Answer: a

68. Which file type is typically used to configure Selenium WebDriver dependencies in a Java Maven project?

a) .exe

b) .properties

c) .xml

d) .json

Answer: c

69. Which of the following environment variables must be set for Selenium to locate ChromeDriver?

a) PATH

b) JAVA_HOME

c) SELENIUM_HOME

d) CHROME_DRIVER_PATH

Answer: a

70. What is the purpose of adding drivers like ChromeDriver to the system PATH?

a) To access them without specifying the full path

b) To make Selenium faster

c) To enhance browser speed

d) To make Chrome run by default

Answer: a

71. How do you add the ChromeDriver path in Python Selenium?

a) os.path.insert(ChromeDriver)

b) driver.add_path()

c) driver.executable_path

d) driver.start()

Answer: c

72. In a Maven project, where do you add Selenium dependencies to integrate Selenium WebDriver?

a) In pom.xml under

b) In test.java file

c) In environment variables
d) In an external file

Answer: a

73. A Selenium test fails to run due to missing ChromeDriver. What is a likely solution?

a) Reinstall Chrome

b) Add ChromeDriver to PATH

c) Ignore the error

d) Run on a different browser

Answer: b

74. The Chrome browser does not open when running a Selenium script. What should you check first?

a) Check if ChromeDriver is installed

b) Check if Firefox is installed

c) Verify Selenium IDE is working

d) Check if URL is valid

Answer: a

75. A test fails after updating ChromeDriver, citing version mismatch. What is the solution?

a) Ignore the error

b) Rollback ChromeDriver

c) Update the Chrome browser to match the driver version

d)Run on Firefox

Answer: c

76. Which Selenium method is used to find an element by its ID?

a) findElement(By.tag)

b) findElement(By.name)

c) findElement(By.id)

d) findElement(By.cssSelector)

Answer: c

77. What is the purpose of locators in Selenium?

a) To define test data

b) To find and interact with web elements

c) To increase execution speed

d) To manage test cases

Answer: b
78. Which locator is recommended for selecting elements with unique identifiers?

a) XPath

b) CSS Selector

c) Class Name

d) ID

Answer: d

79. What does the findElements method in Selenium WebDriver return?

a) A single WebElement

b) A list of WebElements

c) A string

d) A boolean

Answer: b

80. Which locator should you use when elements have no unique attributes, but specific text?

a) Name

b) Tag Name

c) Link Text

d) ID

Answer: c

81. When should XPath be used as a locator in Selenium?

a) When elements have unique IDs

b) When CSS selectors are not suitable

c) When using Selenium IDE

d)For faster execution

Answer: b

82. How do you find an element by class name in Selenium WebDriver?

a) driver.findElement(By.cssSelector())

b) driver.findElement(By.className())

c) driver.findElement(By.tagName())

d) driver.findByClass()

Answer: b

83. How would you locate an element with the XPath //button[text()='Submit']?

a) findElement(By.id("Submit"))

b) findElement(By.xpath("//button[text()='Submit']"))

c) findElement(By.tag("Submit"))
d) findByText("Submit")

Answer: b

84. Which Selenium method would you use to select an element using its CSS selector?

a) findElement(By.cssSelector())

b) findElement(By.name())

c) findElement(By.linkText())

d) findElement(By.tagName())

Answer: a

85. How would you locate the third <div> element using XPath?

a) //div[3]

b) //div[@id='3']

c) findElement(div, 3)

d) //div(3)

Answer: a

86. A Selenium script fails to locate an element by ID. What is the first check to perform?

a) Check if the ID is unique

b) Increase wait time

c) Ignore the failure

d) Change the locator to XPath

Answer: a

87. The script fails intermittently when locating elements with dynamic IDs. What could be a solution?

a) Use findElement(By.id())

b) Switch to CSS selectors

c) Ignore the test

d) Use dynamic locators like XPath with conditions

Answer: d

88. An element is not found during testing because it loads slowly. What is a potential fix in Selenium?

a) Restart the test

b) Use explicit wait until the element is visible

c) Add the element in HTML

d) Ignore the error

Answer: b

89. What is Selenium WebDriver primarily used for?

a) To automate desktop applications


b) To automate web applications

c) To generate test data

d) To interact with APIs

Answer: b

90. Which method is used to close the current browser window in Selenium WebDriver?

a) driver.quit()

b) driver.stop()

c) driver.close()

d) driver.exit()

Answer: c

91. What does the driver.quit() command do in Selenium WebDriver?

a) Closes all browser windows and ends the WebDriver session

b) Only closes the current window

c) Maximizes the browser

d) Navigates to a URL

Answer: a

92. Which Selenium method is used to retrieve the title of the current webpage?

A ) driver.getText()

b) driver.getTitle()

c) driver.getHeading()

d) driver.getPageTitle()

Answer: b

93. What is the purpose of the manage().window().maximize() method in Selenium WebDriver?

a) To close the window

b) To switch tabs

c) To maximize the browser window

d) To take a screenshot

Answer: c

94. Which method would you use to navigate back to the previous page in Selenium WebDriver?

a) driver.forward()

b) driver.navigate().back()

c) driver.previousPage()

d) driver.back()

Answer: b
95. How do you retrieve the current URL of a page in Selenium WebDriver?

a) driver.getPageURL()

b) driver.getUrl()

c) driver.getCurrentUrl()

d) driver.get()

Answer: c

96. Which method would you use to clear text from an input field in Selenium WebDriver?

a) element.clearText()

b) element.delete()

c) element.clear()

d)element.removeText()

Answer: c

97. How do you take a screenshot in Selenium WebDriver?

a) driver.captureScreenshot()

b) driver.takeScreenshot()

c) driver.getScreenshotAs()

d) driver.saveScreen()

Answer: c

98. In Selenium WebDriver, how do you handle a checkbox?

a) element.select()

b) element.toggle()

c) element.click()

d) element.activate()

Answer: c

99. A Selenium test script fails with a "NoSuchElementException" error. What could be the cause?

a) Incorrect element locator

b) Network connection issues

c) Outdated ChromeDriver

d) Unsupported programming language

Answer: a

100. The browser does not navigate to a URL provided in driver.get(). What could be the reason?

a) URL is incorrect

b) Driver version mismatch

c) Selenium IDE is not installed


d) The element is not visible

Answer: a

101. A script encounters a "StaleElementReferenceException." What does this imply in Selenium WebDriver?

a) The element is missing attributes

b) The page has been refreshed or updated

c) The browser is closed

d) The element has duplicate IDs

Answer: b

102. What is the primary objective of penetration testing?

a) To identify and exploit vulnerabilities in the system


b) To test the strength of a firewall
c) To detect viruses and malware
d) To audit the performance of the system

Answer: a

103. What is the difference between vulnerability scanning and penetration testing?

a) Vulnerability scanning identifies vulnerabilities and penetration testing exploits them


b) Vulnerability scanning is an active process while penetration testing is passive
c) Vulnerability scanning is less thorough than penetration testing
d) Vulnerability scanning is conducted by internal security teams, while penetration testing is conducted by external
security firms

Answer: a

104. Which of the following is NOT a phase of the penetration testing process?

a) Planning
b) Scanning
c) Enumeration
d) Analysis

Answer: d

105. Which of the following is the best approach to conducting a penetration test?

a) Black box testing


b) White box testing
c) Grey box testing
d) Automated testing

Answer: C.

106. What is the difference between a vulnerability and an exploit?

a) A vulnerability is a weakness in a system while an exploit is a tool used to attack the system
b) A vulnerability is an attack on a system while an exploit is a weakness in the system
c) A vulnerability is a hardware issue while an exploit is a software issue

d) A vulnerability is a software issue while an exploit is a hardware issue

Answer: a
107. What is the purpose of social engineering in a penetration test?

A. To test the physical security of the target system


B. To identify weaknesses in the target system’s software
C. To manipulate individuals into disclosing sensitive information
D. To test the network infrastructure of the target system

Answer: c

108. Which of the following is NOT a common type of penetration test?

a) Network penetration testing


b) Web application penetration testing
c) Social engineering penetration testing
d) Wireless penetration testing

Answer: c

109. What is the difference between a white hat hacker and a black hat hacker?

a) White hat hackers are ethical hackers while black hat hackers are unethical hackers
b) White hat hackers are hired by organizations to conduct penetration testing while black hat hackers are hired by
attackers to conduct malicious activities
c) White hat hackers are government-sponsored hackers while black hat hackers are independent hackers
d) White hat hackers use legal and ethical methods while black hat hackers use illegal and unethical methods

Answer: a

110. What is a zero-day vulnerability?

a) A vulnerability that has been patched by the system vendor


b) A vulnerability that has been known for a long time
c) A vulnerability that has not yet been discovered by the system vendor or security researchers
d) A vulnerability that has been identified and exploited by attackers

Answer: c

111. What is the purpose of a proof of concept in a penetration test?

a) To demonstrate the impact of a vulnerability on the target system


b) To test the system’s security controls
c) To identify potential vulnerabilities in the system
d) To report findings and recommendations to the organization

Answer: a

112. What is a vulnerability assessment?

a) A comprehensive analysis of a system’s security posture


b) A process of identifying vulnerabilities and weaknesses in a system
c) A technique used to exploit vulnerabilities in a system
d) A method of assessing the physical security of a system

Answer: b

113. What is a rootkit?

a) A type of malware that is difficult to detect and remove


b) A tool used to exploit vulnerabilities in a system
c) A technique used to identify potential vulnerabilities in a system
d) A method of obtaining administrative access to a system
Answer: a

114. Which of the following is a common type of vulnerability in web applications?

a) Denial of service (DoS)


b) SQL injection
c) Man-in-the-middle (MitM) attack
d) Buffer overflow

Answer: b

115. What is the purpose of a port scan?

a) To identify open ports on a system


b) To identify potential vulnerabilities in a system
c) To exploit open ports on a system
d) To test the network connectivity of a system

Answer: a

116. What is the purpose of a honeypot?

a) To detect and block malicious traffic


b) To lure attackers into a trap to gather information about their methods and motives
c) To monitor network traffic for signs of compromise
d) To simulate a network or system for testing or training purposes

Answer: b

117. Which of the following is not a type of incremental testing approach?

a) big-bang
b) top down
c) bottom up
d) functional incrimination

Answer: a

118. During which phase is the Entry Criteria determined?

a) Planning
b) Kick of
c) Preparation
d) Review meeting

Answer: a

119. Which axis name in Selenium is related to the selection of all the parent, grandparent and so on?

a) Ancestor
b) Preceding
c) Parent
d) All of these.

Answer: a

120. Which of the following is the odd one out?

a) white box
b) glass box
c) structural
d) functional
Answer: d

121. Which methodology is used to performed Maintenance testing?

a) Breadth test and depth test


b) Confirmation testing
c) Retesting
d) Sanity testing

Answer: a

122. Which of the following is not part of the Test document?

a) Test Case
b) Requirements Traceability Matrix [RTM]
c) Test strategy
d) Project Initiation Note [PIN]

Answer: d

123. Which of the following is not a valid phase of SDLC (Software Development Life Cycle)?

a) Testing Phase
b) Requirement Phase
c) Deployment phase
d) Testing closure

Answer: d

124. Which of the following testing is also known as white-box testing?

a) Structural testing
b) Error guessing technique
c) Design based testing
d) None of the above

Answer: a

125. Which of the following testing is related to the boundary value analysis?

a) White box and black box testing


b) White-box testing
c) Black box testing
d) None of the above

Answer: c

126. Functional testing is a ------?

a) Test design technique


b) Test level
c) SDLC Model
d) Test type

Answer: d

127. What are the different levels of Testing?

a) Integration testing
b) Unit testing
c) System testing
d) All of the above
Answer: d

128. Which of the following is not a part of STLC (Software Testing Life Cycle)?

a) Testing Planning
b) Requirement Gathering
c) Test Design
d) Testing closure

Answer: b

129. Sanity testing is a ------?

a) Test type
b) Test Execution Level
c) Test Level
d) Test design technique

Answer: b

130. _________is / are not part of Specification Based Testing.


a. Data Flow
b. State Transition
c. Decision Table
d. Boundary Value Analysis

Answer: a

131. Confidence Testing refers to which one?


a. Retesting
b. Smoke Testing
c. Regression Testing
d. All of these.

Answer: b

132. Component Drivers are not needed for which one?


a. Top-Down
b. Big-Bang
c. Modified Top-Down
d. Modified Sandwich

Answer: a

133. ______ is not a part of the Decision Table.


a. Driver portion
b. Stub portion
c. Condition portion
d. Action portion

Answer: a

134. Test plans are based on which one?


a. Project Plan
b. Business Plan
c. Support Plan
d. All of these

Answer: a
135. ______ is / are not a Iterative Model.
a. V model
b. Incremental
c. RAD
d. Spiral Model

Answer: a

136. Focus Testing comes under which one?


a. Usability Testing
b. Acceptance Testing
c. Performance Testing
d. Component Testing

Answer: a

137. Sanity test is __________ is not true in case of Sanity Testing?


a. a narrow regression testing.
b. usually unscripted.
c. High Level Testing.
d. a cursory testing

Answer: c

138. STLC is related to which model?


a. Waterfall Model
b. V Model
c. RAD Model
d. Spiral Model

Answer: b

139. Testing cannot be performed by QA Team is________.


a. Equivalence Partitioning Testing
b. End-to-end Testing
c. Destructive Testing
d. Fuzz Testing

Answer: d

140. Which of the following top-down Design does not require.


a. Step-wise Refinement
b. Modularity
c. Flow charting
d. Loop-invariants

Answer: d

141. Which of the following is the first component of the DFD?


a. Level
b. Flow
c. Entity
d. Process

Answer: d

142. ______ coupling should be avoided in software.


a. Content Coupling
b. Data coupling
c. Control coupling
d. Stamp coupling

Answer: a

143. Cyclomatic Complexity cannot be applied in which one?


a. Reverse engineering
b. Risk Management
c. Test Planning
d. Re-engineering

Answer: a

144. _____________ is the order of Priority Testing.


a. System>>Acceptance>>Integration
b. Unit>> System>>Acceptance Testing.
c. System>>Integration>> Acceptance Testing.
d. Unit >>Integration >>System Testing.

Answer: d

145.On which of the following requirements Engineering is not a concern?


a. Requirement Analysis
b. Requirement Elicitation
c. Requirement Design
d. Requirement Documentation

Answer: c

146. A test technique that includes testing with differenet ranges of valid and invalid inputs a particular module or
component functionality extensively is known as?

a. Monkey Testing
b. Gorilla Testing
c. Agile Testing
d. Baseline Testing

Answer: b

147. Which of the following is end result of Software Requirement Analysis?


a. Usability and Reliability
b. Architectural and Structural
c. Functional and Behavioral
d. Algorithmic and Data Structure

Answer: c

148. _______ is not Data Driven Testing.


a. Ramp Testing
b. Fuzz Testing
c. Negative Testing
d. Retesting

Answer: a

149. ______ is the odd one out.


a. Client or development side
b. Beta release
c. Client side
d. Beta testing

Answer: a

150. Defects can be found more easily in which one?


a. Big Bang Testing.
b. Top-down Integration Testing
c. Bottom-up Integration Testing
d. Sandwich Integration Testing

Answer: c

151. What is the primary objective of manual testing?

a) To automate testing processes


b) To identify defects manually
c) To replace automated testing
d) To ensure only UI testing

Answer: b

152. Which of the following is NOT a characteristic of manual testing?

a) Requires human intervention


b) Uses automation tools
c) Simulates end-user behavior
d) Detects usability issues

Answer: b

153. What is the first step in the manual testing process?

a) Test execution
b) Test planning
c) Requirement analysis
d) Bug reporting

Answer: c

154. Which document is essential for manual testing?

a) Test case document


b) Code review document
c) Release notes
d) Database schema

Answer: a

155. Why is exploratory testing preferred in manual testing?

a) It is automated
b) It requires human intuition
c) It is predefined
d) It ensures regression testing

Answer: b
156. What is ad-hoc testing?

a) Random testing without planning


b) Testing with predefined test cases
c) Unit testing
d) Regression testing

Answer: a

157. Which of the following is a limitation of manual testing?

a) It is time-consuming
b) It can’t detect functional defects
c) It is expensive
d) It replaces automation

Answer: a

158. Which activity is NOT part of manual testing?

a) Writing test cases


b) Performing exploratory testing
c) Automating test scripts
d) Executing test cases

Answer: c

159. Which of the following components should a well-written test case include?

a) Test ID, Objective, Steps, Expected Results


b) Only Steps and Expected Results
c) Issue Description and Fix
d) Test ID, Steps

Answer: a

160. A tester finds a defect that occurs intermittently. What should the tester do?

a) Ignore it if rare
b) Document all observed conditions
c) Fix it immediately
d) Wait for it to occur again

Answer: b

161. What is the primary purpose of SDLC?

a) To manage software updates


b) To guide the development process
c) To reduce the cost of hardware
d) To debug code

Answer: b

162. Which is the first phase of the SDLC?

a) Testing
b) Planning
c) Deployment
d) Maintenance

Answer: b
163. Which SDLC phase involves writing the code for the software?

a) Maintenance
b) Design
c) Implementation
d) Testing

Answer: c

164. What is the primary goal of the Testing phase in SDLC?

a) To identify and fix defects


b) To design the system architecture
c) To deploy the software
d) To analyze requirements

Answer: a

165. Which SDLC model is best suited for projects with well-defined requirements?

a) Waterfall
b) Agile
c) V-Model
d) Spiral

Answer: a

166. In the Agile model, what is the purpose of an iteration?

a) To complete the entire project


b) To deliver a working software increment
c) To gather user requirements
d) To finalize testing

Answer: b

167. What distinguishes the Spiral model from other SDLC models?

a) Focus on documentation
b) Emphasis on risk analysis
c) Absence of testing
d) Strict sequential flow

Answer: b

168. Which SDLC phase involves creating system and software design specifications?

a) Planning
b) Design
c) Testing
d) Maintenance

Answer: b

169. Which artifact is typically produced in the Requirement Analysis phase of SDLC?

a) Test Plan
b) Requirement Specification Document (RSD)
c) Code Snippets
d) Deployment Plan

Answer: b
170. During the Maintenance phase, a software bug is reported. What should be the first step?

a) Ignore minor bugs


b) Analyze the issue and replicate it
c) Update the requirement document
d) Rebuild the software

Answer: b

171. What is the primary focus of functional testing?

a) Testing system performance


b) Testing system functionality against requirements
c) Testing security
d) Testing compatibility

Answer: b

172. Which of the following is an example of non-functional testing?

a) Usability testing
b) Regression testing
c) Unit testing
d) System testing

Answer: a

173. Which type of testing validates individual units of code?

a) Integration testing
b) Unit testing
c) System testing
d) Acceptance testing

Answer: b

174. What is the primary objective of load testing?

a) To identify security vulnerabilities


b) To ensure software functions under expected loads
c) To verify user interface design
d) To detect compatibility issues

Answer: b

175. How does stress testing differ from load testing?

a) Stress testing focuses on security


b) Stress testing exceeds expected load conditions
c) Stress testing is only for functional validation
d) Stress testing is non-repeatable

Answer: b

176. Which type of testing ensures end-to-end functionality of the software?

a) Regression testing
b) System testing
c) Unit testing
d) Acceptance testing

Answer: b
177. Which of the following is NOT a non-functional testing type?

a) Performance testing
b) Security testing
c) Regression testing
d) Compatibility testing

Answer: c

178. Which testing type would most likely require test cases written for login functionality?

a) Load testing
b) Unit testing
c) Functional testing
d) Performance testing

Answer: c

179. During stress testing, how would you simulate a scenario exceeding the system's capabilities?

a) Increase the number of concurrent users


b) Reduce database size
c) Limit network bandwidth
d) Decrease server capacity

Answer: a

180. During load testing, the application crashes under expected user load. What should be done first?

a) Ignore the issue


b) Analyze logs and identify bottlenecks
c) Increase server capacity
d) Reduce the test load

Answer: b

181. In regression testing, a previously fixed defect reappears. What should the tester do?

a) Ignore it
b) Reopen the defect
c) Report it as a new issue
d) Wait for confirmation from the developer

Answer: b

182. Which method in Selenium is used to switch to a new browser window?

a) driver.switchTo().window()
b) driver.switchTo().tab()
c) driver.getWindowHandle()
d) driver.selectWindow()

Answer: a

183. How can you check if a checkbox is selected in Selenium WebDriver?

a) isChecked()
b) isSelected()
c) isClicked()
d) getValue()

Answer: b
184. Which Selenium command is used to retrieve the attribute value of a web element?

a) element.getText()
b) element.getValue()
c) element.getAttribute()
d) element.getProperties()

Answer: c

185. What is the purpose of the driver.switchTo().frame() method?

a) To close the frame


b) To move focus to a specific frame
c) To maximize the frame
d) To reload the frame

Answer: b

186. How can you interact with hidden elements in Selenium?

a) Use JavaScript Executor


b) Direct click
c) Clear text
d) Use getText()

Answer: a

187. How do you handle browser alerts in Selenium WebDriver?

a) driver.alert().accept()
b) driver.switchTo().alert().accept()
c) driver.alertAccept()
d) driver.confirmAlert()

Answer: b

188. Which method is used to select an option by visible text in a dropdown list?

a) selectByValue()
b) selectByIndex()
c) selectByVisibleText()
d) selectText()

Answer: c

189. In Selenium WebDriver, how do you simulate pressing the Enter key?

a) sendKeys(Keys.ENTER)
b) driver.click(Keys.Enter)
c) driver.type(Keys.Enter)
d) pressEnter()

Answer: a

190. How can you perform a double-click action on an element in Selenium WebDriver?

a) action.doubleClick(element)
b) element.doubleClick()
c) element.click(2)
d) driver.doubleClick()

Answer: a
191. A test fails with a "NoAlertPresentException" error. What could be the cause?

a) Alert is not displayed


b) Network connection issue
c) Invalid URL
d) Alert is maximized

Answer: a

192. A script fails when trying to select an option from a dropdown. What could be a likely solution?

a) Use click() method instead


b) Verify dropdown is loaded
c) Restart the browser
d) Update browser version

Answer: b

193. A Selenium test encounters an "ElementNotInteractableException." What is a common cause?

a) Element is hidden or off-screen


b) Test case has a typo
c) Incorrect Selenium version
d) Network speed is high

Answer: a

194. What is the main purpose of waits in Selenium?

a) To speed up script execution


b) To handle page load times
c) To reduce code lines
d) To automatically close the browser

Answer: b

195. Which type of wait applies to all elements and is set once in Selenium WebDriver?

a) Explicit Wait
b) Thread.sleep
c) Implicit Wait
d) Fluent Wait

Answer: c

196. What is the advantage of using Explicit Wait over Implicit Wait?

a) It’s faster
b) It allows waiting for specific conditions
c) It applies to all elements
d) It doesn’t require imports

Answer: b

197. Which of the following conditions can be used with WebDriverWait?

a) Element to be editable
b) Element to load
c) Browser to close
d) Page title to update

Answer: a
198. What is TestNG primarily used for in Selenium?

a) Browser automation
b) Test case management
c) Java development
d) Data analysis

Answer: b

199. How would you initialize a Page Object class in Selenium?

a) new Page(driver)
b) driver.getPage()
c) driver.load(Page.class)
d) Page page = new Page(driver)

Answer: d

200. In POM, which annotation is used in Selenium to initialize WebElements?

a) @DataProvider
b) @FindBy
c) @Test
d) @Locator

Answer: b

You might also like