Variables In Programs: Question Preview (ID: 12070)


Below is a preview of the questions contained within the game titled VARIABLES IN PROGRAMS: Review For The State Skills Exam. To play games using this data set, follow the directions below. Good luck and have fun. Enjoy! [print these questions]


Play games to reveal the correct answers. Click here to play a game and get the answers.

What is the scope of a variable?
a) Visibility (Where it can be used) b) a true or false c) It\'s data type d) An error in naming conventions
Which of the following is a valid variable identifier?
a) 1money b) 3 c) my money d) myMoney1
Which of the following is a valid variable declaration?
a) myMoney = double; b) const myMoney; c) myMoney double; d) double myMoney;
What is the data type of the following? Color myColor;
a) myColor b) int c) Color d) file
What is the data type of the following? bool flag;
a) flag b) bool c) int d) file
Which of the following initializes a variable correctly;
a) bool true; b) flag bool c) bool flag = true; d) bool true = flag;
Where should variables be declared?
a) At the beginning of the function or program b) At the end of the function or program c) never at all d) Anywhere you want
Which of the following is an int?
a) 45.3 b) -2 c) true d) Fred
Which of the following is a double?
a) 45.3 b) -2 c) true d) Fred
Which of the following is a String?
a) 45.3 b) -2 c) true d) Fred
Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from the data set above, visit ReviewGameZone.com and enter game ID number: 12070 in the upper right hand corner at ReviewGameZone.com or simply click on the link above this text.

TEACHERS / EDUCATORS
Log In
| Sign Up / Register