3
AssignmentMultiple Choice

Use Conditional Statements

Question 3 • VA-Information Technology Fundamentals B

You are writing a program to calculate student grades. Which of the following would make good variable names?

Answer
A
Var01, Var02, Var03, Var04
B
Test01, Quiz01, Test02, Quiz02
C
Dog01, Dog02, Dog03
D
X01, X02, X03, X04

Explanation

Good variable names describe what the stored values represent. Test01, Quiz01, Test02, and Quiz02 make it clear that the variables hold test and quiz grades. The other choices use generic or unrelated names, so they are harder to understand in a student-grades program.

AI-written and checked against the verified answer.

Previous
Next