Computer Mathematics · Components of Programming

Virginia SOL CM.CP.2

Virginia SOL CM.CP.2 is part of the Components of Programming strand in Computer Mathematics (Math). Under this Standards of Learning objective, students construct Boolean expressions and implement conditional statements. Below is what CM.CP.2 covers in plain language, the specific skills it is assessed on, the key concepts to review, and how to practice CM.CP.2 for the Virginia SOL test.

What SOL CM.CP.2 means

Construct Boolean expressions and implement conditional statements.

Skills you’ll practice for CM.CP.2

  • Write and implement Boolean expressions using logical and relational operators (e.g., !, &&, ||, ==, <, >, >=, <=, !=).
  • Write and implement 'if' conditional statements.
  • Write and implement 'if/else' conditional statements.
  • Write and implement compound conditional statements (e.g., nested conditionals, chained conditional statements).
  • Determine which parts of an algorithm are executed based on a condition being true or false.

Key concepts covered by CM.CP.2

  • Boolean expressions
  • logical operators
  • relational operators
  • &&
  • ||
  • ==
  • !=
  • if statements
  • conditional statements
  • branching
  • if/else statements
  • compound conditionals
  • nested conditionals
  • chained conditionals
  • algorithm execution
  • conditional logic

How to study and practice SOL CM.CP.2

Start with a quick diagnostic to see whether CM.CP.2 is already solid, then work each skill above with guided notes, flashcards, and SOL-style practice questions. For official released items, see our Virginia SOL practice tests guide and how to study for the SOL test.

  • CM.CP.1Design a step-by-step plan to perform a task or solve a problem.
  • CM.CP.3Perform iteration with loops.
  • CM.CP.4Write and implement the output phase of a computer program.
  • CM.CP.5Write and implement the input phase of a computer program.
  • CM.CP.6Implement library functions.
  • CM.CP.7Write and implement user-defined functions.
  • CM.CP.8Implement pre-defined algorithms, including search and sort routines.

Frequently asked questions about SOL CM.CP.2

What is Virginia SOL CM.CP.2?

SOL CM.CP.2 is a Computer Mathematics Standard of Learning in the Components of Programming strand. It expects students to construct Boolean expressions and implement conditional statements.

What skills does SOL CM.CP.2 cover?

SOL CM.CP.2 is assessed on 5 skills: write and implement Boolean expressions using logical and relational operators (e.g., !, &&, ||, ==, <, >, >=, <=, !=); write and implement 'if' conditional statements; write and implement 'if/else' conditional statements; write and implement compound conditional statements (e.g., nested conditionals, chained conditional statements); determine which parts of an algorithm are executed based on a condition being true or false.

What strand of Computer Mathematics is SOL CM.CP.2 in?

SOL CM.CP.2 belongs to the Components of Programming reporting strand of the Computer Mathematics Virginia Standards of Learning.

How do I study and practice for SOL CM.CP.2?

Start with a diagnostic to see whether CM.CP.2 is already solid, then work the 5 skills above with guided notes, flashcards, and SOL-style practice questions. For official released items, see the Virginia SOL practice tests guide.