1. Question: What does (12%5) return? 

    A
    7

    B
    2

    C
    60

    D
    70


    1. Twitter
    2. Details
  2. Question: What is/are the correct string concatenation? 

    A
    var age=21; var str=”My”+”age”+”is ”+age;

    B
    var age=21; var str=My+age+is+age;

    C
    var age=21; var str=”My”+”age”+is ”+age;

    D
    var age=21; var str=My+”age”+is+age;

    E
    var age=21; var str="My age is "+age;


    1. Twitter
    2. Details
  3. Question: Which of the following is/are not primitive data type(s) in javascript? 

    A
    boolean

    B
    number

    C
    string

    D
    null

    E
    undefined

    F
    Array

    G
    Math


    1. Twitter
    2. Details
  4. Question: A function or variable name in JavaScript begins with ___ 

    A
    an ASCII letter

    B
    a dollar sign

    C
    an ASCII letter or underscore

    D
    an ASCII letter, dollar sign or underscore

    E
    an ASCII letter or dollar sign


    1. Twitter
    2. Details
  5. Question: Which of the following value of Boolean literal in JavaScript is/are correct? 

    A
    yes/no

    B
    1/0

    C
    True/False

    D
    Both True/False and 1/0


    1. Twitter
    2. Details
  6. Question: What is the output of the following JavaScript code?
    var name="My name is Emran!";
    document.write(name.length);
    
     

    A
    14

    B
    13

    C
    17

    D
    19


    1. Twitter
    2. Details
  7. Question: What will be the output for the following codes in JavaScript?
    var a=5;
    var b=6;
    var c=(a<b);
    var d="Print "+(c*25)+" dollars";
    alert(d);
    
     

    A
    Print 25 dollars

    B
    Print 125 dollars

    C
    Print 0 dollars

    D
    Print 150 dollars


    1. Twitter
    2. Details
  8. Question: How many types of variables are there in javascript? 

    A
    1

    B
    2

    C
    3

    D
    4


    1. Twitter
    2. Details
  9. Question: " ; "and "var" Is ____ in jacascript. 

    A
    Mandatory

    B
    Common

    C
    Optional

    D
    Temporary


    1. Twitter
    2. Details
  10. Question: What will be the output of the following code:
    <script>
     var alpha="Apples";
     var beta=alpha+"Oranges";
     var gamma=Math.sqrt(omega);
     var delta=200/gamma;
     alert(delta);
    </script>
    
     

    A
    No output because ReferenceError: omega is not defined

    B
    200

    C
    null

    D
    delta


    1. Twitter
    2. Details