HomeExamsIVS AcademyTETAIVSJSPIC2001
TETAIVSJSPIC2001

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.

IntermediateIVS Academy180 min
Free questions

10 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.

  1. Question 1

    Which of the following will assert for the element not to be present on the page?

    1. element(by.css('#abc').isPresent()).toBe(true)
    2. element(by.css('#abc').isPresent()).not.toBe(true)
    3. element(by.css('#abc').isPresent()==true).toBeTruthy()
    4. element(by.css('#abc').isPresent()==true).toBeFalsy()
    5. 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

  2. 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

  3. 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

  4. Question 4

    Refer to the below image. As per the given code snippet, what will be the output?

    1. let tableRows=element.all(by.xpath("//*[@class='definition-table spaced ng-scope']/tr"))
    2. console.log(tableRows.length)

    • 4

      Correct
    • B

      1

    • C

      Element not found exception

    • D

      0

  5. 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

  6. 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

  7. Question 7

    Protractor supports only angular application.

    • True

      Correct
    • B

      False

  8. 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

  9. 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

  10. 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

Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

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.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram