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

A

Arrows

24
Q

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

A

small circles, or elipses

25
Q

Flow charts can make complex processes and algorithms easier to understand the visualization

A

Visual clarity

26
Q

With the help of a flow chart, problem, solving and analysis become more efficient

A

Effective analysis

27
Q

Flowchart serve us a good form of documentation, providing a visual archive of various processes

A

Documentation

28
Q

flowcharts can aid in discussing and conveying ideas to team members or stakeholders

A

Improved communication

29
Q

for very complex, algorithms flow charts can become large and unwieldy

A

Complexity

30
Q

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

A

Language specific

31
Q

If the algorithm changes the flow chart needs to be updated, which can be time-consuming for intricate diagrams

A

Updates

32
Q

This is a name that can be assigned value, and then used to refer to that value throughout your code

A

Variables

33
Q

Variable names cannot begin with a digit true or false

A

True

34
Q

These are lines of text that don’t affect the way your program runs

A

Comments

35
Q

Integers can be binary values and octal values, as well as hexadecimal values, true or false

A

True

36
Q

A floating point consists of a decimal point and can also make use of negative values, true or false

A

True

37
Q

Making use of double quotes to define the string, true or false

A

True

38
Q

null object makes use of the “none” keyword, true or false

A

True

39
Q

The volume operator is applied to are called operands true or false

A

True

40
Q

It allows you to specify or convert a type of variable

A

casting

41
Q

Generic term for an ordered set

A

Sequence

42
Q

Most versatile sequence type, and can contain any object

A

Lists

43
Q

Like lists, they are immutable they can’t be changed

A

tuples

44
Q

A collection of key value pairs

A

Dictionary

45
Q

These are used to compare two values or variables

A

Relational operators

46
Q

This returns true if both conditions are true

A

and

47
Q

Returns through if at least one of the conditions is true

A

or

48
Q

Return the opposite boolean value

A

not

49
Q

this involves expressions involved in keyword, such as if elif and else

A

Conditionals

50
Q

Represent one of the two values true or false

A

booleans

51
Q

It decides whether certain statements need to be executed or not

A

if

52
Q

Statement is used to check additional conditions if the first condition is evaluated as false

A

elif

53
Q

statement will only execute its body, if only preceding, conditional statements, all evaluate to false, otherwise it will not be executed

A

else

54
Q

These are also used for validation and authentication when the program asks for a user input

A

nested if-else statements