i cee tea Flashcards

You may prefer our related Brainscape-certified 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

python

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?

A

Python can be used on a server to create web applications.
•Python can be used alongside software to create workflows.
•Python can connect to database systems. It can also read and modify files.

•Python can be used to handle big data and perform complex mathematics.
Python can be used for 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?

A

-Python works on different platforms.
-Python has a simple syntax similar to that of the English language.
-Python has a syntax that allows developers to write programs with fewer lines than some other programming languages.

-Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be 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

Python was designed for readability and has some similarities to the English language with influence from mathematics.

A

.

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

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.

18
Q

Many PCs and Macs will have Python already installed.
•To check if you have Python installed on a Windows PC, search in the start bar for Python

•If you find that you do not have Python installed on your computer, then you can download it for free from the following website: https://www.python.org/

A
19
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

20
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

21
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

22
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

23
Q

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
24
Q

Python Variable is containers that store values.

A

Python variable

25
Q

is containers that store values.

A

Python variable

26
Q

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

A
27
Q

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

A

Python variable

28
Q

The value stored in a variable can be changed during program execution.
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
29
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

30
Q

A Python variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ).
•Variable in Python names are case-sensitive (name, Name, and NAME are three different variables).
•The reserved words(keywords) in Python cannot be used to name the variable in Python.
•Example : False, None, True, and, as, assert, async

A
31
Q

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

A
32
Q

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

A