Wk 1 Flashcards

1
Q

What’s the meaning of this command?

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

What’s the meaning of this command?

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

What’s the meaning of this command?

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

What’s the meaning of this command?

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

What’s the meaning of this command?

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

What are Boolean variable? What are the only possible values?

A

Logical values

TRUE (=1)
FALSE (=0)

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

Name of these operators and their definitions

A

Comparison operators

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

Name of these operators and their definitions

A

Logical Operators (AND,OR,NOT)

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

Determine if C is TRUE or FALSE

A

for LHS, inside bracket is TRUE so with the squigy line makes it FALSE

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

Predict what x1 is

A

x1 = 1

|| = True if AND OR values are True

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

Predict what x2 is

A

x2= 1

&& = true if AND both values true

> = greater than OR equal to

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

define array

A

variable that consists list of numbers

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

define variable

A

the name by which a value can be recalled

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

define arguments

A

input arguments are values that the user of a function provides to that function.

Output arguments are the resulting values that the function returns.

17
Q

what does adding a semi-colon do?

A

Suppress the output of the statement (doesn’t appear in the command window)

18
Q

what does this mean

A
19
Q

how do you change the decimal places?

A
20
Q

write the code to show this message:

water level:3.5 meter
(where water level known as ‘h’)

A
21
Q
A
22
Q

how do you:
clear the workspace?

A

clear variables

23
Q

how do you:
clear command workflow?

A

clc

24
Q

how do you:
close all the windows?

A

close all