Quiz
Variables
This quiz has question types that open in the usual player.
Questions in this quiz (5)
1We think of variables as [blank_start]buckets[blank_end], they can contain a specific value.
- Abuckets
2If we initiate a new variable but do not assign it a value yet (e.g. var myNewVariable;), what value would this variable contain?
- A"" (an empty string)
- Bundefined
- Cnull
3Which of the below demonstrates good variable naming conventions?
- Avar #1bestnameever = "Bob";
- Bvar firstName = "Bob";
- Cvar first name = "Bob";
- Dvar n = "Bob";
4We bind a value to a variable using the [blank_start]assignment[blank_end] operator.
- Aassignment
- Bequals
5After a variable has been assigned a value, it cannot be changed.
- ATrue
- BFalse
Information
- Description
- Quiz on Variables, created by Code Ramp on 14/06/2018.
- Author
- Code Ramp
- Language
- English
- Views
- 475
- Tags
- Rating
- No ratings yet Rate this quiz