Giter VIP home page Giter VIP logo

dart-basics's Introduction

dart-basics

Lo que sabes


  1. ¿Qué valores podemos almacenar en un bool?
  • True y False
    

  1. print es:
  • Una función
    

  1. La variable numeros, sería de tipo:

    final numeros = [1,2,3,4,5];

  • list[int]
    

  1. ¿Esto es permitido?

    list masNumeros = List(10);

    masNumeros.add(1);

  • Falso
    

  1. ¿Qué tipos de valores se pueden almacenar en una variable dynamic?
  • bools, ints, Strings, instancias de clases, todas las anteriores y más.
    

  1. ¿Cómo se llama un método que tiene el mismo nombre que la clase que lo contiene?

    class Heroe {

    Heroe( );

    }

  • Constructor
    

  1. Para poder llamar el json.decode en la siguiente función, ¿qué necesitamos importar?

    json.decode( '{ "nombre": "Logan", "poder":"Regeneración" }' );

  • import 'dart:convert';
    

  1. Dado el siguiente mapa:


    Map<String, dynamic> persona = {

    'nombre' : 'Carlos',

    'edad' : 32,

    'soltero': true

    };


    ¿Cómo leemos el valor de soltero?

  • persona['soltero']
    

  1. ¿Podemos crear instancias de una clase abstracta?
  • Falso
    

  1. ¿Podemos extender las propiedades de una clase abstracta a una clase normal?


    abstract class Persona {

    String nombre;

    String apellido;

    }

    class Empleado extends Persona {

    double salario;

    }

  • Verdadero
    

What you know


  1. What values can we store in a bool?
  • True ANDy False
    

  1. print is:
  • A function
    

  1. The variable numbers would be of type:

    final numbers = [1,2,3,4,5];

  • list[int]
    

  1. Is this allowed?

    list moreNumbers = List(10);

    moreNumbers.add(1);

  • False
    

  1. What types of values can be stored in a dynamic variable?
  • bools, ints, Strings, class instances, all of the above and more.
    

  1. What do you call a method that has the same name as the class that contains it?

    class Heroe {

    Heroe( );

    }

  • Constructor
    

  1. In order to call the json.decode in the following function, what do we need to import?

    json.decode( '{ "name": "Logan", "poder":"Regeneration" }' );

  • import 'dart:convert';
    

  1. Given the following map:


    Map<String, dynamic> person = {

    'name' : 'Pepito',

    'age' : 32,

    'single': true

    };


    How do we read the 'single' value?

  • person['single']
    

  1. Can we create instances of an abstract class?
  • False
    

  1. Can we extend the properties of an abstract class to a normal class?


    abstract class Person {

    String name;

    String lastName;

    }

    class Employee extends Person {

    double salary;

    }

  • True
    

dart-basics's People

Contributors

jesielpalacios avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.