computer science eot exam Flashcards

(12 cards)

1
Q

Integer (int)

A

Used for whole numbers (no decimals)

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

Float (floating-point number)

A

Used for decimal numbers

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

String (str)

A

Used for text

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

Boolean (bool)

A

Used for true/false values

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

explain why binary data is grouped into sets of four bits when converting to hexadecimal

A

Binary is grouped into sets of 4 bits when converting to hexadecimal because of how the number systems match.

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

explain why computers use binary number system instead of denary

A

Computers use binary (base 2) instead of denary (base 10) because it matches how their hardware works.

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

four uses of hexadecimal in computer systems

A

HTML colour coding
Memory addresses
Enter codes/ debugging
machine code/ assembly language

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

Not gate

A

if input 0 Output is 1
if input is 1 output 0

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

And gate

A

the output can only be 1 if both inputs are 1

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

Or gate

A

the output is only 0 when both inputs are 0

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

nor gate

A

the output can only be 1 when both inputs are zero

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

Nand

A

the output can only be 0 when both inputs are 1

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