Full Stack Quiz 10

Full Stack Quiz 10

Professional Development

10 Qs

quiz-placeholder

Similar activities

Kiểm tra XML1

Kiểm tra XML1

Professional Development

15 Qs

Nodejs: Templating with EJS

Nodejs: Templating with EJS

Professional Development

10 Qs

CSS basics

CSS basics

Professional Development

15 Qs

Selenium-1

Selenium-1

Professional Development

11 Qs

Revisão Programação Web - 2

Revisão Programação Web - 2

10th Grade - Professional Development

15 Qs

HTML Basics

HTML Basics

Professional Development

14 Qs

Excel Quiz-IF, AND, OR, DATE and DATABASE FUNCTIONS

Excel Quiz-IF, AND, OR, DATE and DATABASE FUNCTIONS

Professional Development

13 Qs

Javascript + JQuery (Parte 1)

Javascript + JQuery (Parte 1)

Professional Development

10 Qs

Full Stack Quiz 10

Full Stack Quiz 10

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Vindhya Gaddam

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function among the following lets to register a function to be invoked once?


setTimeout()

setInterval()

settime()

setTotaltime()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following JavaScript code?

<p>1</p>

<p>2</p>

<p>3</p>

<p> hello </p>

 

<script>

function myFunction()

{

   var s = document.getElementsByTagName("P").length;

   alert(s);

}

</script>

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following JavaScript code?

 

<head id="myHead">

  <title>My title</title>

</head>

<p id="demo"></p>

<script>

function myFunction()

{

   var x = document.head.id;

   document.getElementById("demo").innerHTML = x;

}

</script>

demo

myHead

error

undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the following ways could we change the content of an element node divElement to the text 'Changed'?

 

BdivElement.innerText = 'Changed'

AdivElement.innerHTML = 'Changed'

DdivElement.appendChild(document.createTextNode('Changed'))

Both a & b

CdivElement.innerContent = 'Changed'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents loops in javascript?

for

  while

forEach

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What among the following is an appropriate when an event occurs when the user clicks on an element?

 

  onclick

onchange

onkeyup

onblur

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Consider the below code:

Identify the correct code in order to fetch the value entered in username text field?

< body>

< form name="register">

Enter username < input value="John" id="name" name="username">

< /form>

< /body>

 

document.getElementById ("name").value

document.getElementByName ("name").value

   None of the above

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?