Industrial Technology Quiz




Following quiz provides Multiple Choice Questions (MCQs) related to Javascript Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Question 1 A mountain hut wants to install photovoltaic panels to provide a maximum consumption during the winter of 150 kWh per month. Determine the surface area of the panels required assuming a radiation density of 700 W/m2 during the winter months, a solar gain of 4 hours a day for 30 days a month and an efficiency of the installation of 8%.

a) 6,696 m2

b) 44,8 m2

c) 22,32 m2

d) 1,94 m2

Correct answer : C

Explanation

To solve this answer we first have to calculate: 150 kWh/(4·30 h).

Once we calculate the kW we need to cover the consume, we calculate the surface we would need if the working was ideal (1.25 kW · [1m2/0,7 kW]). Now we obtain that we need 1.786 square meters, but we have to take into account that the efficiency is 8%: in other words, per each 8 square meters we calculate we need, we would use a 100 in real life. Thus, we calculate the surface as follows: 1.786 m2 · [100/8].

The final result is 22.32 square meters.

Q 2 - Can you assign a anonymous function to a variable?

a) - true

b) - false

c) 6,696 m2

d) 44,8 m2

Correct answer : B

Explanation

To solve this answer we first have to calculate: 150 kWh/(4·30 h).

Once we calculate the kW we need to cover the consume, we calculate the surface we would need if the working was ideal (1.25 kW · [1m2/0,7 kW]). Now we obtain that we need 1.786 square meters, but we have to take into account that the efficiency is 8%: in other words, per each 8 square meters we calculate we need, we would use a 100 in real life. Thus, we calculate the surface as follows: 1.786 m2 · [100/8].

The final result is 22.32 square meters.

Q 3 - Which built-in method calls a function for each element in the array?

A - while()

B - loop()

C - forEach()

D - None of the above.

Answer : C

Explanation

forEach() method calls a function for each element in the array.

Q 4 - Which built-in method returns the string representation of the number's value?

A - toValue()

B - toNumber()

C - toString()

D - None of the above.

Answer : C

Explanation

toString() method returns the string representation of the number's value.

Q 5 - Which of the following function of Boolean object returns the primitive value of the Boolean object?

A - toSource()

B - valueOf()

C - toString()

D - None of the above.

Answer : B

Explanation

valueOf() − Returns the primitive value of the Boolean object.

Q 6 - Which of the following function of String object extracts a section of a string and returns a new string?

A - slice()

B - split()

C - replace()

D - search()

Answer : A

Explanation

slice() − Extracts a section of a string and returns a new string.

Q 7 - Which of the following function of String object returns the calling string value converted to lower case while respecting the current locale?

A - toLocaleLowerCase()

B - toLowerCase()

C - toString()

D - substring()

Answer : A

Explanation

toLocaleLowerCase() − Returns the calling string value converted to lower case while respecting the current locale.

Q 8 - Which of the following function of String object causes a string to be italic, as if it were in an <i> tag?

A - fixed()

B - fontcolor()

C - fontsize()

D - italics()

Answer : D

Explanation

italics() − Causes a string to be italic, as if it were in an <i> tag.

Q 9 - Which of the following function of Array object creates a new array with the results of calling a provided function on every element in this array?

A - push()

B - join()

C - pop()

D - map()

Answer : D

Explanation

map() − Creates a new array with the results of calling a provided function on every element in this array.

Q 10 - Which of the following function of Array object adds one or more elements to the front of an array and returns the new length of the array?

A - unshift()

B - sort()

C - splice()

D - toString()

Answer : A

Explanation

unshift() − Adds one or more elements to the front of an array and returns the new length of the array.


javascript_questions_answers.htm