Practice Quiz_W04

Practice Quiz_W04

Professional Development

30 Qs

quiz-placeholder

Similar activities

Let's Get Trivial

Let's Get Trivial

Professional Development

25 Qs

LIST-TUPLES-SET-DICTIONARY

LIST-TUPLES-SET-DICTIONARY

Professional Development

25 Qs

Playwright Quiz 1

Playwright Quiz 1

Professional Development

25 Qs

Operating Systems

Operating Systems

University - Professional Development

25 Qs

PLD_FinalsSAT Quiz

PLD_FinalsSAT Quiz

Professional Development

25 Qs

Intelligent System

Intelligent System

Professional Development

25 Qs

Scratch Programming Quiz

Scratch Programming Quiz

Professional Development

25 Qs

Unreal Engine Basic

Unreal Engine Basic

Professional Development

30 Qs

Practice Quiz_W04

Practice Quiz_W04

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Erum Naz sohni23pk@yahoo.com

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?