1.4 Data Types, Data Structures and Algorithms Flashcards

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

Define Integer

A

An integer is a whole number. Integers include zero and negative numbers,

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

Define Real

A

Real numbers are positive or negative numbers which are decimals

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

Define Character

A

A character is a single symbol

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

Define String

A

A string is a collection of character

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

Define Boolean

A

Boolean data type are restricted to True and False

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

What is Unicode

A

Unicode uses a varying

number of bits allowing for over 1 million different characters

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

What is ASCII

A

Uses 7 bits to represent 128 different characters.

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

What is a Linked List

A

A linked list is a data structure used to hold an ordered sequence

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

What does a linked list contain

A

Nodes and pointers

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

Where are linked lists used

A

Music players to store tracks in a playlist and web browsers to go back and forth

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

How do you add to a linked list

A

1) Check if there is free memory
2) Add the item to the free pointer
3) Find where the node needs to go alphabetically
4) Change the pointers from the previous and after the item

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

How do you traverse a linked list

A

You follow the Linked list writing it out

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

What is a Truth Tables

A

A table showing every possible inputs to a logic gate and the corresponding output

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

What does “ ∧ “ represent

A

AND gate

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

What does “ ∨ “ represent

A

OR gate

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

What does “ ¬ “ represent

A

NOT gate

17
Q

What does “ ⊻ “ represent

A

EXCLUSIVE OR gate