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
Q

class

A
  • A class in terms of OOP is a blueprint for creating objects.
  • A class encapsulates data for the object
26
Q

method

A

facilitate communication between objects

27
Q

Dart language supports the following types

A
  1. number
  2. string
  3. boolean
  4. list
  5. maps
28
Q

are used to represent numeric literals.

A

numbers

29
Q

two types off numbers

A
  1. integer
  2. double
30
Q
  • represent non-fractional values, i.e., numeric values without a decimal point.
  • Integer literals are represented using the intkeyword
A

integer

31
Q
  • 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.
A

double

32
Q

string

A
  • 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
Q

sequence of UTF-16 code units

A

dart string

34
Q

sequence of UTF-32 code units

A

Runes

35
Q

boolean

A

data type represents Boolean values true and false

36
Q

list and map

A

are used to represent a collection of objects

37
Q

list

A
  • ordered group of objects
  • synonymous to the concept of an array in other programming languages
38
Q

map

A

data type represents a set of values as key-value pairs

39
Q

dart core

A

enables creation and manipulation of these collections through the predefined List and Map classes respectively.

40
Q

dynamic

A
  • type of a variable is not explicitly
  • specified used as a type annotation explicitly
41
Q

variable

A
  • “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
Q

keyword are used to declare constants

A

final and const

43
Q

const

A
  • compile time constant
  • declared are implicitly final
44
Q

List Properties

A
  1. first
  2. last
  3. isEmpty
  4. isNotEmpty
  5. length
  6. reversed
  7. single
45
Q

first

A

returns first element in list

46
Q

isEmpty

A

returns true if collection has no element

47
Q

isNotEmpty

A

returns true if collection has at least one element

48
Q

length

A

returns size of the list

49
Q

reversed

A

returns an iterable object containing list values in reversed order

50
Q

single

A

checks if list has only one element and returns it

51
Q

Lists (Basic Operations)

A
  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
Q

List.add()

A

function depends in the specified value to the end of the List and returns a modified List object

53
Q

Map

A
  • simple key or value par
  • dynamic collection
  • shrink or grow at runtime
54
Q

Maps can be declared in two ways

A
  • using map literals
  • using map constructors
55
Q

Declaring a Map using Map Literals

A
  • 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
Q

Declaring a Map using a Map Constructor

A
  1. declar map
  2. initialize map
57
Q

Map - Functions

A

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
Q

Map – Properties

A

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
Q

refers to the current instance of the class.

A

this