Infosys Certified Java Script Protractor Tester
Practice with real exam-pattern questions for Infosys Certified Java Script Protractor Tester. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified Java Script Protractor Tester practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified Java Script Protractor Tester certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
Which of the following will assert for the element not to be present on the page?
- element(by.css('#abc').isPresent()).toBe(true)
- element(by.css('#abc').isPresent()).not.toBe(true)
- element(by.css('#abc').isPresent()==true).toBeTruthy()
- element(by.css('#abc').isPresent()==true).toBeFalsy()
- element(by.css('#abc').isPresent()==true).not.toBeTruthy()
- ✓
1,2,4,5
Correct - B
2,4,5
- C
1,3,4
- D
2,3,5
- Question 2
Protractor test code is saved in
- ✓
spec.js
Correct - B
config.js
- C
both spec.js and conf.js
- D
Neither spec.js nor conf.js
- ✓
- Question 3
Consider the below Snippet :
var= o = new F();
o.constructor===F
the output would be- ✓
false
Correct - B
true
- C
0
- D
1
- ✓
- Question 4
Refer to the below image. As per the given code snippet, what will be the output?
- let tableRows=element.all(by.xpath("//*[@class='definition-table spaced ng-scope']/tr"))
- console.log(tableRows.length)

- ✓
4
Correct - B
1
- C
Element not found exception
- D
0
- Question 5
Predict the output of the following code:
function LogIn(uname,pass){
return pass+'Welcome '+uname;
}
console.log(parseInt(LogIn("Odin","12@Od")));
console.log(isNaN(LogIn("Odin","Od@12")));
- ✓
NaN true
Correct - B
undefined false
- C
undefined true
- D
12 true
- ✓
- Question 6
Predict the output of the below code snippet.
describe("Jasmine suite",function(){ let a=10 let b=20 beforeEach(){ if(a<b) throw "Exception" } it("--Spec 1",function(){ console.log("Spec 1") }) })- ✓
Spec 1
Correct - B
Jasmine Suite - -Spec
- C
throws an exception and suspends the execution of spec.
- D
throws an exception but still executes the "it" block Spec 1
- ✓
- Question 7
Protractor supports only angular application.
- ✓
True
Correct - B
False
- ✓
- Question 8
Predict the output of the following code snippet:
var value1=90;
change1=()=>value1=100
change2=()=>{
let value1=200;
if(true){
value1=900;
}
}change1();
console.log(value1);
change2();
console.log(value1);
- ✓
100 900
Correct - B
100 100
- C
900 900
- D
90 90
- ✓
- Question 9
Predict the output of the following JS snippet:
let choice='pizza';
switch(choice){
case 'pizza':
console.log('Pizza Hut');
break;
break;
case 'Pizza':
console.log('Dominos');
}- ✓
Pizza HutDominos
Correct - B
Pizza Hut
- C
Dominos
- D
SyntaxError
- ✓
- Question 10
Tom created declared below variables with values in Javascript What is divide by 0 in Javascript
var a = 10;
var b = 0;
document.write(a/b);- ✓
Blankspace printed
Correct - B
0 is printed
- C
Infinity is printed
- D
Some Garbage Value
- ✓
More in IVS Academy
Infosys Certified TOSCA Automation Tester
Infosys certified Digital Accessibility Expert
Infosys Certified Data QE platform Expert
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.