Intro to Coding Assessment (*NOT* graded! Don’t sweat this!)
Name: ______
- What are the green colored lines that start with // for?
- What is the C# keyword used when asking a question/making a decision?
- What is the C# keyword used to create a loop?
- What are the curly brace pairs { and } used for?
- The following line of code creates a variable:
int nextNum = 3;
a) What type of variable is it?
b) What is the name given this variable?
c) What is the initial (or starting) value of the variable?
- What are the green colored lines that start with // for?
They are comments. They help the programmers remember/understand what is intended by the following section of code. Ignored by the computer.
- What is the C# keyword used when asking a question/making a decision?
if
- What is the C# keyword used to create a loop?
while
- What are the curly brace pairs { and } used for?
They identify a section of code that is grouped together.
- The following line of code creates a variable:
int nextNum = 3;
a) What type of variable is it?
An integer number (int).
b) What is the name given this variable?
nextNum.
What is the initial (or starting) value of the variable?
3 (the = part).