
C D Quiz 9
Quiz by crio
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
5 questions
Show answers
- Q1In JavaScript, what is the key difference between objects and arrays?Objects are collections of key-value pairs, while arrays are ordered collections of values.Objects and arrays both store data in key-value pairs.Objects are ordered collections of values, while arrays are collections of key-value pairs.Arrays are unordered collections of values, while objects are ordered collections.30s
- Q2How do arrow functions differ from traditional functions in JavaScript?Arrow functions are only used for mathematical calculations, traditional functions are used for all other purposesTraditional functions require explicit return statements, while arrow functions automatically return the result of the expression.Arrow functions do not have their own 'this' keyword and cannot be used as constructor functions with 'new', whereas traditional functions have their own 'this' context and can be used with 'new'.Arrow functions cannot accept arguments, traditional functions can accept multiple arguments30s
- Q3What are some common math functions and constants available in JavaScript?Math.subtract() for subtraction operations, Math.infinity for representing positive infinity, Math.multiply() for multiplication operationsSome common math functions and constants in JavaScript include Math.sqrt() for square root, Math.PI for the value of pi, and Math.round() for rounding a number to the nearest integer.Math.factorial() for calculating factorial, Math.e for the base of the natural logarithm, Math.floor() for rounding down to the nearest integerMath.log() for logarithmic functions, Math.random() for generating random numbers, Math.abs() for absolute value30s
- Q4How can you create an array of objects in JavaScript?Arrays of objects require a special constructor function in JavaScriptYou can create an array of objects by defining an array and assigning objects to its elements using object literal notation.You can only create arrays of primitive values in JavaScriptObjects cannot be stored in arrays in JavaScript30s
- Q530s