Mobile App Development 2 Flashcards

1
Q

open-source general-purpose programming language. It is originally developed by Google and later approved as a standard by ECMA.

A

Dart

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

a new programming language
meant for the server as well as the browser

A

Dart

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

a transpiler that generates
JavaScript equivalent of a Dart Script

A

-dart2js

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

introduced by google, the dart sdk ship with its dart compiler?

A

Dart VM

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

what is dart

A

object-oriented language with C-style syntax which can optionally trans compile into JavaScript.

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

dart supports a varied range of programming aids like

A
  1. interfaces
  2. classes
  3. collections
  4. generics
  5. optional typing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Dart can be extensively used to

A

single-page application

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

what is single-page application

A
  • enable navigation between different screens of the website without loading a different webpage in the browser
  • Gmail
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

main() function

A
  • predefined method
    entry point of application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

print()

A

predefined method that prints specified string or value

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

Dart Command-Line Options

A
  1. -c
  2. -h
  3. -p < path>
  4. –packages < path>
  5. –version
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

enables both assertions and type checks

A

-c

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

-h

A

displays help

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

–version

A

shows file version VM information

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

–packages < path >

A

path package resolution configuration file

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

-p < path>

A

where to find imported libraries

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

names given to elements in a program like variables,
functions

A

Identifiers

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

The rules for identifiers are

A
  1. not inslude special symbols except underscre and dollar sign
  2. unique
  3. identifers cannot be keywords
  4. identifiers are case-sensitive
  5. cannot contain spaces
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

object orientation

A
  • software development paradigm that follows real-world modelling
  • considers a program as a collection of objects that communicate with each other via mechanism called methods.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

a real-time representation of any entity

A

Object

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

Grady Brooch,
every object must have three features

A
  1. state
  2. behavior
  3. identity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

State

A

− described by the attributes of an object

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

Behavior

A

− describes how the object will act

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

identity

A

a unique value that distinguishes an object from a set of similar such
objects

25
class
* A class in terms of OOP is a blueprint for creating objects. * A class encapsulates data for the object
26
method
facilitate communication between objects
27
Dart language supports the following types
1. number 2. string 3. boolean 4. list 5. maps
28
are used to represent numeric literals.
numbers
29
two types off numbers
1. integer 2. double
30
* represent non-fractional values, i.e., numeric values without a decimal point. * Integer literals are represented using the intkeyword
integer
31
* supports fractional numeric values i.e. values with decimal points. * The Double data type in Dart represents a 64-bit (double-precision) floating-point number.
double
32
string
* represent a sequence of characters. For instance, if you were to store some data like name, address etc. the string data type should be used * used to represent string literals. String values are embedded in either single or double quotes
33
sequence of UTF-16 code units
dart string
34
sequence of UTF-32 code units
Runes
35
boolean
data type represents Boolean values true and false
36
list and map
are used to represent a collection of objects
37
list
* ordered group of objects * synonymous to the concept of an array in other programming languages
38
map
data type represents a set of values as key-value pairs
39
dart core
enables creation and manipulation of these collections through the predefined List and Map classes respectively.
40
dynamic
* type of a variable is not explicitly * specified used as a type annotation explicitly
41
variable
* “a named space in the memory” that stores values. * In other words, it acts a container for values in a program. * Variable names are called identifiers.
42
keyword are used to declare constants
final and const
43
const
* compile time constant * declared are implicitly final
44
List Properties
1. first 2. last 3. isEmpty 4. isNotEmpty 5. length 6. reversed 7. single
45
first
returns first element in list
46
isEmpty
returns true if collection has no element
47
isNotEmpty
returns true if collection has at least one element
48
length
returns size of the list
49
reversed
returns an iterable object containing list values in reversed order
50
single
checks if list has only one element and returns it
51
Lists (Basic Operations)
1. List.add() 2. Update the index, List.replaceRange() 3. following functions supported in dart:core library can be used to remove in list
52
List.add()
function depends in the specified value to the end of the List and returns a modified List object
53
Map
* simple key or value par * dynamic collection * shrink or grow at runtime
54
Maps can be declared in two ways
* using map literals * using map constructors
55
Declaring a Map using Map Literals
* To declare a map using map literals, you need to enclose the key-value pairs within a pair of curly brackets "{ }". * Here is its syntax − var identifier = { key1:value1, key2:value2 [,…..,key_n:value_n] }
56
Declaring a Map using a Map Constructor
1. declar map 2. initialize map
57
Map - Functions
**1. addAll()** - add key value pairs **2. clear()** - remove all pairs from map **3. remove()** - removes key adn associated value **4. forEach()** - applies f to each key-value pair of mal
58
Map – Properties
**1**. **Keys** - Returns an iterable object representing keys **2**. **Values** - Returns an iterable object representing values **3**. **Length** - Returns the size of the Map **4**. **isEmpty** - Returns true if the Map is an empty Map **5**. **isNotEmpty** - Returns true if the Map is an empty Map
59
refers to the current instance of the class.
this