From 09808b6094eebee8d19d6b60a007fe6ba37ff6ff Mon Sep 17 00:00:00 2001 From: Fang Liu <46347645+fangliu-tju@users.noreply.github.com> Date: Wed, 2 Nov 2022 14:11:31 +0800 Subject: [PATCH] Update logical_expressions.qmd 378 answ=3 => answ=1 615 `false` => `true` --- quarto/precalc/logical_expressions.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quarto/precalc/logical_expressions.qmd b/quarto/precalc/logical_expressions.qmd index 3b945e7..f8f2bd2 100644 --- a/quarto/precalc/logical_expressions.qmd +++ b/quarto/precalc/logical_expressions.qmd @@ -375,7 +375,7 @@ choices = [ "``-1/a < -1/b``", "``-1/a > -1/b``", raw"``-1/a \geq -1/b``"] -answ = 3 +answ = 1 radioq(choices, answ) ``` @@ -612,7 +612,7 @@ The value for `true && missing` is `missing`, not a boolean value. What happens? #| hold: true #| echo: false choices = [""" -In the manual we can read that "In the expression `a && b`, the subexpression `b` is only evaluated if `a` evaluates to true." In this case, `a` is `false` so `b` is evaluated and returned. As `b` is just `missing` that is the return value. +In the manual we can read that "In the expression `a && b`, the subexpression `b` is only evaluated if `a` evaluates to true." In this case, `a` is `true` so `b` is evaluated and returned. As `b` is just `missing` that is the return value. """, "Since the second value is \"`missing`\" all such answers would be missing."] answ = 1