PGE Revision 5

PGE Revision 5

12th Grade

30 Qs

quiz-placeholder

Similar activities

Java Script

Java Script

12th Grade

30 Qs

HTML, CSS, Javascript-II

HTML, CSS, Javascript-II

12th Grade

25 Qs

Engineering

Engineering

12th Grade

25 Qs

JavaScript

JavaScript

9th - 12th Grade

29 Qs

JavaScript Quiz

JavaScript Quiz

9th - 12th Grade

29 Qs

JavaScript

JavaScript

10th - 12th Grade

25 Qs

Web Design Final Exam Review-HTML

Web Design Final Exam Review-HTML

9th - 12th Grade

33 Qs

uCertify Chapter 5 UID Test

uCertify Chapter 5 UID Test

8th - 12th Grade

30 Qs

PGE Revision 5

PGE Revision 5

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Daniel undefined

Used 10+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which one of the following code does NOT allow the value of a variable to be changed after it is declared and assigned in JavaScript?

const width = 13.20;

fixed width = "13.20";

static width = "13.20";

constant width = 13.20;

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which method is use to create the above figure?

alert().

custom().

modal().

popup().

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a bug in a computer program?

Error.

Number.

Symbol.

Image.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which is the correct way to perform a single line comment in JavaScript?

"Single line comment"

II Single line comment

<!-- Single line comment -->

// Single line comment

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which is the correct JavaScript code to link to an external JavaScript file named "holiday.js" in the same folder?

<script src="holiday.js"></script>

<script sync="holiday.js"></script>

<script charset="holiday.js"></script>

<script file="holiday.js"></script>

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which one of the following statements best describes a function?

It always returns a empty value.

It is always executed even when not called.

It refers to any block of code enclosed within < >.

It is a block of code that has to be called to perform some tasks.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which one of the following options is the correct way to declare an array called stationary?

var stationary = #pen, paper, clip;

var stationary = @pen, paper, clip;

var stationary = ["pen", "paper", "clip"];

var stationary = ??"pen", "paper", "clip"??;

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?