GoConqr has a new look! Let us know what you think.

Quiz

Closures

Rimika Chaudhury 5 questions

Take the quiz

Questions in this quiz (5)

  1. 1What are closures?
    1. AClosures are functions
    2. BClosures are easier said than done
    3. CClosure is an abstract and elusive concept
    4. DClosure is what you get on new year's eve
    5. EClosure is putting things in a box and packing it up
  2. 2the output of the code in case of closures:

    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}

    greetMe()
    1. AHello, me!
    2. BHello, Bruce Wayne!
    3. CHello, Batman!
    4. DHello, Dark Knight!
    5. EFatal Error
  3. 3The output of the code in case of non-closures:
    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}

    greetMe()
    1. AHello, Batman!
    2. BHello, Jarvis!
    3. CHello, undefined!
    4. DHello, Joker!
    5. Efunction greetMe() {
      console.log('Hello, ' + me + '!')}
      }
  4. 4The output of the code in JS:
    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}
    me = 'Batman'

    greetMe()
    1. Aundefined
    2. BHello, Batman!
    3. CHello, undefined!
    4. DHello, NULL!
    5. EHello, Bruce Wayne!
  5. 5A language without the support of closures would need one of these:
    1. Adestructuring
    2. Bdata object or a request object
    3. Cpolite words
    4. Da data structure like arguments
    5. Elinked lists

Information

Description
Quiz on Closures, created by Rimika Chaudhury on 18/06/2018.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?