COMP 110 Test– Complete Questions with 100%
Correct Answers | Verified
When will you use bool values in your programs? - ✔✔When making logical decisions
Which of the following statements are true about expressions?
1. Every expression will evaluate to a value
2. Every expression evaluates to a specific value
3. Anywhere you can write an expression that evaluates to one type, you could write
another expression in its place as long as it evaluates to the same type and still have a
validly typed program - ✔✔1,2,3
Which operator is used to raise one number to the power of another? - ✔✔**
Which operator is used for integer division and results in an int typed value? - ✔✔//
What operator is used to find the remainder of an integer division calculation and
results in an int typed value? - ✔✔%
Comparing two string values using relational operators always works the way you would
expect it to in the English Language - ✔✔False
Which of the following relational operators tests whether two values are equal to one
another? - ✔✔==
Correct Answers | Verified
When will you use bool values in your programs? - ✔✔When making logical decisions
Which of the following statements are true about expressions?
1. Every expression will evaluate to a value
2. Every expression evaluates to a specific value
3. Anywhere you can write an expression that evaluates to one type, you could write
another expression in its place as long as it evaluates to the same type and still have a
validly typed program - ✔✔1,2,3
Which operator is used to raise one number to the power of another? - ✔✔**
Which operator is used for integer division and results in an int typed value? - ✔✔//
What operator is used to find the remainder of an integer division calculation and
results in an int typed value? - ✔✔%
Comparing two string values using relational operators always works the way you would
expect it to in the English Language - ✔✔False
Which of the following relational operators tests whether two values are equal to one
another? - ✔✔==