1. Question: How do you convert string into integer number?

    A
    With strToInt() function

    B
    With parseInt() function

    C
    With parseFloat() function

    D
    None of above

    Note: Not available
    1. Report
  2. Question: What is the correct output of the following code?
    var a=["Lenny","Harold","Mary","Jean","Sal"];
     alert(a.shift());

    A
    Sal

    B
    Jean

    C
    Lenny

    D
    None

    Note: Not available
    1. Report
  3. Question: What will produce the output of the following code?
    var computer=[“Dell”,”Gateway”,”Apple”,”IBM”,”HP”];
     alert(computer.slice(2,4));

    A
    Apple, IBM

    B
    Dell, Gateway

    C
    Gateway, IBM

    D
    Gateway, HP

    Note: Not available
    1. Report
  4. Question: What is the correct output of the following code?  var x=3*4+3+”2”; alert(x);

    A
    152

    B
    212

    C
    1232

    D
    3425

    Note: Not available
    1. Report
  5. Question: What is the correct output of the following code?
    for(i=0;i<4;i++){
    
     } 
    alert(++i);

    A
    3

    B
    4

    C
    5

    D
    6

    Note: Not available
    1. Report
  6. Question: What is the correct output for the following code?  
    var x=3; 
    var y=x>4?3:5; 
    alert(x+y);

    A
    no output

    B
    7

    C
    6

    D
    8

    Note: Not available
    1. Report
  7. Question: What is the correct output for the following code?
    var x=10; 
    x*=4; 
    x++; 
    x-=3; 
    alert(x);

    A
    40

    B
    41

    C
    37

    D
    38

    Note: var x=10; Evaluate line x*=4 as x=x*4 > x=10*4 > x=40 Evaluate line x++ as x=x+1 > x=40+1 > x=41 Evaluate line x-=3 as x=x-3 > x=41-3 > x=38 Therefore, the final value of x will be 38
    1. Report
  8. Question: which of the following is not returning by typeof unary operator?

    A
    number

    B
    string

    C
    boolean

    D
    null

    E
    object

    F
    function

    G
    datetime

    H
    undefine

    Note: Not available
    1. Report
  9. Question: What is the correct output for the following code?
    var str=”IDB-BISEW ROUND-13”;
    alert(str.indexOf(‘E’));

    A
    6

    B
    7

    C
    8

    D
    9

    Note: Not available
    1. Report
  10. Question: What is the correct output for the following code?
    var str=”IDB-BISEW ROUND-13”;
    alert(str.length);

    A
    17

    B
    16

    C
    18

    D
    15

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd