
CODE M4 Review Quiz PART 1
Quiz by Katrina Knoedl
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Match the term to the correct match:
When you declare a variable you are:Â
Variable Type and Variable Name both must be included when declaring a variable in most languages.Â
When defining a variable in most languages you must provide four things Drag the correct 4 to the MUST PROVIDE Lable and drag the left over chooses to the DO NOT NEED:Â
You must always define and declare a variable in the same step.Â
Match/Link the term with it's match
After running this code: var x = 15; What is the value of x?
In the example below, the variable yPos is being defined but not declared.
yPos = 2;
Variable names CAN BE the same as existing variable names.
The variable names you pick for your code must begin with a capital letter.
In the example below, the variable xPos is being defined. var xPos;
In the example below, the variable xPos is being both declared AND defined.
var xPos = 42;
Match these to the correct match:
Match up with the correct match:
To create a char or a string, you surround text in __________.
The term __________ refers to combing two strings or numbers together.Correct Answer