1.4.1 Data Types &1.4.2 Data Structures & 1.4.3 Boolean Algebra Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an integer?

A

A whole number

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

What data type would you use to store the following : 079321467823

A

String integer cant start with zero

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

What is real?

A

A float number [contains decimal points]

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

What is a character?

A

A single symbol

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

What is a string?

A

A collection of character

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

What is a Boolean?

A

True and False

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

What is an array?

A

An array is an ordered, finite set of elements of a single type.

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

Declare a 2d array pseudo code?

A

new array_name [num_rows][num_collums]

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

What is a list?

A

A list a a number of items in which items can occur more than once

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

What is a tuple?

A

An immutable, ordered set of values any type

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

What is a linked list?

A

A dynamic data structure used to hold an ordered set of items which are not stored in a contiguous locations.

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

Give an example of when might a stack be used?

A

Undo button

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

State De Morgan’s law?

A

¬(A∨B)≡¬A^¬B
¬(A^B)≡¬A∨¬B

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

State the distribution law?

A

A^(B∨C)≡(A^B)^(B^C)
A∨(B^C)≡(A∨B)∨(B∨C)

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

State the association law?

A

(A^B)^C≡A^(B^C)≡A^B^C
(A∨B)∨C≡A∨(B∨C)≡A∨B∨C

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

State the commutation law?

A

A∨B≡B∨A
A^B≡B^A

17
Q

State the double negation law?

A

¬¬A≡A

18
Q

What is a half adder used for?

A

Adding two bits

19
Q

What gates are a half adder made of?

A

XOR AND

20
Q

What is a full adder used for?

A

Binary addition

21
Q

What is the purpose of a D-type flip flop?

A

To store the value of a single bit

22
Q

When is the sored value in a D-type flip flop updated?

A

On the rising edge of a clock signal.