placeholder image to represent content

C D Quiz 9

Quiz by crio

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
5 questions
Show answers
  • Q1
    In 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
  • Q2
    How do arrow functions differ from traditional functions in JavaScript?
    Arrow functions are only used for mathematical calculations, traditional functions are used for all other purposes
    Traditional 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 arguments
    30s
  • Q3
    What 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 operations
    Some 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 integer
    Math.log() for logarithmic functions, Math.random() for generating random numbers, Math.abs() for absolute value
    30s
  • Q4
    How can you create an array of objects in JavaScript?
    Arrays of objects require a special constructor function in JavaScript
    You 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 JavaScript
    Objects cannot be stored in arrays in JavaScript
    30s
  • Q5
    30s

Teachers give this quiz to your class