CC2 MIDTERMS Flashcards

1
Q

Why do people use python?

A

software quality, developer productivity, program portability, support libraries, component intergration

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

What can you do with python?

A

Data base programming, rapid prototyping, GUI, Component integration, systems programming.

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

How does python run programs?

A

using interpreter

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

a program that executes other programs

A

interpreter

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

A sequence of instructions that specifies how to perform a computation

A

Program

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

To get data from the keyboard, file, network, other device

A

Input

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

Display data on a screen, save it in a file on network or some other device

A

output

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

Perform basic mathematical operations, like addition and multiplication

A

math

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

check for certain conditions in run the appropriate code

A

conditional execution

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

Perform some basic action repeatedly usually with some variation

A

repetition

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

formal set of instructions and rules used express, computations and algorithms

A

programming language

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

The main purpose of this language is to provide a human readable medium to design structure and articulate complex task and operations that the computer can understand and execute

A

programming language

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

It is any method of solving a certain kind of problem and a precise method usable by a computer for the solution of the problem

A

algorithm

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

it consists of a set of explicit, infinite steps, which, when carried out for a given set of initial conditions, produce the corresponding output, and terminate in a fixed amount of time

A

algorithm

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

Ability to write an algorithm that will solve the problem according to the requirement

A

Design

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

compare an existing or new algorithm to the previous algorithm

A

analysis

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

Verification consists of three aspects. What are those?

A

program, proving, testing and debugging

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

It is a visual representation of the sequence of steps and decisions needed to perform a process

A

Flowchart

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

Indicates the start or end of a program process

A

Oval

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

Recent process or operations this is where a specific action or command this executed

A

rectangles

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

Used for decision-making they typically contain a yes, or no question or true or false test

A

Diamonds

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

Indicate input or output operations, such as reading, data printing results

A

Parallelograms

23
Q

Show the flow of the process, or the sequence in which operations are executed

24
Q

represent connectors, indicating the flow charts, continuation on another page or junction in flow chart

A

small circles, or elipses

25
Flow charts can make complex processes and algorithms easier to understand the visualization
Visual clarity
26
With the help of a flow chart, problem, solving and analysis become more efficient
Effective analysis
27
Flowchart serve us a good form of documentation, providing a visual archive of various processes
Documentation
28
flowcharts can aid in discussing and conveying ideas to team members or stakeholders
Improved communication
29
for very complex, algorithms flow charts can become large and unwieldy
Complexity
30
charts are high-level diagrams when it comes to coding, the specifics of a programming language need to be considered which the flow chart might not be captured
Language specific
31
If the algorithm changes the flow chart needs to be updated, which can be time-consuming for intricate diagrams
Updates
32
This is a name that can be assigned value, and then used to refer to that value throughout your code
Variables
33
Variable names cannot begin with a digit true or false
True
34
These are lines of text that don’t affect the way your program runs
Comments
35
Integers can be binary values and octal values, as well as hexadecimal values, true or false
True
36
A floating point consists of a decimal point and can also make use of negative values, true or false
True
37
Making use of double quotes to define the string, true or false
True
38
null object makes use of the “none” keyword, true or false
True
39
The volume operator is applied to are called operands true or false
True
40
It allows you to specify or convert a type of variable
casting
41
Generic term for an ordered set
Sequence
42
Most versatile sequence type, and can contain any object
Lists
43
Like lists, they are immutable they can’t be changed
tuples
44
A collection of key value pairs
Dictionary
45
These are used to compare two values or variables
Relational operators
46
This returns true if both conditions are true
and
47
Returns through if at least one of the conditions is true
or
48
Return the opposite boolean value
not
49
this involves expressions involved in keyword, such as if elif and else
Conditionals
50
Represent one of the two values true or false
booleans
51
It decides whether certain statements need to be executed or not
if
52
Statement is used to check additional conditions if the first condition is evaluated as false
elif
53
statement will only execute its body, if only preceding, conditional statements, all evaluate to false, otherwise it will not be executed
else
54
These are also used for validation and authentication when the program asks for a user input
nested if-else statements