返回卡包市场

Conditionals and Recursion

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 13内容版本: v3公开卡包更新时间: 8/1/2026

卡片预览 (13 张)

#1
正面 (问题)

modulus operator

背面 (解答)

An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.

#2
正面 (问题)

boolean expression

背面 (解答)

An expression whose value is either True or False.

#3
正面 (问题)

relational operator

背面 (解答)

One of the operators that compares its operands: =, !=, >, =, and <=.

#4
正面 (问题)

logical operator

背面 (解答)

One of the operators that combines boolean expressions: and, or, and not.

#5
正面 (问题)

conditional statement

背面 (解答)

A statement that controls the flow of execution depending on some condition.

#6
正面 (问题)

condition

背面 (解答)

The boolean expression in a conditional statement that determines which branch is executed.

#7
正面 (问题)

compound statement

背面 (解答)

A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the heaader.

#8
正面 (问题)

branch

背面 (解答)

One of the alternative sequences of statements in a conditional statement.

#9
正面 (问题)

chained conditional

背面 (解答)

A conditional statement with a series of alternative branches.

#10
正面 (问题)

nested conditional

背面 (解答)

A conditional statement that appears in one of the branches of another conditional statement.

#11
正面 (问题)

recursion

背面 (解答)

The process of calling the function that is currently executing.

#12
正面 (问题)

base case

背面 (解答)

A conditional branch in a recursive function that does not make a recursive call.

#13
正面 (问题)

infinite recursion

背面 (解答)

A recursion that doesn’t have a base case, or never reaches it. Eventually, an infinite recursion causes a runtime error.