COMPROG 2 MIDTERM QUIZ

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

1/40

flashcard set

Earn XP

Description and Tags

L1 L2 L3 L4

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

41 Terms

1
New cards

Python Programming

A step-by-step process of instructions (code) followed by a computer to perform a specific task.

2
New cards

Algorithms Design

The process of breaking down complex problems into smaller, manageable pieces.

3
New cards

Debugging

Identifying and fixing errors (specifically syntax errors) in code.

4
New cards

Testing

Ensuring that code behaves as expected and identifying logical errors.

5
New cards

Optimization

The process of ensuring a program runs efficiently.

6
New cards

Documentation

Comments within the code used to help others or yourself understand how the code works.

7
New cards

Version Control

A system for collaborative development.

8
New cards

Integrated Development Environment (IDE)

A software suite for developers that includes:

9
New cards

Code Editor

For writing and editing code with features like syntax highlighting and code completion.

10
New cards

Debugger

To set breakpoints and inspect variables during execution.

11
New cards

Compiler/Interpreter

To translate source code into machine-executable instructions.

12
New cards

Python

An interpreted, high-level, general-purpose programming language created by Guido van Rossum in 1991, known for its readability

13
New cards

Variables

Used to store data; they occupy memory space based on the type of value assigned to them.

14
New cards

Identifiers

The name given to a variable, function, or class. They must start with a letter or underscore and cannot start with a number.

15
New cards

Immutable Data Types

Data types whose values cannot be changed after creation (e.g., Numbers, Strings, Tuples).

16
New cards

Mutable Data Types

Data types whose values can be changed (e.g., Lists, Dictionaries, Sets).

17
New cards

Python Keywords

Reserved words (like while, def, if) that have special meanings and cannot be used as identifiers.

18
New cards

int

Represents whole numbers (e.g., -1, 0, 100)

19
New cards

float

Represents decimal/floating-point numbers (e.g., 3.14).

20
New cards

str (String)

Represents text enclosed in single or double quotes.

21
New cards

list

A mutable, ordered collection of items.

22
New cards

tuple

An immutable, ordered collection of items.

23
New cards

dict (Dictionary)

An unordered collection of key-value pairs.

24
New cards

bool (Boolean)

Represents True or False values.

25
New cards

Function

A block of code containing one or more statements used to perform a specific, repeatable task.

26
New cards

Code Re-usability

The primary benefit of functions; writing code once and calling it wherever needed to avoid redundancy.

27
New cards

Function Declaration

Defined using the def keyword, followed by the function name and parameters.

28
New cards

Built-in Functions

Predefined functions already available in Python, such as print() or help().

29
New cards

User-defined Functions

Functions created by the programmer for specific application needs.

30
New cards

Default Arguments

Parameters that take a default value if no argument is provided during the function call.

31
New cards

Binary System (Base-two)

A numeral system used by computers composed only of two digits: 0 and 1.

32
New cards

Bitwise Operators

Operators that perform operations on the individual bits of a number.

33
New cards

& (Bitwise AND)

Returns 1 if both bits are 1.

34
New cards

| (Bitwise OR)

Returns 1 if at least one bit is 1

35
New cards

^ (Bitwise XOR)

Returns 1 if only one of the bits is 1.

36
New cards

~ (Bitwise NOT)

A unary operator that flips all the bits of the operand.

37
New cards

<< (Left Shift)

Shifts bits to the left by a specified number of positions.

38
New cards

>> (Right Shift)

Shifts bits to the right.

39
New cards

Compound Operators

Shorthand notation that combines a bitwise operation with assignment (e.g., a &= b is a = a & b).

40
New cards

Byte / Octet

A unit of information comprising eight bits, capable of storing 256 distinct values.

41
New cards

UTF-8

A character encoding standard that is a superset of ASCII and favors Latin letters to save space.