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

    A
    7

    B
    2

    C
    60

    D
    70

    Note: Evaluate (12%5) as (12 mod 5) [mod is determine the reminder of a division] 5|12|2 10 ------- 2 Here reminder is 2
    1. Report
  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;

    Note: Not available
    1. Report
  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

    Note: Not available
    1. Report
  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

    Note: Not available
    1. Report
  5. Question: Which of the following value can be applied as Boolean literal in JavaScript is/are correct?

    A
    yes/no

    B
    1/0

    C
    true/false

    D
    Both true/false and 1/0

    Note: Not available
    1. Report
  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

    Note: Not available
    1. Report
  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

    Note: Evaluate c=(a<b) as c=5<6 or c=true or c=1 Therefore, c*25 = 1*25 = 25
    1. Report
  8. Question: How many types of variables are there in javascript?

    A
    1

    B
    2

    C
    3

    D
    4

    Note: Global and local
    1. Report
  9. Question: " ; "and "var" Is ____ in jacascript.

    A
    Mandatory

    B
    Common

    C
    Optional

    D
    Temporary

    Note: Not available
    1. Report
  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

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