Javascript

Javascript

University

10 Qs

quiz-placeholder

Similar activities

Evaluación de Javascript

Evaluación de Javascript

University

15 Qs

CYBER 2

CYBER 2

University

15 Qs

DOM manipulation review

DOM manipulation review

University

10 Qs

java script

java script

University

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

REACTOR

REACTOR

University

15 Qs

Javascript

Javascript

KG - Professional Development

13 Qs

Basics of JavaScript

Basics of JavaScript

11th Grade - Professional Development

15 Qs

Javascript

Javascript

Assessment

Quiz

Computers

University

Medium

Created by

Nurfarahhanis Binti Abdul Rashid

Used 46+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of JavaScript language is

Object-oriented

Assembly-language

High-level

Object-based

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct output for the following JavaScript code:

<script>

x = 10;

y = 5;

z = x / y;

document.getElementById("demo").innerHTML = "The value of z is: " + z;

</script>

2

0

5

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, what is a block of statement?

  1. Conditional block

  1. block that contains a single statement

  1. block that combines a number of statements into a single compound statement

  1. both conditional block and a single statement

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen, if the following JavaScript code is executed?

<script>
alert(5 + 6);
</script>

  1. An error is displayed

  1. The values of count variable are logged or stored in a particular location or storage

Pop up box appear with the value

  1. An exception is thrown

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following is true about Javascript Objects, excepts

Containers for data values

Can be written with or without decimals

can be assigned with multiple values

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the syntax for declaring Javascript array?

var pet = [ "cat", "dog", "bird"]

var pet = [ cat, dog, bird]

var pet = { cat, dog, bird}

var pet = ( cat, dog, bird)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the getElementsByTagName() method ?

return the element by given id value

return the element by given class name

return the element by given tag name

return the element by given name value

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?