Basic Programming Flashcards

1
Q

Not following the
rules.

A

Syntax Error

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

is a mistake or an action that is incorrect—
also known as a bug in the program.

A

Error

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

is an interpreted, object-oriented, high-level programming language with dynamic semantics.

A

Python

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

Consists of structures, features, and opinions
about how problems should be solved.

A

Paradigm

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

◦ Issues found during
execution.

A

Run-time Error

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

The process of breaking a complex problem into parts that are easier to conceive, understand, program, and
maintain—like the Divide-and-Conquer strategy.

A

Decomposition

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

◦ Incorrect operation.
◦ Inaccurate results.

A

Semantic Error

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

Derived from the imperative paradigm, but
groups the instructions into procedures—
involves concepts such as modularity,
cohesion, and coupling.

  • It is a style of programming with strong emphasis on grouping common steps into individual but reusable procedures—better known as functions.
A

Procedural Paradigm

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

Are functions that require subsequent calls to supply its corresponding arguments or values.

A

User-defined functions with Parameters

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

It is basically putting instructions and data into the RAM for the CPU/GPU to process it one after another.

A

Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • A programming paradigm with detailed and ordered instructions. It is concerned more on how to do things.
  • Abstractions are based the classical computers or the Von Neumann architecture: control structures,
    functions, classes.
A

Imperative Paradigm

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

Are reusable block of codes to process data, which are written by a programmer.

A

User-defined Functions

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

It is temporary storage of instructions and data.

A

Memory

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

Are special words in Python which should not be used as identifiers to variables, functions, etc.

A

Keywords

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

Helps a computer classify and allow operations on a data.

A

Data Type

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

It starts with a HASH (#) symbol.
# DO NOT affect the program.
# are used as:
# - guide for the programmers
# - testing purposes

A

Comment

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

A memory location, or simply a container where a specific data is stored.

A

Variable

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

Any whole number, such as: headcount, number of cells, number of tools, etc.

A

Integer

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

PYTHON STANDARD DATA TYPES
Used to signify the absence of value.

A

None type

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

PYTHON STANDARD DATA TYPES
A value that is either True or False.

A

Boolean

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

PYTHON STANDARD DATA TYPES
A sequence of characters, such as: full name, favorite color, inspiring quotes, contents of a blog post, etc.

A

String

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

PYTHON STANDARD DATA TYPES
A subset of real number with fixed-precision, such as: length, temperature, percentage, etc.

A

Float

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

z = x * y

A

Multiplication

21
Q

PYTHON STANDARD DATA TYPES
A way to store multiple values in a single variable.

A

List

22
Q

z = x + y

A

Addition

23
Q

z = x // y

A

Floor division

24
Q

z = x / y

A

Division

25
Q

z = x % y

A

Remainder

26
Q

z = x - y

A

Subtraction

27
Q

z = x ** y

A

Exponent

28
Q

PYTHON STANDARD DATA TYPES
An ordered collection key-value pairs.

A

Dictionary

29
Q

z = -x

A

Negation

30
Q

It allow a program to repetitively execute a code until a stopping mechanism ends it.

A

Looping and control Statement

31
Q

It allows a program to test conditions and execute instructions only when the condition is True.

A

Conditional Statement

32
Q

A way to control or override the program execution.

A

Control Statement

33
Q

It executes a block of code
for each iteration over a sequence.

A

For Loop

33
Q

A line was indented incorrectly.

A

Indentation Error

34
Q

The program is performing an inappropriate operation.

A

Type Error

35
Q

The variable used does not exist in the program.

A

Name Error

36
Q

It repeatedly executes a block of code
while the specified condition is still True.

A

While Loop

37
Q

The module name is misspelled or not existing.

A

ModuleNotFoundError

38
Q

A virtual container containing all known identifiers.

A

Namespace

39
Q

It is a feature that enables testing of a block of code and handles the error when encountered at run-time.

A

Try-Except Clause

40
Q

A program in text form.
- is any valid program written in any
programming language, such as Python.

A

Source code

41
Q

An error that occurs during runtime, but can be handled, so that the program can continue running.

A

Exceptions

42
Q

The program uses an unknown attribute.

A

Attribute Error

43
Q

The key does not exist in a dictionary.

A

Key Error

44
Q

The program has the right type, but with an inappropriate value.

A

Value Error

45
Q

The index is out of range for a sequence or list.

A

Index Error

46
Q

An operation is performed to an unexpected and inappropriate type.

A

Type Error

47
Q

The program attempts to divide by zero.

A

ZeroDivisionError

48
Q

The Python file to be executed in command line.

A

Main Program

49
Q

A folder containing __init__.py file.
- is a folder containing a set of common
Python modules or programs.

A

Package

49
Q

Any Python file are considered as a module.

A

Module

50
Q

A folder containing related packages.
- A software is a bundle of multiple files,
programs, packages, and libraries that makes it whole.

A

Library