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%.
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?
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?
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?
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?
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?
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?
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?
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?
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?
unshift() − Adds one or more elements to the front of an array and returns the new length of the array.