Computing Python And The One After Flashcards

1
Q

Why is python easier than any other ?

A

Easy instructions
Simple rules
Very easy to find errors and fix them
Helps us create programs that save time and effort

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

Who is the inventer of python?

A

Guido van rossum

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

What is an algorithm?

A

A set of well defined instructions that allow us to solve a problem in a step by step manner.

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

What r the rules for writing an algorithm?

A

Finite number of steps
Well ordered steps

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

What r flowcharts?

A

A graphical representation of a logical flow of data?

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

Name some apps to make a flowchart in Google docs.

A

Google drawings
Microsoft visio

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

Python is a dash language?

A

Text based

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

What are the types of views in python?

A

Blocks view
Split view
Text view

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

What do u use to save a program on ur computer?

A

Download

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

What is a variable?

A

A variable is used to store a value(the value can change)

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

Dash is the smallest unit of a python program?

A

Token

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

What are the five tokens of python?

A

Reserved words
Literals
Delimiters
Operaters
Identifier

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

What r reserve words?

A

Words that have a predetermined meaning of a signifance in python
.e.g/if,or,as,true,false

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

What are delimiters?

A

They r symbols which perform 3 special rules/grouping, punctuation, assignment.
E.g/+= /=&raquo_space;/

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

What r identifiers?

A

A user defined name in python
Used for variables, functions and modules.
E.g/name,greeting,x

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

What are literals?

A

A raw data assigned to variables while programming,both numeric and string.
E.g/x=34 then 34 is a literal

17
Q

What r operaters?

A

They r tokens to perform an operation in an expression.
E.g/+ - * / %

18
Q

What is a string data type?

A

A sequence of alphabets, numbers,special characters enclosed in a (“”)

19
Q

What are the types of numeric data type?

A

Integer,float

20
Q

What is integer and float?

A

Integer is positive or negative whole number.
Float is a decimal number.

21
Q

What is list data type?

A

List is a collection of items in an ordered sequence.Items of a list can be seperated by a comma and enclosed by square brackets

22
Q

What is Boolean data type?

A

Only has two values true and false or numerically 1 or 0

23
Q

Syntax to convert float to integer

A

Int(blahblah)

24
Q

Syntax to convert integer to float?

A

Float(bhallfh)

25
Q

What does + do

A

Adds a and b

26
Q

What does % do.provide it’s name

A

Modulus.it provides the remainder

27
Q

What does ** do? Provide a name

A

Exponentiation.it give the power to

28
Q

What does // do? Provide a name

A

Floor division.it divided a by b and rounds to the lowest integer value.

29
Q

Pemdas ?

A

Parenthesis
Exponentiation
Multiplication
Division
Addition
Subtraction