Hello friends in this post we are going to discuss about Selenium Multiple choice question | Selenium Objective type question | Selenium MCQ with answer | Selenium Wipro Trend NXT mySkillz Answer PDF
If you are looking for more Dumps for MYSKILLZ Visit Here
SNO | Question | Option1 | Option2 | Option3 | Option4 | Correct Option |
1 | What tests can selenium do? | Functional | Regression | Both a and b | None of the above | 3 |
2 | Following is not the step to run automation using Selenium | Record the scripts using Selenium IDE | Run the test | Modify the scripts according to the testing needs. | Viewing the results in the format specified. | 4 |
3 | Selenium can be used for Web based and window based testing. | TRUE | FALSE | FALSE | ||
4 | What is Selenium’s recording language? | Java | C# | Ruby | Hyper text markup language | 4 |
5 | Justify your answer: Selenium will record any operation that you do on your computer apart from the events on the Firefox browser window. | TRUE | FALSE | TRUE | ||
6 | Following is not the type of Selenium. | Selenium Grid | Selenium Core | Tellerium | SIDE | 3 |
7 | Selenium IDE is the add on only for the following browser. | Chrome | Firefox | Safari | Internet Explorer | 2 |
8 | Selenium automates | Browsers | navigators | urls | None of the above | 1 |
9 | Selenium can be deployed on the following Operating Systems | windows, linux | Solaris,OS X | Both a and b | None of the above | 3 |
10 | What is selenese? | Selenium commands | Selenium keywords | Selenium Class | None of the above | 1 |
11 | Select the diasadvantage of Selenium from the following? | It is simple, easy to install and easy to work. | Run multiple tests at a time. | Does not support file upload from local machine. | The software with which it developed is browser based and agile adpted. | 3 |
12 | Selenium less powerful in creation of scripts because | Many actions are not recorded by IDE and have to be manually entered. | All the actions performed are recorded by IDE. | IDE doesnot record and we have to do complete scripting manually. | All of the above | 1 |
13 | The following is used to run the exported tests in any browser and any platform? | Selenium 2 | Selenium Core | Selenium Remote Control | None of the above | 3 |
14 | How do you execute the tests recorded in Selenium IDE in other browsers? | Selenium 3 | Selenium Core | Selenium Remote Control | All of the above | 3 |
15 | Which of the following uses native JavaScript calls. | Selenium Core | Selenium Grid | SIDE | Selenium Web Driver | 3 |
16 | Selenium IDE can be opened in the following way | |||||
17 | Selenium Core TestRunner is used to | Open up the browser to test runner | open the browser and execute the test script. | Not used to run any kind of tests in Selenium IDE | Both a and b | 1 |
18 | What is the main language that drives Selenium IDE | Java | Python | Ruby | VBScripting | 1 |
19 | Assert and Verify are used for | Validating the elements that are available on the application under test | Validating the elements only on the current page. | It is not used for validating. | None of the above | 1 |
20 | The following is used to add the assert or verify to the test | Selenium IDE | Context Menu | Slider bar | Base Url tab | 2 |
21 | How do you start Selenium RC? | Start Selenium RC Server | java -jar selenium-server-standalone-<version-number>.jar | Start RC | None of the above | 2 |
22 | How do you identify an object in Selenium? | HTML code | DOM with firebug | CSS | firepath | 2 |
23 | Is it possible to start the Remote engine more than once in an instance? | Yes | No | 1 | ||
24 | Which are the annotations generated with JUnit 4 tests in Selenium IDE? | @Before public void method() | @Test public void method() | @After public void method() | All of the above | 4 |
25 | How to start selenium rc server with user extensions? | java -jar selenium-server.jar user-extensions.js | java -jar selenium-server.jar -userExtensions.js | java -jar selenium-server.jar -userExtensions user-extensions.js | Start SeleniumServer User-extensions.js | 3 |
26 | How to run Selenium IDE test suite with user extensions using Selenium Remote Control? | java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite “*<browser>” “<Selenium test suite file>” “<results log file>” -timeout <millise> | java -jar selenium-server.jar user-extensions.js -htmlSuite “*<browser>” “<base URL>” “<Selenium test suite file>” “<results log file>” -timeout <millise> | java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite “*<browser>” “<base URL>” “<Selenium test suite file>” “<results log file>” -timeout <millise> | java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite “*<browser>” “<base URL>” “<Selenium test suite file>” “<results log file>” -timeout <millise> | 4 |
27 | If the default port of selenium is busy then which port you use? | We need to stop till the port gets free | Need to create our own port from where the script runs | Need to define our own port as java -jar SeleniumServer.jar -port 1111 | None of the above | 3 |
28 | When to use proxy injection mode? | When we run the script in the browser where we recorded the test | When we need to activate the proxy for the browser In which the application is open | To inject the proxy for the browser | Used when the script is recorded in one browser and we need to run in some other browser. | 4 |
29 | Silver light application testing is possible in following type of selenium? | Selenium Web Driver | Selenium Remote Control | Selenium Grid | Selenium IDE | 2 |
30 | How do you edit the recorded command in IDE? | By selecting the command and choosing the desired value from drop-down. | Edit->Recording Mode | No optionis available | Both a and b | 1 |
31 | What are the three major components of Selenium IDE? | Command, Target, Value | Command, Destination, Value | Command, Target, Input | Order, Target, Value | 1 |
32 | What is the Selenium IDE plug in to run the Selenium Test Suite? | Flex Pilot | Whit Code Plexer | Test Runner | Test Suite Runner | 3 |
33 | Which is the command used for diaplaying the values of a variable into the output console or log? | Echo <constant string> | Echo $<constant string> | Echo $<variable name> | None of the above | 1 |
34 | The client libraries of Selenium RC instructs Selenium Server on | How to test the AUT | How to test the AUT by using selenium commands | How to test the AUT by passing it your test scripts Selenium commands | How to test the test scripts Selenium commands | 3 |
35 | Which of the following translates its selenium commands into client drivers API’s finctions? | Selenium2 | Selenium Core | SIDE | Selenium Remote Control | 3 |
36 | The following test engine is used for Java programming language? | Junit | TestNG | Nunit | Both a and b | 4 |
37 | How many types of reports can be generated for java in Selenium? | No Count and are still emerging | 4 | 2 | Not there | 2 |
38 | Name the Selenium API method that is used to Java script from Selenium RC? | Exceute Js API | getEval API | Execute .JS <selenium-server.jar> | None of the above | 2 |
39 | Multi mode is the default behaviour for? | Selenium Web Driver | Selenium Core | Selenium Grid | Selenium 1.0 | 4 |
40 | Select the command that can be used to record valuable debugging information reported by the selenium server to a text file. | the -include log command | the -log command | the -log to text file command | None of the above | 2 |
41 | Which of the following is more useful to the end user than the regular Selenium Server logs? | the -browserSideLog command | the -browserLog command | the -browsersidelogs command | All of the above | 1 |
42 | The main restriction of Selenium is | Same Origin Policy | Same Origin Policy for all browsers | Same Origin Policy for security issues | Security Restrictions | 1 |
43 | The method that was used by selenium initially to avoid the Same Origin Policy was | Enable Same Origin Policy | Proxy Injection | Enable Origin Policy for all browsers | None of the above | 2 |
44 | Mechanism that stores all the locators for a test suite in one place for easy modification when identifiers or paths to UI elemets changes in the AUT is? | Locator Suite Details | Ui Map | Suite UI elements locators | None of the above | 2 |
45 | Rapid prototyping tool is | Selenium Rc | Selenium Web Driver | SIDE | Selenium Core | 3 |
46 | Which of the following is not the pane of Selenium IDE? | Log | Ui-Element | Reference | TestCase Name | 4 |
47 | Which of the following we use to check the properties of a web page? | Asset Command | Verify Command | Both a and b | None of the above | 3 |
48 | The two ways of editing a command or comment is Selenium IDE are? | Table and Source | Table and Target | Command, Target, Input | None of the above | 2 |
49 | Toggle Breakpoint is used to | set a breakpoint in the test case to cause it to stop on a particular command. | can set a breakpoint in the test case to cause it to stop on a particular command and exceute from the scratch | Both a and b | Only 1 | 1 or 4 |
50 | The three flavours of Selenium Commands are | Command, Target, Value | Assertions, Actions and Ino\puts | Actions, Accessors and Assertions | All of the above | 3 |
51 | The three modes in which we can use the Selenium Assertions are | Assert, Verify and waitFor | Assery, Verify and Assertions | Assert, VerifyAssertion and waitFor | assertAssertions, VerifyAssertions and waitFor | 1 |
52 | Following is not the most commonly used Selenium Command? | Open up the browser to test runner | verifyTitle/assertTitle | windowsMaximize | verifyTable | 3 |
53 | The two ways of discovering the xpath of an element are ? | Firebug and Xpath Checker | FireBug and FireXpath | Css and Firebug | None of the above | 1 |
54 | Select the locator that can be used to find the most complicated objects in an intrinsic HTML document? | Xpath | Css | Input | ID | 2 |
55 | Selenium globbing pattern allows only | asterisk and character class. | asterisk and class. | Dollar symbol and character class. | None of the above | 1 |
56 | storeFooPresent(variable) does | stores the text of the pop-up in a variable and returns true or false | Stores the text of pop-up into some default variable | stores the text of the pop-up in a variable | Both a and b | 1 |
57 | How do you build a locator that is different from the locator type that was recorded? | Locator Strategy | Locator Guidance | Locator Selectin Criteria | Locator Assistance | 4 |
58 | java.lang.RuntimeException: Could not contact Selenium Server; have you started it? Error means | You have not started the Selenium Server | You have started the Selenium Server but the port is busy. | You have to stop the Selenium Server and then need to restart it | All of the above | 1 |
59 | How to extend the build to additional environments using Ant? | Add depends property | Add Target | Both a and b | Only 2 | 1 or 4 |
60 | The deafult timeout value of recorded command is | 3s-30ms | 30s-300ms | 300s-3000ms | 30s-30000ms | 4 |
61 | Why do we use Selenium Client Drivers? | To interact with the Selenium Server with the scripts created | Create local selenium Web driver script | Both a and b | None of the above | 3 |
62 | Can we control the speed and pause the test execution in Selenium IDE? | IDE provides a slider with slow and fast pointers to control the speed of execution. | IDE provides an option with slow and fast pointers to control the speed of execution. | IDE directly allows you to slow and fast pointers to control the speed of execution. | None of the above | 1 |
63 | Reference Scetion of Selenium IDE is used for? | To view the test execution | Description of the commands | Check for certain text | All of the above | 2 |
64 | How do we add checkpoints manually to our tests in Selenium IDE? | Add Checkpoint Option | Reference Section | Context Menu | Locator Builders | 3 |
65 | storeText css=input#s var1 echo ${var1} . The above code will do? | Used to store the result of an evaluation | Print value in Selenium Ide | To check the stored value in Selenium IDE | To check the value of stored text | 3 |
66 | How can we change the test recorded in Xpath to css locator? | Using the drop down available next to Find in Selenium | Using the css selector available next to Find in Selenium | First enable the css selector and click on find button | Select the element recorded using Xpath, enable the css selector and click on the Find Button | 1 |
67 | Where do we specify our user javascript extensions in Selenium IDE? | Actions Menu | File Menu | Options Menu | Preference Menu | 3 |
68 | The language of Selenium IDE is? | HTML | Java | Selenese | None of the above | 3 |
69 | The other tool that is available outside Selenium IDE to test the element locator is? | Firefinder | Firebug | Xpath Getter | None of the above | 1 |
70 | Does selenium IDE support looping? | TRUE | FALSE | 1 | ||
71 | Does selenium IDE support looping? | |||||
72 | The command used to simulate right click on an element in a web page is? | Locator Command | Direct Right click and simulate the element on the web page | Use contectMenu | All of the above | 3 |
73 | The command that simulates key stroke key by key is | Type | typeKeys | typeAndWait | None of the above | 2 |
74 | Selenium RC is limited to | Java Programming Language | Not restricted to any language | Selenese | Any full fledged programming Language | 3 |
75 | The following are the main components of Selenium RC? | Selenium Server and Client Libraries | Client Liraries and Selenese commands | Both a and b | None of the above | 1 |
76 | I am not using java to program my tests, do I still have to install java on my system? | Yes | No | 1 | ||
77 | During the execution of the tests I see two windows , one on the test application and the other showing commands getting executed.How to limit to a single window? | Script in the code to a single window | Specify -singleWindow when starting Selenium server | Specify -singleWindow in your script | None of the above | 2 |
78 | How do you handle recovery scenarios in Selenium? | Recovery Scenario method | Exception Handling | Still in progress | None of the above | 2 |
79 | Difference between single and double slash in Xpath | Double–Parent, Single –Child | Double–Child,Single–Parent | Both a and b | None of the above | 1 |
80 | How to handle Ajax controls in Selenium? | Using wait for condition command | Using Wait for Command | Using Wait for pageto load command | None of the above | 1 |
81 | How to use Selenium for Performance Testing? | Integrate Load Runner with Selenium | Integrate Jmeter with selenium | Integrate Jboss with Selenium | All of the above | 2 |
82 | How to check single test method in multiple browsers? | Selenium IDE | Selenium Core | Selenium Grid | Selenium Web Driver | 3 |
83 | How do you run selenium commands in Slow motion in Selenium RC? | selenium.setSpeed() | thread.sleep() | Both a and b | None of the above | 3 |
84 | The annotations generated with Junit 4 tests in Selenium IDE are | The @Before public void method() | The @After public void method() | The @Test public void method() | All of the above | 4 |
85 | Each testcase of Selenium RC will invokes the browser and closes after playing back.Justify? | TRUE | FALSE | 1 | ||
86 | Can we include Selenium RC testcases using XMl in TestNG.Justify? | TRUE | FALSE | 1 | ||
87 | We can set multiple breakpoints in Selenium IDE.Justify | Yes | No | 1 | ||
88 | What is selenium server default port number? | 1111 | 2222 | 3333 | 4444 | 4 |
89 | The text pattern types in Selenium are | globbing | regular expressions | exact | All of the above | 4 |
90 | The input for Client libraries is | Selenium Commands | Selenese Commands | Selenium Grid | None of the above | 2 |
91 | Selenium will show some security notifications when handling | Proxy Settings | HTTP Sites | Both a and b | None of the above | 2 |
92 | Switching between the multiple instances of the different browsers is not possible.Justify? | TRUE | FALSE | 1 | ||
93 | How to execute the set of testscripts continuosly in Junit | Parameterization | Prioritizing the tests | Both a and b | None of the above | 1 |
94 | The plug in for Selenium Ide that stores the screen shots automatically on script failure is | ScreenShot on Fail plug in | Capture Screen Shot Plugin | Failed Screen shot Plug in | None of the above | 1 |
95 | The sequence of evaluation and flow controlis done in Selenium IDE using | Looping Constructs | Conditional Statements | User Extensions | All of the above | 3 |
96 | The Selenium command to print the two variables in the same line is | StoreVars | PutVars | GetVars | echo | 4 |
97 | Selenium IDE generates commands using | Keywords | Selenium Commands | Selenese | All of the above | 3 |
98 | Selenium can be integrated with QC using | HP QC ALM11 | BlumbleBee | Ant | Maven | 2 |
99 | Junit comes in built with Eclipse. Justify? | 1 | TRUE | FALSE | ||
100 | The following framework is an instance of the xUnit architecture for unit testing frameworks | 2 | TestNG | Junit | Hybrid | Nunit |
101 | Does Junit support methods dependency? | 1 | Yes | No | ||
102 | How do you run the Junit tests from the command line? | 4 | java org.junit.runner.<test class name> | Run Junit <test name> | java JUnitCore <test class name> | java org.junit.runner.JUnitCore <test class name> |
103 | What is the name of the package that you use for Junit | 1 | import org.junit.*; | import junit.*; | import package.junit.*; | None of the above |
104 | The syntax to compile a Junit Test Class is? | 2 | javac -cp junit-4.4.jar HelloTest.java | javac junit-4.4.jar HelloTest.java | javac -cp junit-4.4 HelloTest.java | javac -np junit-4.4.jar HelloTest.java |
105 | The following elemements in your CLASSPATH to run your Junit tests? | 3 | The JUnit JAR file. | Location of your JUnit test classes. | Location of testsuites to be tested. | JAR files of class libraries that are required by classes to be tested. |
106 | How do you mark the test method as Junit test method? | 1 | Using the JUnit annotation @org.junit.Test. | JUnit annotation: @org.Test. | JUnit annotation: $org.junit.Test. | None of the above |
107 | How does the runner class access the junit test method? | 3 | By decalring the Junit method as protected | By decalring the Junit method as private | By decalring the Junit method as public | By decalring the Junit method as default |
108 | All junit Test methods must be declared as | 3 | Private | Protected | Public | None of the above |
109 | Junit reports which one of the failed assertions in a single test? | 1 | First Failed Assertions | Last Failed Assertions | All Failed Assertions | None of the above |
110 | The Exception: “No runnable methods” occurs when | 1 | if you use the JUnit 4.4 core runner to execute a class that has no “@Test” method | if you use the JUnit 3.4 core runner to execute a class that has no “@Test” method | if you use the Junit 4 core runner to execute a class that has no “@Test” method | All of the above |
111 | The following error will pop up if we mix the Junit 3 Testsuite with Junit 4 test classes? | 3 | Assertion Failed error | No tests found in the test suite | Both 1 and 2 | only |
112 | The following is not the interface of Junit? | 4 | Protectable | Test | TestListener | TestFailure |
113 | The following is not the Junit annotation? | 1 | The @DataProvider | the @Test | The @AfterClass | the @BeforeClass |
114 | The @Test (expected = Exception.class) means | 1 | Fails, if the method does not throw the named exception. | Fails, if the method throws the named exception. | Passes , if the method does not throw the named exception. | Passes, if the method throws the named exception. |
115 | The Assert method of junit allows you to specify | 4 | The error message | The Actual Result | The Expected Result | All of the above |
116 | By setting up the instances of object which can be used and configured in your test methods, Junit can b e | 3 | Secure | portable | Flexible | Modular |
117 | The following is the use of the annotation in Junit? | 4 | Information for the compiler | Runtime processing | Compiler-time and deployment-time processing | All of the above |
118 | How does Jnuit parameterize a class? | 3 | Using The @AfterClass Annotation | Using the @Data Annotation | Using the @RunWith Annotation | Using the @Parameterize annotation |
If you are looking for more Dumps for MYSKILLZ Visit Here