[Quiz 4] JavaScript string

[Quiz 4] JavaScript string

University

14 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

University

11 Qs

c set 3

c set 3

University

10 Qs

WEB Dasar

WEB Dasar

1st Grade - University

10 Qs

Internet & Web

Internet & Web

University

12 Qs

Fundamentos de Tecnología de la Información

Fundamentos de Tecnología de la Información

University

10 Qs

VKU JF - Bộ 2

VKU JF - Bộ 2

University

14 Qs

Coding Quiz

Coding Quiz

6th Grade - Professional Development

14 Qs

IEEE Coding Competition

IEEE Coding Competition

University

13 Qs

[Quiz 4] JavaScript string

[Quiz 4] JavaScript string

Assessment

Quiz

Other

University

Hard

Created by

suntana_school comp_sci

Used 3+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following is the correct statement for string declaration in JavaScript?

Only A

Only B

Only C

All are correct

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct statement that finds the string length in JavaScript?

let a = 'hello';

a.length();

a.length;

a.getLength();

String.length(a);

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Is the below JavaScript variables valid?

valid, valid

valid, invalid

invalid, valid

invalid, invalid

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the console output of the below JavaScript code?

angoO

Mang

Mango

Mango,

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which statement produces ", kiwi"?

substr(str(9,12));

str.subString(9,13);

str.substr(9,4);

subString(str(9,5));

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Select the correct JavaScript code to replace the word "Maimi" with "California":

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the given snippet?

Hello

,

true

false

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?