Font size
WorksheetsFundamentals of Programming Prefinals
Total questions: 44
Worksheet time: 44mins
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the yellow-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the green-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the cyan-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the pink-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the gray-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the violet-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the yellow-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the green-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the cyan-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the pink-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the grey-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the violet-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the yellow-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the green-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the cyan-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the pink-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the grey-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the violet-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the yellow-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the green-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the cyan-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the pink-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the grey-highlighted blank only.
(a)
Fill in the missing parts of the C++ program with the correct code. Provide the answer for the violet-highlighted blank only.
(a)
Write the most appropriate C++ operator
Increasing the value of a variable counter by 1.
(a)
Write the most appropriate C++ operator.
Checking if a variable age is greater than or equal to 18.
(a)
Write the most appropriate C++ operator.
Adding the value of b to the value of a and store the res
(a)
Write the most appropriate C++ operator.
Checking if two variables, x and y, are equal in value.
(a)
Write the most appropriate C++ operator.
Checking if a number num is negative (less than zero).
(a)
Write the most appropriate C++ operator.
Calculating the remainder when dividend is divided by divisor.
(a)
Write the most appropriate C++ operator.
Checking if a person is eligible for a discount (age is over 65 OR is a member).
(a)
Write the most appropriate C++ operator.
Halving the value of a variable price.
(a)
Write the most appropriate C++ operator.
Checking if a value score is not equal to 100.
(a)
Write the most appropriate C++ operator.
Decreasing the value of a variable lives by 1.
(a)
Write the most appropriate C++ operator.
Checking if a value temperature is less than 0 or greater than 100
(a)
Write the most appropriate C++ operator.
Multiplying a variable total by a discount factor of 0.9 (10% discount).
(a)
Write the most appropriate C++ operator.
Checking if a number value is positive (greater than 0).
(a)
Write the most appropriate C++ operator.
Assigning the result of an expression (a + b) * c to a variable result.
(a)
Write the most appropriate C++ operator.
Checking if a person is an adult (age >= 18) AND has a valid driver's license.
(a)
Write the most appropriate C++ operator.
Squaring a number n (multiply it by itself).
(a)
Write the most appropriate C++ operator.
Checking if a value x is less than or equal to y.
(a)
Write the most appropriate C++ operator.
Adding 5 to a variable count in the most concise way.
(a)
Write the most appropriate C++ operator.
Checking if a Boolean variable isReady is false.
(a)
Write the most appropriate C++ operator.
Doubling the value of a variable salary.
(a)
