Search Header Logo

Practice Quiz_W04

Authored by Erum Naz sohni23pk@yahoo.com

Computers

Professional Development

Used 5+ times

Practice Quiz_W04
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       When using event driven programming, which of the following suits the example of clicking a single right-button on a command button in a GUI program to trigger a routine or save information to a folder?

User Interface

Interpreter

      Event Handling

   None of the above.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       What can we attach to DOM elements in order to respond to events in the system?

a.       Event Handlers

b.       Event Listeners

c.       Event Processors

d.       Event Coordinators

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       What method do we use to create an event listener?

a.       element.makeEventListener()

b.       element.listen()

c.       element.on()

d.       element.addEventListener()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       The following example uses what type of function to handle an event?

element.addEventListener(‘click’, function(event){});

a.       Named function

b.       Anonymous function

c.       Inline function

Arrow function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       What property on the event object contains the DOM object that invoked the event?

a.       event.element

b.       event.source

c.       event.target

d.       event.invoker

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       Why is the event.preventDefault() command used?

a.       To prevent the settling of default data values in the database.

b.       To prevent the execution of default actions in response to an event trigger.

c.       To enforce the submission of a form.

d.       To stop execution of all code.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       Which event trigger indicates the DOM has finished loading and processing?

DOMContentLoaded

      DOMReady

       DOMFinished

      DocumentReady

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?