Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Data Types: Part I

Description

Quiz on Data Types: Part I, created by Code Ramp on 12/06/2018.
Code Ramp
Quiz by Code Ramp, updated more than 1 year ago
Code Ramp
Created by Code Ramp almost 7 years ago
444
0
1 2 3 4 5 (0)

Resource summary

Question 1

Question
Which of the following is not a JavaScript primitive data type?
Answer
  • Boolean
  • String
  • Decimal
  • Number

Question 2

Question
Given the string 'Hello world!', how would you find out how many characters are in the string?
Answer
  • 'Hello world!'.length
  • 'Hello world!'.len
  • 'Hello world!'.long
  • length('Hello world!')

Question 3

Question
Given the string 'Hello world!', which index is the letter 'e' found at?
Answer
  • 0
  • 1
  • 2
  • 3

Question 4

Question
What does the special character` \n` do?
Answer
  • Creates a new line in the string.
  • Makes it so our output skips the letter n.
  • Allows us to include quotes inside a string.

Question 5

Question
Which of the following are valid operators in JavaScript?
Answer
  • %
  • +
  • /
  • **
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

Yr 12 Biology Mid-Year Exam Notes Part 1
gbridgland
NeuroAnatomy
أطباء 2020
Of Mice and Men - Themes
Hafsa A
History - Germany 1918 - 1945
Grace Evans
Sociology- Key Concepts
Becky Walker
Paradise Lost Themes/Quotes
Kirsty S
Chemistry 2
Peter Hoskins
How did the Cold War develop?
E A
organic chemistry
osgoconqr
AAHI_Card set 2 (Escalation criteria)
Tafe Teachers SB