A.P. Computer Science Course Unit 3

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

What is a variable?

An abstraction inside a program that can hold a value.

2
New cards

What are the benefits of using meaningful variable names?

They help with the readability of program code and understanding of represented values.

3
New cards

What is a data type?

A classification that specifies which type of value a variable can hold, such as numbers, Booleans, lists, and strings.

4
New cards

What is an array?

A systematic arrangement of objects usually in rows and columns, organized under a single name with distinct indexes.

5
New cards

What does variable declaration mean?

The process of creating a variable in the program before it can be used.

6
New cards

What is a local variable?

A variable that can only be accessed inside the specific code block where it was created.

7
New cards

What is a global variable?

A variable that can be accessed throughout the entire program.

8
New cards

What is the assignment operator?

An operator that allows a program to change the value represented by a variable.

9
New cards

What does 'null variable' refer to?

A variable that has no assigned value and serves as a placeholder for future data.

10
New cards

What is a list?

An ordered sequence of elements where each element has a unique index.

11
New cards

What is the difference between weakly typed and strongly typed languages?

In weakly typed languages, the data type is determined by the value, whereas in strongly typed languages, the data type must be explicitly defined.

12
New cards

What is algorithm sequencing?

The arrangement of steps in the order they are to be executed.

13
New cards

Define a selection in programming.

A structure that executes different parts of the code based on a Boolean condition.

14
New cards

What is iteration in programming?

A repetition of a set of instructions or statements in a program until a specified condition is met.

15
New cards

What is an object in programming?

A built-in function with a collection of properties and methods.

16
New cards

How does a procedure in programming function?

A named group of programming instructions that can take parameters and return values.

17
New cards

What is the difference between a decision problem and an optimization problem?

A decision problem has a yes/no answer, while an optimization problem seeks the best solution among many.

18
New cards

What is a heuristic?

An approach to a problem that is not guaranteed to be optimal but provides a practical solution.

19
New cards

What is an undecidable problem?

A problem for which no algorithm can be constructed to always provide a correct yes/no answer.

20
New cards

What is a binary search algorithm?

An algorithm that starts in the middle of a sorted dataset and eliminates half of the data in each step to find a desired value.

21
New cards

What is the purpose of simulations in programming?

To mimic real-world events, allowing investigation of phenomena without real-world constraints.