Data Representation Flashcards

(57 cards)

1
Q

What is Data

A

Information like facts, numbers, audio and video and instructions.

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

How are numbers represented in a computer?

A

Numbers are represented using binary (0s and 1s).

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

How are images stored in a computer?

A

Images are stored as grids of pixels, with each pixel representing color values.

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

How is audio represented in a computer?

A

Audio is stored as digital samples of sound waves.

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

How is video represented in a computer?

A

Video is stored as a sequence of images (frames) with associated audio tracks.

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

Why is it important to understand how computers represent data internally?

A

It helps with data management, storage, and transmission.

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

What determines how data like music or video is handled on a computer?

A

It depends on the software (e.g., music software vs. video software) and file type (mp3 and mp4 diffs because of how data is encoded and compressed)

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

What is a transceiver in computing?

A

A transceiver allows a computer to send, receive, and understand data—often using binary.

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

Where is binary used in media data processing?

A

Binary is used in internal data representation (chaning data into binary to be more readable) and software interpretation (being able to read binary).

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

How is media (like audio and video) converted into digital format?

A

Through two processes:

Sampling: You take measurements of a continuous signal at regular time intervals. If yuo sample 44 100 times per second, you measure sound wave 44 100 times every second

Quantization: You take each measurement and round it to the nearest available digital value.

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

What do sampling and quantization help create?

A

Digital files that can be stored and processed by a computer.

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

What is the role of software in handling media data?

A

Software interprets internally represented binary data to make it usable (e.g., playing music or video).

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

How are characters (letters, symbols) represented in a computer?

A

Using ASCII or Unicode, where each character is assigned a unique binary code.

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

How are whole numbers (integers) represented in a computer?

A

As pure binary codes. Example: The number 7 is represented as 0111 in binary.

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

What standard is used to represent fractions and decimal numbers in computers?

A

The IEEE 754 standard.

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

What is a floating-point number?

A

A way of representing real numbers (including fractions and very large/small numbers) using the IEEE 754 format.

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

What are the three main parts of a floating-point number?

A

Sign bit: Indicates positive or negative (+ or –)
Exponent: Determines the scale (how big or small)
Mantissa (significand): Represents the actual number

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

What does the sign bit in a floating-point number indicate?

A

Whether the number is positive or negative.

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

What does the exponent in a floating-point number do?

A

It scales the number (makes it bigger or smaller).

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

What is the mantissa (or significand) in a floating-point number?

A

The actual digits of the number being represented.

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

What was the communication issue before ASCII was developed?

A

Computers could not communicate with each other due to the use of many different character sets.

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

What organization played a key role before ASCII was developed?

A

The American National Standards Institute (ANSI).

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

Who contributed to the development of ASCII?

A

The X3 committee (under the American Standards Association)
Bob Bemer (from IBM – International Business Machines Corporation)

24
Q

What major event happened in 1968 related to ASCII?

A

The U.S. president recognized ASCII as the federal standard computer language.

25
What does ASCII stand for?
American Standard Code for Information Interchange (often simplified as "Information Exchange").
26
What is ASCII used for?
ASCII assigns binary codes to letters, numerals, and various characters so computers can process and exchange text.
27
How many characters are in the standard ASCII set?
128 characters, mostly Western-oriented.
28
What types of characters are included in ASCII?
Letters (A–Z, a–z), numerals (0–9), punctuation, and control characters.
29
Does ASCII have any extensions?
Yes. These are the types: 1. Extended ASCII (8-bit) 2. Unicode (Char 0-255): Vendor specific extensions 3. ISO/IEC 8859 Series (Char 0-255): Langauge specific 4. Unicode (UTF-8) (0-1 114 111)
30
What does the ascii() function do in Python?
ascii() in Python shows a version of text where any special or non-English characters are replaced with codes so that the whole thing uses only plain English (ASCII) characters.
31
What does the ord() function do?
Converts a character to its ASCII or Unicode numeric code point.
32
What does the chr() function do?
Converts a numeric code point to its corresponding character. Reverse of ord()
33
How can you print all printable ASCII characters in Python?
for i in range(32, 127): print(f"{i}: {chr(i)}")
34
What is Unicode?
Unicode is a universal system that assigns a unique number to every character and symbol used in all languages and scripts worldwide.
35
Is Unicode a programming language?
No, Unicode is not a programming language—it's a character encoding system used by programming languages.
36
What is a Unicode code point?
A code point is a unique number assigned to each character in Unicode
37
What is a grapheme in Unicode?
A grapheme is a single unit of a writing system, such as a letter, emoji, or symbol. It may be made up of one or more Unicode code points.
38
How can you find the Unicode code point of a character in Python?
Use the ord() function.
39
How can you get a character from a Unicode code point in Python?
Use the chr() function.
40
What is binary?
Binary is a numbering scheme where each digit has only two possible values: 0 or 1.
41
Why is binary important in computing?
Binary is the foundation of all binary code used in computing systems.
42
What do the digits in binary represent?
Each binary digit (bit) represents an on (1) or off (0) state, which computers use to process data.
43
Is binary used only in computers?
No, binary is also used to represent electrical states and control transistors.
44
What is the connection between binary and electricity?
Binary can represent electrical signals, where 1 = on (voltage) and 0 = off (no voltage).
45
When was binary first introduced in computers?
Binary was first introduced in early computers during the 1940s.
46
When did the base-2 (binary) system become a computing standard?
In the 1970s, with the rise of the 8-bit microprocessor.
47
What major technology helped standardize the use of binary?
The 8-bit microprocessor.
48
Why is the binary system important today?
Billions of devices rely on binary for computers and digital systems to function.
49
What kind of systems depend on the binary (base-2) system?
Computers, electronics, digital communication, and nearly all modern devices.
50
What is decimal to binary conversion?
t's the process of converting a number from base-10 (decimal) to base-2 (binary).
51
What is a hexadecimal?
Base 16 system. It is used to represent large numbers with small digits.
52
What is the base-16 number system also called?
The hexadecimal system.
53
Why was the hexadecimal system developed?
To simplify binary coding used in computers.
54
Who commonly uses hexadecimal to represent binary values?
Engineers
55
When did hexadecimal use become prominent?
In the 1960s, as computing evolved.
56
In which fields did hexadecimal become especially useful?
Programming and digital electronics.
57
Why are different data representations important in computer systems? Examples?
For optimizing storage, efficient transmission, and ensuring compatibility across platforms and languages. Storage Optimization Efficient encoding reduces the amount of space needed to store data. For example, using binary or hexadecimal allows compact storage of large values. Efficient Transmission Data needs to be transmitted quickly and reliably over networks. Using standard encodings ensures that data can be compressed and sent faster. Cross-Platform Compatibility Data formats like Unicode help ensure that text is displayed correctly on all systems, regardless of language or operating system. International Communication Standards Unicode and other encoding standards allow communication and software to support global languages and characters, making technology accessible worldwide.