Javascript

Javascript

University

10 Qs

quiz-placeholder

Similar activities

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

University

10 Qs

Understanding Email, Contacts and Calendaring

Understanding Email, Contacts and Calendaring

University

10 Qs

ICT 0513 - Chapter 4 : System Unit

ICT 0513 - Chapter 4 : System Unit

University

15 Qs

BB

BB

University

10 Qs

Javascript

Javascript

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Nurfarahhanis Binti Abdul Rashid

Used 48+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?