Deck 5: Boolean Logic in Programming
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 5: Boolean Logic in Programming
1
In 1854, George Boole, the first Professor of Mathematics at Queen's College in Cork, Ireland, published a book titled An Investigation into the Laws of Thought, on Which are Founded the Mathematical Theories of Logic and Probabilities.
True
2
Branching and looping routines contain conditions that are either true or false.
True
3
Recursion is a form of mathematics in which the only values used are true and false.
False
4
There are three basic operations in Boolean logic - AND, OR, and NOT.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
When two values are combined in the OR operation, the result is true only if both values are true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
In the AND operation, if either value is true, then the result is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The following Boolean expression is correct: not true = true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The following Boolean expression is correct: not false = false.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
In 1858, George Boole's original book was republished as An Investigation of the Laws of Thought.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Professional programmers often use Boolean algebra and other formal tools when dealing with the layered complexities of Boolean logic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Most students majoring in computer science will need to study Boolean algebra in courses such as "Discrete Mathematics" or "Computer Math and Logic."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Modern computers most often use one of two codes to represent characters in a computer - either the American Standard Code for Information Interchange (ASCII) or a newer code called Unicode.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The English language alphabet is not usually considered to be a collating sequence.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Character strings are compared according to the place in a collating sequence for each character of the string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The logical comparison operator used for "not equals" is >=.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
Unicode can be used as collating sequences for character string values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Unicode includes characters for alphabets such as the Greek, Hebrew, Arabic, and Cyrillic alphabets.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Unicode is actually a subset of the ASCII code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Comparisons using character strings are frequently used in Alice.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The true and false values in computer programming can come from Boolean functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
When searching and sorting data stored on a computer, comparisons can be made using character strings.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Alice has math comparison functions that can be found on world's functions tab, along with the AND, OR, and NOT functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Alice has a world-level function that will return a random number in a specified range.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
In Alice, clicking the ADD OBJECTS button allows you to enter Scene Editor mode.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
When testing an Alice world, the speed slider control, in the playing world window, can be used to speed things up a bit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
The AND and OR operations are ____ operations, meaning that they need two operands.
A) dual
B) binary
C) complimentary
D) unary
A) dual
B) binary
C) complimentary
D) unary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
The conditions that exist in branching and looping routines are a form of ____.
A) first-order logic
B) informal logic
C) Boolean logic
D) modal logic
A) first-order logic
B) informal logic
C) Boolean logic
D) modal logic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
In the book An Investigation into the Laws of Thought, on Which are Founded the Mathematical Theories of Logic and Probabilities, George Boole outlined a system of logic now known as ____.
A) first-order logic
B) modal logic
C) Boolean logic
D) informal logic
A) first-order logic
B) modal logic
C) Boolean logic
D) informal logic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
In the book An Investigation into the Laws of Thought, on Which are Founded the Mathematical Theories of Logic and Probabilities, George Boole outlined a system of logic and a corresponding algebraic language dealing with true and false values. Today, that language is known as ____.
A) Boolean algebra
B) Sigma algebra
C) F-algebra
D) relational algebra
A) Boolean algebra
B) Sigma algebra
C) F-algebra
D) relational algebra
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which of the following Boolean expressions is correct?
A) false and false = true
B) false and true = true
C) true and true = true
D) true and false = true
A) false and false = true
B) false and true = true
C) true and true = true
D) true and false = true
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Which of the following Boolean expressions is correct?
A) true or true = true
B) true or false = false
C) false or true = false
D) false or false = true
A) true or true = true
B) true or false = false
C) false or true = false
D) false or false = true
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
____ is the basis for all modern digital electronic technology.
A) ASCII
B) Encapsulation
C) Boolean logic
D) Recursion
A) ASCII
B) Encapsulation
C) Boolean logic
D) Recursion
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the pseudocode statements below best expresses the following warning message? The passenger-side air bag may cause injury to children who are under the age of 12 or who weigh less than 48 pounds. They should not sit in the front passenger seat of this car.
A) IF (age > 12 OR weight < 48)THEN do not sit in the front passenger seat
B) IF (age < 12 OR weight < 48)THEN sit in the front passenger seat
C) IF (age <= 12 OR weight <= 48)THEN sit in the front passenger seat
D) IF (age < 12 OR weight < 48)THEN do not sit in the front passenger seat
A) IF (age > 12 OR weight < 48)THEN do not sit in the front passenger seat
B) IF (age < 12 OR weight < 48)THEN sit in the front passenger seat
C) IF (age <= 12 OR weight <= 48)THEN sit in the front passenger seat
D) IF (age < 12 OR weight < 48)THEN do not sit in the front passenger seat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The ____ operation is a unary operation.
A) AND
B) ADD
C) NOT
D) OR
A) AND
B) ADD
C) NOT
D) OR
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
The symbol "____" in stands for "is less than."
A) <
B) <=
C) >
D) >=
A) <
B) <=
C) >
D) >=
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
____ are used to compare two values in Boolean logic.
A) Inverse functions
B) Identity functions
C) Logical comparison operators
D) Proximity functions
A) Inverse functions
B) Identity functions
C) Logical comparison operators
D) Proximity functions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The term ____ means to put a set of items in order.
A) counterbalance
B) collate
C) offset
D) adjust
A) counterbalance
B) collate
C) offset
D) adjust
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
A ____ is a list that shows the correct order to be used when collating a set of items.
A) finite sequence
B) series
C) Fibonacci sequence
D) collating sequence
A) finite sequence
B) series
C) Fibonacci sequence
D) collating sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
In Boolean algebra, the symbol ____ stands for less than.
A) >
B) >=
C) <
D) <=
A) >
B) >=
C) <
D) <=
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
In Boolean algebra, the symbol ____ stands for greater than or equal to.
A) >
B) >=
C) <
D) <=
A) >
B) >=
C) <
D) <=
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
In Boolean algebra, the symbol ____ stands for not equal.
A) ==
B) !>
C) >=
D) !=
A) ==
B) !>
C) >=
D) !=
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
All of the following are Boolean operators EXCEPT ____.
A) =
B) <>
C) >=
D) /
A) =
B) <>
C) >=
D) /
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The ____ code is based on the English language.
A) UTF-10
B) UTF-8
C) ASCII
D) Unicode
A) UTF-10
B) UTF-8
C) ASCII
D) Unicode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
The ____ code includes letters, numeric digits, and some "hidden" characters, such as the Enter key and the Esc key.
A) UTF-10
B) UTF-8
C) ASCII
D) Unicode
A) UTF-10
B) UTF-8
C) ASCII
D) Unicode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
A ____ is a function that returns a true or false value instead of a numeric value.
A) Boolean function
B) K-function
C) Beta function
D) Gamma function
A) Boolean function
B) K-function
C) Beta function
D) Gamma function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
A ____ returns a value based on the distance from one object to another.
A) K-function
B) proximity function
C) Beta function
D) Boolean function
A) K-function
B) proximity function
C) Beta function
D) Boolean function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A ____ returns the distance between two objects.
A) K-function
B) numeric proximity function
C) beta function
D) Boolean function
A) K-function
B) numeric proximity function
C) beta function
D) Boolean function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
A ____ returns a value of true or false.
A) proximity function
B) numeric proximity function
C) beta function
D) K-function
A) proximity function
B) numeric proximity function
C) beta function
D) K-function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
In Alice, ____ are used to mark the beginning and end of the block of code within the loop.
A) "(" and ")"
B) "[" and "]"
C) "{" and "}"
D) "<" and ">"
A) "(" and ")"
B) "[" and "]"
C) "{" and "}"
D) "<" and ">"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
To ____ a value in a program means that the programmer puts a specific value in a program instead of a variable or parameter.
A) softcode
B) encapsulate
C) compile
D) hardcode
A) softcode
B) encapsulate
C) compile
D) hardcode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck