Search Header Logo

PGE Revision 5

Authored by Daniel undefined

Computers

12th Grade

Used 10+ times

PGE Revision 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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"??;

Access all questions and much more by creating a free account

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?