AND SOLUTIONS RATED A+
✔✔Selection structures allow us the ability to modify the order of statement execution
based on boolean expressions. - ✔✔True
✔✔This alternative to an if will cause a block of code to execute if a Boolean expression
is false. - ✔✔else
✔✔This statement tests a series of conditions and will execute a block of code when it
finds one is true. - ✔✔is-else-if
✔✔This logical operator will return true if either or both conditions are true. - ✔✔Logical
OR
✔✔What will display to the screen when the following code executes?
age ← 55
IF(age >= 16 && age <=80) THEN
PRINTLINE("You can drive!")
ENDIF
PRINT ("Be safe!") - ✔✔You can drive!
Be safe!
✔✔Indentation is a requirement of all languages and will code will not run correctly if not
used. - ✔✔False
✔✔The relational operator to test equality is: - ✔✔==
✔✔____________________ must be declared before they can have values assigned to
them or be used in a program. - ✔✔Variables
✔✔In a statically typed language, the boolean data type may contain which values? -
✔✔true or false
✔✔In a statically typed language, if x has been declared an int, which of the following
statements is invalid? - ✔✔x = 1,000;
✔✔What is the result of the following expression?10 + 5 * 3 - 20 - ✔✔5
✔✔What will be displayed as a result of executing the following code?
x ← 5, y ← 20
x += 32;
, y /= 4;
PRINT("x = " + x + ", y = " + y); - ✔✔x = 37, y = 5
✔✔In pseudocode, it is not necessary to include the data type when you declare a
variable. - ✔✔True
✔✔Variable names cannot contain which of the following? - ✔✔spaces and special
characters
✔✔Select the appropriate data type for a variable to store your name in a statically-
typed language: - ✔✔string
✔✔Select the appropriate data type for a variable to store the price of an item in a
statically-typed language: - ✔✔double or float
✔✔Select the appropriate data type for a variable to store the number of eggs that
represent a dozen, in a statically-typed language: - ✔✔integer
✔✔Select the appropriate data type for a variable to store your letter grade for CSE
1321, in a statically-typed language: - ✔✔char
✔✔Select the appropriate data type for a variable to store whether or not are registered
for a class, in a statically-typed language: - ✔✔boolean
✔✔Select the appropriate data type for a variable to store your GPA, in a statically-
typed language: - ✔✔double or float
✔✔The symbol used for assigning a value to a variable is the: - ✔✔=
✔✔A value that is written into the code of a program exactly as its meant to be
interpreted is a: - ✔✔literal
✔✔Programmers are able to annotate their code using special character(s) provided by
syntax of a language. These annotations are ignored by the compiler. - ✔✔True
✔✔Identify the operator that you can use to determine if a number is even or odd. -
✔✔% (modulus, mod)
✔✔Given x ← 2 of the following expressions is equivalent to: x ← x + 5 - ✔✔x += 5