DART Basics Flashcards

1
Q

For what are variables?

A

To temporarily store data

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

For what are functions?

A

to execute code ‘on demand’

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

For what are types?

A

to analyse your code before you run/test it

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

assign a value to a var

A

=

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

how to name variables

A

camelCase

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

what is expected from a function

A

return

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

what you can input to functions

A

arguments

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

blueprint of an object

A

class

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

instance field/properties

A

class level variables

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

access class properties/methods

A

myself.name

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

function that dart will execute 1st

A

Main()

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

instantiate a class

A

Class()

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

classes also act as

A

types

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

where are arguments only available

A

inside function body {}

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

to make constructor method

A

repeat class name like class method without return type

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

does the constructor method take arguments

A

can, doesn’t have to

17
Q

use of constructor method

A

individually configured instances of class

18
Q

specify class level properties

A

this.name etc

19
Q

adding more constructor methods

A

class.anyNameYouWant

20
Q

when to use final

A

for values set in constructor that never change

21
Q

named arguments

A

place inside {}

22
Q

to call function with named arguments

A

argument : value

23
Q

named arguments are

A

optional

24
Q

how many times can you extend a class

A

once

25
Q

to deliberately change a method of a base class

A

@override

26
Q

types of variables

A

real, final, constant

27
Q

compile time constant

A

const value

28
Q

run time constant

A

final value

29
Q

and

A

&&

30
Q

or

A

||