1.
In the following JavaScript code, the getAvg() function _________________________________________.
2.
In the following JavaScript code snippet, the output of oddsums(5) is ________________________________.
function oddsums(n) {
    var total = 0,
        result = [];
    for (var x = 1; x <= n; x++) {
        var odd = 2 * x - 1;
        total += odd;
        result.push(total);
    }
    return result;
}
3.
What is the output of the following Node.js code:
z=z+1;
console.log(z);
4.
What is the output of the following JavaScript code:
[a,b]=[b,a];
5.
Which of the following statements is correct:

  1. MongoDB is more flexible for modification of the document structure.

  2. When compared to MongoDB, RDBMS makes replication easy.

  3. MongoDB has built-in clustering.

  4. The object-oriented nature of MongoDB improves its performance.

  5.  
6.
RDBMS and MongoDB are being compared. It is known that you use tables in RDBMS but MongoDB has its own way of gathering information.
What is the format in which MongoDB accumulates data?
7.
Which of these is used to represent the given information in MongoDB?
8.
In MongoDB, which of the following statements about dynamic schema is correct?
9.
Every sync source member that holds sync information in MongoDB has a _____________ collection.
10.
In MongoDB, which of the following is a hexadecimal string assuring the uniqueness of a document?