12. Which of the following statements about CSS grids are true? Select all that apply.

  • CSS grids are created using the display property with a value of grid.
  • CSS grids are created using the float property.
  • CSS grids can be used to create inline-block elements.
  • CSS grids can be used to create flexible layouts.

13. At which stage of the UX design process do you put yourself in the user's situation to get a better understanding of their requirements?

  • Ideation
  • Prototype
  • Define the problem
  • Empathize

14. Which one of the following is a valid object in JavaScript?

  • var anObject = { ‘car’: ‘ford’ };
  • var anObject = ‘car’: ‘ford’;
  • var anObject = [ ‘car’: ‘ford’ ];
  • var anObject = new Object[ ‘car’ : ‘ford’ ];

15. What will be the output of the following code?

var shoe = {};
shoe.type = 'sneaker';
shoe.brand = 'Nike';
shoe.info = function () { console.log('Nike sneaker') }
console.log(shoe.info)

  • undefined
  • ‘Nike sneaker’
  • [ Function (anonymous) ]
  • [ Function (info) ]

16. What will be the output of the following code?

var dataType = typeof('what is my type?');
console.log(dataType);

  • undefined
  • number
  • object
  • string

17. In programming, which paradigm separates data and functionality?

  • Declarative programming
  • Imperative programming
  • Functional programming
  • Object-oriented programming

18. What will be the output of the following code?

console.log(bat);
const bat = 'Not a vampire';

  • ‘Not a vampire’
  • Uncaught ReferenceError
  • undefined
  • null

Shuffle Q/A 2

19. What is wrong with the following code?

var house = {
doors: 8,
garage: 'Yes'
}

console.log(Object.keys(house));

  • undefined
  • [ ‘doors’, ‘garage’ ]
  • ‘doors’
    ‘garage’
  • { ‘doors’, ‘garage’ }

20. When implementing a form in React, which type of components are recommended to be used?

  • Docile component
  • Controlled component
  • Volatile component
  • Uncontrolled component

Leave a Reply