Search Header Logo

Web Exam 2_jan22

Authored by Wafaa Shalash

Computers

University - Professional Development

Used 5+ times

Web Exam 2_jan22
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1.  What will be the output of the following code snippet?

<script type="text/javascript">

a = 9 + "9";

document.write(a);

</script>

Error

18

99

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following keywords is used to define a variable in Javascript?

let

var

const

float

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following HTML attribute is used to define inline styles?

style

script

class

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to create a list using the lowercase letters

<ol alpha = "a" >

<ol type = "a">

<ol type = a>

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

var grade='Z';  

var result;  

switch(grade)  

{  

case'A':  

        result+="10";  

case'B':  

        result+=" 9";  

case'C':  

        result+=" 8";  

default:  

        result+=" 0";  

}  

document.write(result);  

10

17

0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following variables takes precedence over the others if the names are the same?

The global variable

The local element

none

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the JavaScript, which one of the following is not considered as an error:

Syntax error

Missing of semicolons

Division by zero

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?