1. Question: Which best describe void?

    A
    A method

    B
    A function

    C
    An operator

    D
    A statement

    Note: Not available
    1. Report
  2. Question: What command skips the rest of a case statement?

    A
    return

    B
    exit

    C
    continue

    D
    break

    Note: Not available
    1. Report
  3. Question: Which are the correct comparison operators?

    A
    >=,=<,==,!=

    B
    =<,=>,==,=!

    C
    >=,<=,==,!=

    D
    >=,<=,==,=!

    Note: = sign always be in the right side of the comparison operator
    1. Report
  4. 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
  5. Question: Which of the following is the correct precedence for the operation? Consider from left to right.

    A
    *,/,%,+,-

    B
    /,*,%,+,-

    C
    %,*,/,+,-

    D
    None

    Note: Not available
    1. Report
  6. Question: What output will produce for the following JavaScript code snippet?
    <script type="text/javascript">    
    var str=((45%2)==0)?"hello":"bye";  
     document.write(str); 
    </script>

    A
    bye

    B
    hello

    C
    error

    D
    0

    Note: ((45%2)==0) > 45%2 =1 > (1==0) > false Therefore, var str=((45%2)==0)?"hello":"bye";  > str = false ?"hello":"bye"; > str="bye"
    1. Report
  7. Question: ?: is called ______ operator

    A
    ternary

    Note: Not available
    1. Report
  8. Question: '|' is ______ oparator.

    A
    bitwise or

    Note: Not available
    1. Report
  9. Question: '^' is ______ oparator.

    A
    bitwise xor

    Note: Not available
    1. Report
  10. Question: A)______s are the buliding block of expressions and expressions are the buliding blocks of B)______s; however, expression themselves can be statements themself.

    A
    operator

    B
    statement

    Note: Not available
    1. Report