i cee tea Flashcards

1
Q

is a popular programming language.

A

Python

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

Python as created by

A

Guido van Rossum, and released in 1991.

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

python is used for? 1,2,3,4

A

web dev,software dev,mathematics,system scripting

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

server-side or executed by the server

A

web development

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

high-level programming language known for its readability and versatility

A

software development

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

allows you to perform mathematical tasks on numbers

A

Mathematics

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

create scripts that can run commands, manipulate data, and interact with other programs or systems

A

system scripting

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

What can Python do?

-Python can be used on a server to create ——–.
*Python can be used alongside software to create ——–.
*Python can connect to database systems. It can also —– and ——–
*Python can be used to handle —— and perform ————.
- Python can be used for——– or ————

A

-web applications.
-create workflows.
-read and modify files.
-big data and perform complex mathematics.
-rapid prototyping or production-ready software development.

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

Why Python?

-Python works on ** ** platforms.
-Python has a _____ similar to that of the English language.
-Python has a syntax that allows developers to write programs with _____ than some other programming languages.
-Python runs on an _____ system, meaning that code can be executed as soon as it is written. This means that prototyping can be very _____.

A

-different platforms.
-simple syntax.
-fewer lines than some other programming languages.
-interpreter system, very quick.

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

is a simulation of how a real software product will look, work, and feel. Typically built early in the software development process, prototypes are primarily for design feedback and user testing.

A

prototype in software development

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

Python can be treated in a ____

A

procedural way, an object-oriented way or a functional way.

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

Like a mini-program inside python, with its own set of rules and behaviors.

A

object

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

The most recent major version of Python is ___

A

Python 3. However, Python 2, although not being updated with anything other than security updates, is still quite popular.

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

Python will be written in a ___

A

text editor. It is possible to write Python in an Integrated Development Environment(IDE), such as **Thonny, Pycharm, Netbeans, or Eclipse **which are particularly useful when managing larger collections of Python files.

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

examples of ide

A

Thonny, Pycharm, Netbeans, or Eclipse.

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

Python uses ____ to complete a command, unlike other programming languages which often use semicolons or parentheses.

A

New lines

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

Python relies on ____

A

indentation, using whitespace, to define scope; such as the scope of loops, functions, and classes. Other programming languages often use curly brackets for this purpose.

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

An interpreted programming language, this means that as a developer you write Python (.py) files in a text editor and then put those files into the Python interpreter to be executed.

A

Python

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

The way to run a Python file is like this on the command line:

•Where “helloworld.py” is the name of your Python file.

A

C:\Users\Your Name>python helloworld.py

20
Q

refers to the set of rules that defines the combinations of symbols that are considered to be correctly structured programs in the Python language. These rules make sure that programs written in Python should be structured and formatted, ensuring that the Python interpreter can understand and execute them correctly.

A

Python syntax

21
Q

refers to the use of whitespace (spaces or tabs) at the beginning of a line of code in Python.

•It is used to define the code blocks.

A

Python indentation

22
Q

READ

Indentation is crucial in Python because, unlike many other programming languages that use braces “{}” to define blocks, Python uses indentation.
*It improves the readability of Python code, but on other hand it became difficult to rectify indentation errors. Even one extra or less space can leads to indentation error.

A

/slay

23
Q

is containers that store values.

A

Python variable

24
Q

We do not need to declare variables before using them or declare their type.

A

Python variable

25
Q

is a name given to a memory location. It is the basic unit of storage in a program.

A

Python variable

26
Q

The value stored in a variable can be changed during ———.
A Variables in Python is only a name given to a memory location, all the operations done on the variable effects that memory location.

A

program execution.

27
Q

A Python variable name must start with a letter or the underscore character.
•A Python variable name cannot start with a number.

A

Y

28
Q

We can re-declare the Python variable once we have declared the variable and define variable in python already.

A
29
Q

Also, Python allows assigning a single value to several variables simultaneously with “=” operators.

A
30
Q

Comments starts with a ____, and Python will ___

A

, ignore them.

31
Q

can be defined as the sequence of characters enclosed in single, double, or triple quotes. The triple quotes (“””) can be used for writing multi-line strings.

A

The string type

32
Q

These are number types. They are created when a number is assigned to a variable.

A

Numeric Types

33
Q

holds signed integers of non-limited length.

A

Int

34
Q

holds floating precision numbers, and they are accurate up to 15 decimal places.

A

float

35
Q

contains the real and imaginary parts

A

complex –

36
Q

data types that represent ordered collections of elements. These elements can be of any data type, including numbers, strings, or more.

A

Sequence Types

37
Q

an ordered sequence of some data written using square brackets

A

List

38
Q

an ordered sequence of some data written using square brackets

A

List

39
Q

read-only data structure, and we can’t modify the size and value of the items of a
tuple. Also, items are enclosed in parentheses

A

Tuple

40
Q

can be considered as sublist, taken out of a list using the slice operator.

A

range

41
Q

items are ordered, changeable, and allow duplicate values.

items are indexed, the first item has index [0], the second item has index [1]

A

List items

42
Q

When we say that lists are ordered, it means that the items have a defined order, and that will not change
•If you add new items to a list, the new items will be placed at the end of the list

A

Ordered

43
Q

we can change, add, and remove items in a list after it has been created.

A

Changeable

44
Q

•Since list are indexed, lists can have items with the same value:

A

Allow Duplicates

45
Q

To determine how many items a list has, use the len() function

A

List length