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.

22
z = x + y
Addition
23
z = x // y
Floor division
24
z = x / y
Division
25
z = x % y
Remainder
26
z = x - y
Subtraction
27
z = x ** y
Exponent
28
PYTHON STANDARD DATA TYPES An ordered collection key-value pairs.
Dictionary
29
z = -x
Negation
30
It allow a program to repetitively execute a code until a stopping mechanism ends it.
Looping and control Statement
31
It allows a program to test conditions and execute instructions only when the condition is True.
Conditional Statement
32
A way to control or override the program execution.
Control Statement
33
It executes a block of code for each iteration over a sequence.
For Loop
33
A line was indented incorrectly.
Indentation Error
34
The program is performing an inappropriate operation.
Type Error
35
The variable used does not exist in the program.
Name Error
36
It repeatedly executes a block of code while the specified condition is still True.
While Loop
37
The module name is misspelled or not existing.
ModuleNotFoundError
38
A virtual container containing all known identifiers.
Namespace
39
It is a feature that enables testing of a block of code and handles the error when encountered at run-time.
Try-Except Clause
40
A program in text form. - is any valid program written in any programming language, such as Python.
Source code
41
An error that occurs during runtime, but can be handled, so that the program can continue running.
Exceptions
42
The program uses an unknown attribute.
Attribute Error
43
The key does not exist in a dictionary.
Key Error
44
The program has the right type, but with an inappropriate value.
Value Error
45
The index is out of range for a sequence or list.
Index Error
46
An operation is performed to an unexpected and inappropriate type.
Type Error
47
The program attempts to divide by zero.
ZeroDivisionError
48
The Python file to be executed in command line.
Main Program
49
A folder containing __init__.py file. - is a folder containing a set of common Python modules or programs.
Package
49
Any Python file are considered as a module.
Module
50
A folder containing related packages. - A software is a bundle of multiple files, programs, packages, and libraries that makes it whole.
Library