[Quiz 4] JavaScript string

[Quiz 4] JavaScript string

University

14 Qs

quiz-placeholder

Similar activities

Recordando JavaScript

Recordando JavaScript

University

10 Qs

Test de JavaScript

Test de JavaScript

University

10 Qs

Quiz on Object Oriented Programming and Java

Quiz on Object Oriented Programming and Java

University

15 Qs

execption handling

execption handling

University

17 Qs

JS P1

JS P1

University

17 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

Database NoSQL (MongoDB)

Database NoSQL (MongoDB)

University - Professional Development

12 Qs

[Kelas 8 SMP] Bab 1 - Bahasa Program Java

[Kelas 8 SMP] Bab 1 - Bahasa Program Java

8th Grade - University

10 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?