ap comp sci test 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

34 Terms

1
New cards

What is a bit?

A bit (binary digit) is the smallest unit of digital data. It can be either 0 or 1.

2
New cards

How many bits are in a byte?

8 bits.

3
New cards

How do computers represent data?

Computers represent data digitally using bits (0s and 1s).

4
New cards

What is abstraction?

Simplifying something by focusing on the important information and leaving out unnecessary details.

5
New cards

What can groups of bits represent?

Numbers, characters, colors, and other types of data.

6
New cards

Can the same sequence of bits represent different things?

Yes. The meaning depends on how the bits are interpreted.

7
New cards

What is analog data?

Data that changes smoothly over time rather than in separate steps.

8
New cards

Give three examples of analog data.

Sound pitch or volume, colors in a painting, and a runner's position during a race.

9
New cards

What is digital data?

Data represented using separate values, such as combinations of 0s and 1s.

10
New cards

How can data values be stored in programs?

In variables, lists, or standalone constants

11
New cards

What are bits grouped together used to represent?

Abstractions such as numbers, characters, and colors

12
New cards

Can the same bit sequence represent different data?

Yes. Its meaning depends on the context

13
New cards

Give three examples of analog data.

Sound pitch, music volume, and a sprinter's position

14
New cards

What is sampling?

Measuring an analog signal at regular intervals.

15
New cards

How does sampling help computers represent analog data?

It takes measurements that can be stored digitally as bits.

16
New cards

What determines the bits needed to store a sample?

The number of bits required to represent its measured value

17
New cards

What is integer overflow?

When a calculation produces a value outside the representable range

18
New cards

Why can fixed-size integers cause errors?

They have a limited range of representable values

19
New cards

What limits integer size in some programming languages?

The available computer memory

20
New cards

What happens when real numbers use a fixed number of bits?

Their range and precision are limited.

21
New cards

What is a round-off error?

A difference caused by storing or calculating an approximate number.

22
New cards

Why are some real numbers approximations in computers?

Some values cannot be represented exactly with the available bits.

23
New cards

What is the binary number system?

Base 2; it uses only the digits 0 and 1.

24
New cards

What is the decimal number system?

Base 10; it uses the digits 0 through 9.

25
New cards

What determines a digit's value in a number?

Its digit and its place value.

26
New cards

What are binary place values, from right to left?

Powers of 2: 1, 2, 4, 8, 16, 32, and so on.

27
New cards

How do you convert binary to decimal?

Add the place values of every position containing a 1.

28
New cards

How do you compare binary numbers?

Convert them to decimal or compare their place values.

29
New cards

What is data compression?

Reducing the number of bits needed to store or transmit data.

30
New cards

Does using fewer bits always mean less information?

No. Fewer bits do not necessarily mean less information.

31
New cards

What affects how much compression is possible?

The original data's redundancy and the algorithm used.

32
New cards

What is lossless compression?

Compression that allows the original data to be reconstructed completely.

33
New cards

What is lossy compression?

Compression that reconstructs only an approximation of the original data

34
New cards

When should lossless or lossy compression be used?

Lossless when exact recovery matters; lossy when smaller files or faster transmission matter more.