BvP 1 - Chapter 1 & 2 - Basic conceps

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

1/19

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.

20 Terms

1
New cards

What is programming?

Writing and executing programs to solve problems practically.

2
New cards

Types of programming errors

Syntax errors, runtime errors (exceptions), logical errors.

3
New cards

What is an IDE?

Integrated Development Environment; a tool for writing and running code.

4
New cards

Example of an IDE

PyCharm, VSC

5
New cards

Definition of variables

Named storage locations that hold data of specific types.

6
New cards

Data types

int, float, String.

7
New cards

Casting

Converting data from one type to another, e.g., int(…), str(…).

8
New cards

Input function

input(…); reads user input as a String.

9
New cards

Output function

print(…); displays output to the user.

10
New cards

Operations on numbers

+, -, *, /, //, %, ** (addition, subtraction, multiplication, etc.).

11
New cards

String operations

len (length), concatenation (+), casting (str(…)).

12
New cards

min(), max(), abs()

Built-in functions for minimum, maximum, and absolute values.

13
New cards

Algorithm

A step-by-step procedure to solve a problem.

14
New cards

Steps in an algorithm

Analysis, design, coding, testing, debugging.

15
New cards

What is "pseudo-code"?

A high-level description of an algorithm.

16
New cards

What is the math module?

A library providing advanced mathematical functions like sqrt().

17
New cards

Syntax of a while loop

`while : `.
18
New cards

What is a syntax error?

An error caused by incorrect use of the programming language's rules (e.g., missing a colon in Python).

19
New cards

What is a runtime error?

An error that occurs during program execution, often due to invalid operations (e.g., dividing by zero).

20
New cards

What is a logical error?

An error where the program runs but produces incorrect results due to flawed logic or algorithms. %