Intro to Coding Assessment (*NOT* graded! Don’t sweat this!)

Name: ______

  1. What are the green colored lines that start with // for?
  2. What is the C# keyword used when asking a question/making a decision?
  3. What is the C# keyword used to create a loop?
  4. What are the curly brace pairs { and } used for?
  5. 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?

  1. 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.

  1. What is the C# keyword used when asking a question/making a decision?

if

  1. What is the C# keyword used to create a loop?

while

  1. What are the curly brace pairs { and } used for?

They identify a section of code that is grouped together.

  1. 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).