ICT Revision Flashcards

(45 cards)

1
Q

What is a Boolean variable?

A

A variable that can hold one of two values: true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: The AND operator returns true if both operands are true.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: The result of A AND B is true only if both A and ___ are true.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the result of the expression true OR false?

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False: The NOT operator inverts the value of a Boolean expression.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the symbol used for the AND operator in Boolean logic?

A

&&

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the symbol used for the OR operator in Boolean logic?

A

||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False: In Boolean logic, true AND true equals false.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: The expression A OR B is false only if both A and ___ are false.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the expression NOT false evaluate to?

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the truth table for A AND B?

A

true, true -> true; true, false -> false; false, true -> false; false, false -> false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the truth table for A OR B?

A

true, true -> true; true, false -> true; false, true -> true; false, false -> false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: The expression (A AND B) OR (NOT A) is always true.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the outcome of the expression NOT (A AND B) when A is true and B is false?

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fill in the blank: The logical expression A OR (B AND C) follows the rule of ___ precedence.

A

operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the definition of a truth table?

A

A table that shows all possible values of a Boolean expression and their corresponding results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the result of the expression (true AND false) OR (false AND true)?

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

True or False: The expression A OR A is equivalent to A.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the term ‘short-circuit evaluation’ refer to in Boolean logic?

A

The process of stopping the evaluation of a logical expression as soon as the result is determined.

20
Q

Fill in the blank: In Boolean logic, the expression A AND (B OR C) is an example of ___ distribution.

21
Q

What is the result of true AND (false OR true)?

22
Q

True or False: The expression NOT (A OR B) is equivalent to NOT A AND NOT B.

23
Q

What is the result of the expression (NOT A) AND (NOT B) when A is false and B is true?

24
Q

What is the result of false OR false?

25
True or False: The expression A OR NOT A is always true.
True
26
What is data representation?
Data representation is the method of formatting and encoding information for processing and storage.
27
True or False: Binary is the only data representation system used in computers.
False
28
What are the two primary types of data representation?
Analog and digital.
29
Fill in the blank: In binary, the digits used are ____ and ____.
0 and 1
30
What does ASCII stand for?
American Standard Code for Information Interchange.
31
Which base does the binary number system use?
Base 2.
32
What is the decimal equivalent of the binary number 1010?
10
33
True or False: A byte consists of 8 bits.
True
34
Multiple Choice: What is the hexadecimal equivalent of the decimal number 255? A) 0xFF B) 0x1F C) 0xAA
A) 0xFF
35
What does a pixel represent in digital images?
A pixel represents the smallest unit of a digital image.
36
Fill in the blank: The process of converting data into a binary format is called _____.
encoding
37
What is the range of values that can be represented by a single byte?
0 to 255.
38
True or False: The term 'bit' is short for binary digit.
True
39
What is the main advantage of using hexadecimal representation?
It is more compact and easier for humans to read than binary.
40
Multiple Choice: Which of the following is NOT a type of data representation? A) Text B) Audio C) Binary Trees
C) Binary Trees
41
What is a common use of binary representation in computing?
Storing and processing data.
42
Fill in the blank: The number system that uses base 16 is called _____.
hexadecimal
43
What is the purpose of data compression?
To reduce the size of data for storage or transmission.
44
True or False: Data can be represented in both structured and unstructured formats.
True
45
What does the term 'metadata' refer to?
Data that provides information about other data.