Deck 3: Control Structures

ملء الشاشة (f)
exit full mode
سؤال
A control statement is a statement that determines the control flow of a set of instructions.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
"Control structure" is another name for a control statement.
سؤال
Sequential, selection and iterative control are all based on a given condition.
سؤال
Most programs are straight-line programs.
سؤال
Control flow refers to

A) the order that instructions are executed in a program
B) the speed at which a set of instructions are executed in a program
C) the changing values of variables in a program
سؤال
Which of the following provide explicit control flow in a program?

A) sequential, selection and iterative control statements
B) selection and iterative control
C) sequential and selection control
سؤال
Which of the following is not a fundamental form of control that programming languages provide?

A) sequential control
B) iterative control
C) secondary control
سؤال
Most computer programs use

A) sequential and selection control
B) sequential, selection and iterative control
C) sequential and iterative control
سؤال
Match the descriptions with their terms:

-based on a condition that is checked once

A) sequential control
B) selection control
C) iterative control
سؤال
Match the descriptions with their terms:

-implicit form of control

A) sequential control
B) selection control
C) iterative control
سؤال
Match the descriptions with their terms:

-based on a condition that may be checked many times

A) sequential control
B) selection control
C) iterative control
سؤال
The order that instructions are executed in a program is called _____________________.
سؤال
11. Statements that determine the flow of control of a set of instructions are called _____________________.
سؤال
The three forms of control provided by programming languages are ________________,__________, and __________________ control.
سؤال
Program that do not have any form of control flow other than sequential control are called__________________________.
سؤال
What is the term for the order that instructions are executed in a program?
سؤال
What is the term for a statement that determines the control flow of a set of instructions?
سؤال
What are the three forms of control flow provided by programming languages?
سؤال
Which of the three forms of control flow is implicit in a program?
سؤال
What is the term for a program that does not have any control flow, other than sequential control?
سؤال
Which forms of control flow require the use of a condition?
سؤال
Which form of control flow repeatedly executes a set of instructions?
سؤال
The Boolean data type contains two Boolean values?
سؤال
A Boolean expression is an expression that evaluates to True or False.
سؤال
All Boolean expressions contain at least one Boolean literal (value).
سؤال
Boolean literals True and False are considered Boolean expressions.
سؤال
All relational operators produce a Boolean result (value).
سؤال
The == operator is used for the assignment of Boolean values.
سؤال
The != operators is used to determine if two values are not equal to each other.
سؤال
The relational operators can be applied to string values.
سؤال
The Boolean expression 'Abe' < 'Apple' evaluates to true.
سؤال
The Boolean expression 'apple' < 'Banana' evaluates to true.
سؤال
The membership operator in of Python can be used to determine if a given value occurs in a particular tuple, or if a given substring occurs in a given string value.
سؤال
In order to determine if a certain value is not in a particular list (or string), the membership operator not in can be used.
سؤال
The operators and, or, not, ==, !=, <, <=, >, >= are called Boolean operators.
سؤال
1 <= num <= 10 is not a valid Boolean expression in most programming languages, but is allowed in Python.
سؤال
Operator precedence applies to the arithmetic operators and relational operators, but not to the Boolean operators.
سؤال
All Boolean operators are applied before any relational operators.
سؤال
Short-circuit evaluation is when a Boolean expression contains the invalid use of Boolean operators.
سؤال
not (num == 0) and num != 0 are logically equivalent Boolean expressions, for integer value num.
سؤال
not (num != 0) is logically equivalent to num < 0 and num > 0, for integer value num.
سؤال
num1 <= num2 is logically equivalent to not (num1 > num2), where num1 and num2 each contain an integer value.
سؤال
not (flag1 and flag2) is logically equivalent to (not flag1) and (not flag2), where flag1 and flag2 are Boolean values.
سؤال
not (flag1 or flag2) is logically equivalent to (not flag1) and (not flag2), where flag1 and flag2 are Boolean values.
سؤال
Which of the following is not a Boolean operator?

A) and
B) or
C) not
D) with
سؤال
Examine the following statements.
X = 10
X == 10
What will the second line evaluate to?

A) False
B) 10
C) True
D) None of the Above
سؤال
Examine the following expression:
10 < 20 and 30 > 50
What does this expression evaluate to?

A) True
B) False
C) True and False
D) That line of code is not valid in Python and will result in an error
سؤال
Examine the following expression.
10 in (10, 20, 30)
What will this expression evaluate to?

A) False
B) 10
C) True
D) None of the Above
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x != y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-(not x) or (not y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-(not x) and (not y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x >= y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x == y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x > y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
سؤال
True and False are the two _________ values in Python.
سؤال
A _____________ expression is an expression that evaluates to True or False.
سؤال
The Boolean operators in Python are _____, _____, and _____.
سؤال
Both the Boolean and _____________ operators evaluate to a Boolean result.
سؤال
Fill in the table, evaluating the Boolean expressions for x and y with the given values. Some have already been filled in.
سؤال
Evaluate the following Python expressions.

-14 <= 14
سؤال
Evaluate the following Python expressions.

-5 > 4 or 12 < 8
سؤال
Evaluate the following Python expressions.

-6 != 5
سؤال
Evaluate the following Python expressions.

-10 not in (10, 20, 30)
سؤال
Evaluate the following Python expressions.

-5 < 10 and 8 > 20 or 4 < 2
سؤال
Evaluate the following Python expressions.

-not (12 == 12 and 4 < 6)
سؤال
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 > num2 and flag1<div style=padding-top: 35px>

-num1 > num2 and flag1
سؤال
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 == 12 or num1 == num2 or flag1<div style=padding-top: 35px>

-num1 == 12 or num1 == num2 or flag1
سؤال
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 + 10 < num2 and flag2<div style=padding-top: 35px>

-num1 + 10 < num2 and flag2
سؤال
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -not flag1 or not flag2 and num2 < num1<div style=padding-top: 35px>

-not flag1 or not flag2 and num2 < num1
سؤال
For each of the following Boolean expressions, indicate the value of x that would make each expression false.
(a) x and True
(b) x or False
(c) not (x or False)
(d) not (x and True)
سؤال
Give an appropriate expression for each of the following:
-To determine if the number 25 appears in a list of numbers called nums.
سؤال
Give an appropriate expression for each of the following:
-To determine if the numbers 10 and 20 do not appear in a list of numbers named nums.
سؤال
Give an appropriate expression for each of the following:
-To determine if the name 'Charles' appears in a list called names.
سؤال
Give a logically equivalent expression for each of the following:
-num1 > 0 and num2 > 0
سؤال
Give a logically equivalent expression for each of the following:
-num1 <= 0 or num2 <= 0
سؤال
Give a logically equivalent expression for each of the following:
-not (num1 == 0 and num2 == 0)
سؤال
The if statement in Python provides selection control.
سؤال
If statements always make use of a Boolean expression.
سؤال
All if statements must include an else header.
سؤال
if Statements may contain as many else headers as necessary.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/129
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Control Structures
1
A control statement is a statement that determines the control flow of a set of instructions.
True
2
"Control structure" is another name for a control statement.
False
3
Sequential, selection and iterative control are all based on a given condition.
False
4
Most programs are straight-line programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
5
Control flow refers to

A) the order that instructions are executed in a program
B) the speed at which a set of instructions are executed in a program
C) the changing values of variables in a program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of the following provide explicit control flow in a program?

A) sequential, selection and iterative control statements
B) selection and iterative control
C) sequential and selection control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following is not a fundamental form of control that programming languages provide?

A) sequential control
B) iterative control
C) secondary control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
8
Most computer programs use

A) sequential and selection control
B) sequential, selection and iterative control
C) sequential and iterative control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
9
Match the descriptions with their terms:

-based on a condition that is checked once

A) sequential control
B) selection control
C) iterative control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
10
Match the descriptions with their terms:

-implicit form of control

A) sequential control
B) selection control
C) iterative control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
11
Match the descriptions with their terms:

-based on a condition that may be checked many times

A) sequential control
B) selection control
C) iterative control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
12
The order that instructions are executed in a program is called _____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
13
11. Statements that determine the flow of control of a set of instructions are called _____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
14
The three forms of control provided by programming languages are ________________,__________, and __________________ control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
15
Program that do not have any form of control flow other than sequential control are called__________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
16
What is the term for the order that instructions are executed in a program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
17
What is the term for a statement that determines the control flow of a set of instructions?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
18
What are the three forms of control flow provided by programming languages?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of the three forms of control flow is implicit in a program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
20
What is the term for a program that does not have any control flow, other than sequential control?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which forms of control flow require the use of a condition?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which form of control flow repeatedly executes a set of instructions?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
23
The Boolean data type contains two Boolean values?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
24
A Boolean expression is an expression that evaluates to True or False.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
25
All Boolean expressions contain at least one Boolean literal (value).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
26
Boolean literals True and False are considered Boolean expressions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
27
All relational operators produce a Boolean result (value).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
28
The == operator is used for the assignment of Boolean values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
29
The != operators is used to determine if two values are not equal to each other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
30
The relational operators can be applied to string values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
31
The Boolean expression 'Abe' < 'Apple' evaluates to true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
32
The Boolean expression 'apple' < 'Banana' evaluates to true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
33
The membership operator in of Python can be used to determine if a given value occurs in a particular tuple, or if a given substring occurs in a given string value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
34
In order to determine if a certain value is not in a particular list (or string), the membership operator not in can be used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
35
The operators and, or, not, ==, !=, <, <=, >, >= are called Boolean operators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
36
1 <= num <= 10 is not a valid Boolean expression in most programming languages, but is allowed in Python.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
37
Operator precedence applies to the arithmetic operators and relational operators, but not to the Boolean operators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
38
All Boolean operators are applied before any relational operators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
39
Short-circuit evaluation is when a Boolean expression contains the invalid use of Boolean operators.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
40
not (num == 0) and num != 0 are logically equivalent Boolean expressions, for integer value num.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
41
not (num != 0) is logically equivalent to num < 0 and num > 0, for integer value num.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
42
num1 <= num2 is logically equivalent to not (num1 > num2), where num1 and num2 each contain an integer value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
43
not (flag1 and flag2) is logically equivalent to (not flag1) and (not flag2), where flag1 and flag2 are Boolean values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
44
not (flag1 or flag2) is logically equivalent to (not flag1) and (not flag2), where flag1 and flag2 are Boolean values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
45
Which of the following is not a Boolean operator?

A) and
B) or
C) not
D) with
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
46
Examine the following statements.
X = 10
X == 10
What will the second line evaluate to?

A) False
B) 10
C) True
D) None of the Above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
47
Examine the following expression:
10 < 20 and 30 > 50
What does this expression evaluate to?

A) True
B) False
C) True and False
D) That line of code is not valid in Python and will result in an error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
48
Examine the following expression.
10 in (10, 20, 30)
What will this expression evaluate to?

A) False
B) 10
C) True
D) None of the Above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
49
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x != y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match the expressions that they are logically equivalent to the Boolean expressions :

-(not x) or (not y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
51
Match the expressions that they are logically equivalent to the Boolean expressions :

-(not x) and (not y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
52
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x >= y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
53
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x == y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match the expressions that they are logically equivalent to the Boolean expressions :

-not (x > y)

A) x < y
B) x <= y
C) x == y
D) x != y
E) not (x and y)
F) not (x or y)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
55
True and False are the two _________ values in Python.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
56
A _____________ expression is an expression that evaluates to True or False.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
57
The Boolean operators in Python are _____, _____, and _____.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
58
Both the Boolean and _____________ operators evaluate to a Boolean result.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
59
Fill in the table, evaluating the Boolean expressions for x and y with the given values. Some have already been filled in.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
60
Evaluate the following Python expressions.

-14 <= 14
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
61
Evaluate the following Python expressions.

-5 > 4 or 12 < 8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
62
Evaluate the following Python expressions.

-6 != 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
63
Evaluate the following Python expressions.

-10 not in (10, 20, 30)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
64
Evaluate the following Python expressions.

-5 < 10 and 8 > 20 or 4 < 2
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
65
Evaluate the following Python expressions.

-not (12 == 12 and 4 < 6)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
66
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 > num2 and flag1

-num1 > num2 and flag1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
67
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 == 12 or num1 == num2 or flag1

-num1 == 12 or num1 == num2 or flag1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
68
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -num1 + 10 < num2 and flag2

-num1 + 10 < num2 and flag2
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
69
Evaluate the following Python expressions for the variable assignments given.
Evaluate the following Python expressions for the variable assignments given.    -not flag1 or not flag2 and num2 < num1

-not flag1 or not flag2 and num2 < num1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
70
For each of the following Boolean expressions, indicate the value of x that would make each expression false.
(a) x and True
(b) x or False
(c) not (x or False)
(d) not (x and True)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
71
Give an appropriate expression for each of the following:
-To determine if the number 25 appears in a list of numbers called nums.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
72
Give an appropriate expression for each of the following:
-To determine if the numbers 10 and 20 do not appear in a list of numbers named nums.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
73
Give an appropriate expression for each of the following:
-To determine if the name 'Charles' appears in a list called names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
74
Give a logically equivalent expression for each of the following:
-num1 > 0 and num2 > 0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
75
Give a logically equivalent expression for each of the following:
-num1 <= 0 or num2 <= 0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
76
Give a logically equivalent expression for each of the following:
-not (num1 == 0 and num2 == 0)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
77
The if statement in Python provides selection control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
78
If statements always make use of a Boolean expression.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
79
All if statements must include an else header.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
80
if Statements may contain as many else headers as necessary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 129 في هذه المجموعة.