#  >> Standardized Tests >> GMAT

Mb0036 sample question papers free downloand?

Here is a sample question paper for MB0036:

Multiple Choice Questions:

1. Which of the following languages is considered the grandfather of most modern programming languages?

a) JavaScript

b) C

c) Java

d) Python

2. What does the 'else' statement do in JavaScript?

a) It ends the 'if' block

b) It checks if the 'if' condition is false

c) It executes code if the 'if' condition is true

d) It creates a new block of code

3. What is the correct way to declare a function in JavaScript?

a) function myFunction()

b) myFunction()

c) var myFunction = function()

d) myFunction = function()

4. Which of the following is not a primitive data type in JavaScript?

a) Number

b) String

c) Object

d) Boolean

5. How can you add an element to the end of an array in JavaScript?

a) array[length] = element

b) array.push(element)

c) array.add(element)

d) array[array.length] = element

6. What does the 'continue' statement do in JavaScript?

a) It jumps to the next statement in the loop

b) It terminates the loop

c) It checks if the loop condition is still true

d) It creates a new loop

7. Which operator is used to assign a value to a variable in JavaScript?

a) +

b) /

c) =

d) *

8. What does the 'break' statement do in JavaScript?

a) It jumps to the next statement in the loop

b) It terminates the loop

c) It checks if the loop condition is still true

d) It creates a new loop

Short Answer Questions:

1. Briefly explain the concept of encapsulation in object-oriented programming.

2. What is the difference between a 'while' loop and a 'do-while' loop in JavaScript?

3. How can you create an array in JavaScript and assign values to it?

4. Explain the difference between '=== ' and '==' operators in JavaScript.

Coding Questions:

1. Write a JavaScript function to find the maximum number in an array of integers.

2. Write a JavaScript program to print all the even numbers from 1 to 100.

3. Write a JavaScript function to check if a given string is a palindrome.

Essay Question:

Discuss the concept of object-oriented programming and its benefits in software development, providing real-life examples.

Learnify Hub © www.0685.com All Rights Reserved