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"

The problem states that $n\%$ of $4869$ is a certain value. The goal is to find $n$. Since the other...

PercentageArithmetic Operations
2025/6/3

The problem is to evaluate the expression $3\frac{3}{4} \times (-1\frac{1}{5}) + 5\frac{1}{2}$.

FractionsMixed NumbersOrder of OperationsArithmetic Operations
2025/6/3

We need to evaluate the expression $1\frac{1}{5} \times [(-1\frac{1}{4}) + (-3\frac{3}{4})]$.

FractionsMixed NumbersOrder of OperationsArithmetic Operations
2025/6/3

We need to evaluate the expression $1\frac{3}{10} + \frac{1}{2} \times (-\frac{3}{5})$.

FractionsMixed NumbersArithmetic OperationsOrder of Operations
2025/6/3

The problem asks us to evaluate the expression $1\frac{1}{5} \times (-\frac{2}{3}) + 1\frac{1}{5}$.

FractionsMixed NumbersOrder of OperationsArithmetic Operations
2025/6/3

The problem is to evaluate the expression $-4 \times 3 - (-2)^3$.

Order of OperationsInteger Arithmetic
2025/6/3

We need to evaluate the expression $(-2)^3 \div (-3)^3 \times (-6)^2 \div 4^2$.

Order of OperationsExponentsFractionsSimplification
2025/6/1

The problem is to evaluate the expression $-3^2 - (-2)^3$.

Order of OperationsExponentsInteger Arithmetic
2025/6/1

We need to evaluate the expression $(-3\frac{2}{3}) \div 6\frac{7}{8} - \frac{1}{3}$.

FractionsMixed NumbersArithmetic Operations
2025/6/1

The problem is to evaluate the expression $(-36) \div (-9) - (-2) \times (-5)$.

Order of OperationsInteger ArithmeticDivisionMultiplicationSubtraction
2025/6/1