Programming Flashcards

Get alot

You may prefer our related Brainscape-certified flashcards:
1
Q

In python how would you add two numbers together? Please provide an example.

A

print(number + number)

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

In python how would you subtract two numbers? Please provide an example.

A

print(number - number)

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

In python how would you divide two numbers? Please provide an example.

A

print(number / number)

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

In python how would you times two numbers? Please provide an example.

A

print(number * number)

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

What is a boolean?

A

True or false.

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

What is a string?

A

A piece of text.

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

What is an integer?

A

Whole Numbers.

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

What is a variable?

A

An element, feature, or factor that is liable to change.

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

What is a character?

A

Letters.

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

Define Iteration

A

It is a loop.

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

What does user defined mean?

A

The user defines what is saved from the variable.

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

What does program defined mean?

A

The program defines what is saved in a variable.

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

What is type casting?

A

A method used to change variables from a certain data type to another to match the operation

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

What is the Turing test?

A

A test to figure out if something or someone is human or AI.

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

What does != mean?

A

Not equal to.

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

What does == mean?

A

Equal to.

17
Q

What does < mean?

A

Less than.

18
Q

What does > mean?

A

Bigger than.

19
Q

What does <= mean?

A

Less than or equal to.

20
Q

What does >= mean?

A

Bigger than or equal to.

21
Q

How is iteration beneficial in coding? Give two reasons.

A

Reduces the amount of lines used, makes coding look less complicated.

22
Q

What is indefinite iteration?

A

Finite amount of loops.

23
Q

What is the definition of authentication?

A

The action or process of proving/showing something is genuine or true.

24
Q

What does validation mean?

A

The action of checking the accuracy or validity of something.