Exam 5: Boolean Logic in Programming

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which of the following Boolean expressions is correct?

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

C

When two values are combined in the OR operation, the result is true only if both values are true.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

False

The English language alphabet is not usually considered to be a collating sequence.

Free
(True/False)
4.8/5
(42)
Correct Answer:
Verified

False

Comparisons using character strings are frequently used in Alice.

(True/False)
4.8/5
(38)

Most students majoring in computer science will need to study Boolean algebra in courses such as "Discrete Mathematics" or "Computer Math and Logic."

(True/False)
4.8/5
(33)

All of the following are Boolean operators EXCEPT ____.

(Multiple Choice)
4.7/5
(37)

When searching and sorting data stored on a computer, comparisons can be made using character strings.

(True/False)
4.9/5
(39)

Unicode is actually a subset of the ASCII code.

(True/False)
4.9/5
(40)

Alice has a world-level function that will return a random number in a specified range.

(True/False)
4.9/5
(36)

Which of the following Boolean expressions is correct?

(Multiple Choice)
4.8/5
(31)

Character strings are compared according to the place in a collating sequence for each character of the string.

(True/False)
4.7/5
(39)

A ____ returns the distance between two objects.

(Multiple Choice)
4.9/5
(32)

The term ____ means to put a set of items in order.

(Multiple Choice)
4.8/5
(45)

Recursion is a form of mathematics in which the only values used are true and false.

(True/False)
4.8/5
(37)

____ are used to compare two values in Boolean logic.

(Multiple Choice)
4.8/5
(37)

The ____ code includes letters, numeric digits, and some "hidden" characters, such as the Enter key and the Esc key.

(Multiple Choice)
4.9/5
(25)

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.

(True/False)
4.8/5
(37)

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 ____.

(Multiple Choice)
4.9/5
(29)

The logical comparison operator used for "not equals" is >=.

(True/False)
5.0/5
(29)

Professional programmers often use Boolean algebra and other formal tools when dealing with the layered complexities of Boolean logic.

(True/False)
4.9/5
(30)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)