Code Ramp
Quiz by , created more than 1 year ago

Quiz on Data Types: Part I, created by Code Ramp on 12/06/2018.

440
0
0
Code Ramp
Created by Code Ramp over 6 years ago
Close

Data Types: Part I

Question 1 of 5

1

Which of the following is not a JavaScript primitive data type?

Select one of the following:

  • Boolean

  • String

  • Decimal

  • Number

Explanation

Question 2 of 5

1

Given the string 'Hello world!', how would you find out how many characters are in the string?

Select one of the following:

  • 'Hello world!'.length

  • 'Hello world!'.len

  • 'Hello world!'.long

  • length('Hello world!')

Explanation

Question 3 of 5

1

Given the string 'Hello world!', which index is the letter 'e' found at?

Select one of the following:

  • 0

  • 1

  • 2

  • 3

Explanation

Question 4 of 5

1

What does the special character` \n` do?

Select one or more of the following:

  • Creates a new line in the string.

  • Makes it so our output skips the letter n.

  • Allows us to include quotes inside a string.

Explanation

Question 5 of 5

1

Which of the following are valid operators in JavaScript?

Select one or more of the following:

  • %

  • +

  • /

  • **

Explanation