Code Ramp
Quiz by , created more than 1 year ago

Quiz on Variables, created by Code Ramp on 14/06/2018.

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

Variables

Question 1 of 5

1

Fill the blank space to complete the text.

We think of variables as , they can contain a specific value.

Explanation

Question 2 of 5

1

If we initiate a new variable but do not assign it a value yet (e.g. var myNewVariable;), what value would this variable contain?

Select one of the following:

  • "" (an empty string)

  • undefined

  • null

Explanation

Question 3 of 5

1

Which of the below demonstrates good variable naming conventions?

Select one or more of the following:

  • var #1bestnameever = "Bob";

  • var firstName = "Bob";

  • var first name = "Bob";

  • var n = "Bob";

Explanation

Question 4 of 5

1

Select from the dropdown list to complete the text.

We bind a value to a variable using the ( assignment, equals ) operator.

Explanation

Question 5 of 5

1

After a variable has been assigned a value, it cannot be changed.

Select one of the following:

  • True
  • False

Explanation