We are given several programming problems and we need to determine the correct outputs for each one. Problem 14: Determine the values of $7/2$ and $7 \text{ DIV } 2$. Problem 15: Evaluate the expression $(4*3+5 \text{ DIV } 2) + 5^2$. Problem 16: Evaluate the expression $9 \text{ MOD } 10$ and $10 \text{ MOD } 9$. Problem 17: Determine the output of the Pascal statement "Writeln(25 div 2)". Problem 18: Determine the output of "writeln (15 mod 6 * 2+ 2> 7)" expression written in Pascal. Problem 19: Evaluate the logical statements: A) $(9>15) \text{ AND } (35>25)$, B) $(25>14) \text{ OR } (15>57)$, C) $\text{NOT}(9>14)$. Problem 20: Find the output of the given pseudo code.

ArithmeticInteger DivisionModulo OperationOrder of OperationsLogical OperatorsBasic Arithmetic
2025/3/17

1. Problem Description

We are given several programming problems and we need to determine the correct outputs for each one.
Problem 14: Determine the values of 7/27/2 and 7 DIV 27 \text{ DIV } 2.
Problem 15: Evaluate the expression (43+5 DIV 2)+52(4*3+5 \text{ DIV } 2) + 5^2.
Problem 16: Evaluate the expression 9 MOD 109 \text{ MOD } 10 and 10 MOD 910 \text{ MOD } 9.
Problem 17: Determine the output of the Pascal statement "Writeln(25 div 2)".
Problem 18: Determine the output of "writeln (15 mod 6 * 2+ 2> 7)" expression written in Pascal.
Problem 19: Evaluate the logical statements: A) (9>15) AND (35>25)(9>15) \text{ AND } (35>25), B) (25>14) OR (15>57)(25>14) \text{ OR } (15>57), C) NOT(9>14)\text{NOT}(9>14).
Problem 20: Find the output of the given pseudo code.

2. Solution Steps

Problem 14:
7/2=3.57/2 = 3.5
7 DIV 2=37 \text{ DIV } 2 = 3 (integer division)
Therefore, the answer is 3.5 and
3.
Problem 15:
(43+5 DIV 2)+52(4*3+5 \text{ DIV } 2) + 5^2
=(12+2)+25= (12 + 2) + 25
=14+25= 14 + 25
=39= 39
Problem 16:
9 MOD 10=99 \text{ MOD } 10 = 9
10 MOD 9=110 \text{ MOD } 9 = 1
Therefore, the answer is 9 and
1.
Problem 17:
"Writeln(25 div 2)"
25 div 2=1225 \text{ div } 2 = 12 (integer division in Pascal)
Therefore, the answer is
1
2.
Problem 18:
"writeln (15 mod 6 * 2+ 2> 7)"
15 mod 6=315 \text{ mod } 6 = 3
32+2=6+2=83 * 2 + 2 = 6 + 2 = 8
8>78 > 7 which is TRUE.
Therefore, the answer is TRUE.
Problem 19:
A) (9>15) AND (35>25)(9>15) \text{ AND } (35>25)
FALSE AND TRUE = FALSE
B) (25>14) OR (15>57)(25>14) \text{ OR } (15>57)
TRUE OR FALSE = TRUE
C) NOT(9>14)\text{NOT}(9>14)
NOT(FALSE) = TRUE
Therefore, the answer is False, True, True.
Problem 20:
x = 0
num = 100
Loop 1:
x = 0 + 10 = 10
num = 100 - 10 = 90
Print num = 90
Loop 2:
x = 10 + 10 = 20
num = 90 - 20 = 70
Print num = 70
Loop 3:
x = 20 + 10 = 30
num = 70 - 30 = 40
Print num = 40
Loop 4:
x = 30 + 10 = 40
num = 40 - 40 = 0
Print num = 0
Loop 5:
x = 40 + 10 = 50
x >= num is 50 >= 0 which is TRUE, so the loop terminates.
Therefore, the output is 90, 70, 40, 0

3. Final Answer

1
4.

3. 3.5 and 3

1
5.

3. 39

1
6.

2. 9 and 1

1
7.

1. 12

1
8.

3. TRUE

1
9.

3. False, True, True

2
0.

3. 90, 70, 40, 0

Related problems in "Arithmetic"

We are asked to solve two math problems. First, $1 \frac{1}{4} - \frac{1}{3} = ?$ Second, $60 - 42 \...

FractionsOrder of OperationsMixed NumbersSubtractionDivision
2025/4/5

We need to solve the following four math problems: Problem 31: $1\frac{4}{5} + \frac{3}{10} = ?$ Pro...

FractionsMixed NumbersDivisionMultiplicationAdditionSimplificationLong Division
2025/4/5

We have four problems to solve: Problem 27: Subtract two fractions: $\frac{3}{10} - \frac{1}{20}$. P...

FractionsDivisionPercentageMultiplication
2025/4/5

The image shows several arithmetic problems. We are asked to solve the following four problems: Prob...

Arithmetic OperationsDivisionMultiplicationFractionsPercentages
2025/4/5

We need to solve five arithmetic problems: 1. $15.98 + 26.314 = ?$

AdditionSubtractionDecimal OperationsExponentsOrder of OperationsDivision
2025/4/5

We need to solve the following math problems: 10. $879 \times 3 = $ 11. $71 \times 8 = $ 12. $50 \ti...

MultiplicationDivisionAdditionDecimal Arithmetic
2025/4/5

The image contains three arithmetic problems: (7) $89,994 + 7,643 = ?$ (8) $? = 435 - 30$ (9) $96 \d...

AdditionSubtractionDivisionBasic Arithmetic Operations
2025/4/5

We are asked to evaluate the following expression: $\frac{-\frac{\sqrt{3}}{3} \times (-2) + \sqrt{\f...

SimplificationRadicalsFractionsOrder of Operations
2025/4/5

The problem is to simplify the expression: $\frac{\frac{\sqrt{3}}{3} \times 1 + \frac{\sqrt{3}}{3} \...

SimplificationFractionsSquare RootsOrder of Operations
2025/4/5

The problem describes a square that is cut into two equal pieces. Then one of these pieces is furthe...

FractionsAreaGeometric Shapes
2025/4/4