Ionic Upwork Test

0
217

We don’t guarantee that all provided answers are correct.

Which of the following components are need to start with Ionic? Check all that apply.
Note: There may be more than one right answer.
Answer

  • NodeJS
  • Android SDK
  • XCode
  • Cordova and Ionic
  • MeteroJS

Use input-label to place a label to the left of the input element. When the user enters text the label does not hide.
Note that there’s nothing stopping you from also using a placeholder label too?
Answer

  • <div class=”list”>
    <label class=”item item-input”>
    <input type=”text” placeholder=”First Name”>
    </label>
    <label class=”item item-input”>
    <input type=”text” placeholder=”Last Name”>
    </label>
    <label class=”item item-input”>
    <textarea placeholder=”Comments”></textarea>
    </label>
    </div>
  • <div class=”list”>
    <label class=”item item-input”>
    <span class=”input-label”>Username</span>
    <input type=”text”>
    </label>
    <label class=”item item-input”>
    <span class=”input-label”>Password</span>
    <input type=”password”>
    </label>
    </div>
  • Both of the above
  • None of the above

Which gesture is used for the touch that says at the same location 500ms?
Answer

  • on-hold
  • on-tap
  • on-pressed
  • on-touch

Which of the following components allows to see the next page in navigation stack?
Answer

  • locationPath
  • navPush
  • navPop
  • naxNext

Which of the following plugins can be used for safety storage?
Answer

  • cordova-plugin-safe-storage
  • cordova-plugin-secure-storage
  • cordova-plugin-sqlite-storage
  • cordova-plugin-sql-storage

Which of the following Cordova plugins can be used for gelocation?
Answer

  • cordova-plugin-gelocation
  • cordova-gelocation-plugin
  • gelocation-plugin
  • navigator.gelocation

Ionic provides custom ___ and methods?
Answer

  • Controller
  • Components
  • Methods
  • Classes

What can be called after current play/record or stop action has completed?
Answer

  • mediaSuccess
  • mediaComplete
  • mediaStatus
  • All of the above

Which cordova plugin is used to open external links form your app inside a web browser view?
Answer

  • org.apache.cordova.lonicbrowser
  • org.apache.native.inappbrowser
  • org.apache.cordova.inappbrowser
  • org.apache.cordova.browser

Which of the following life cycle events exists in Ionic 2 navigation? Check all that apply.
Note: There may be more than one right answer.
Answer

  • ionViewDidEnter
  • ionViewIntLoad
  • ionViewDidLoad
  • All of these

For example, the NativeStorage is connected.
Which of the following lines of code correctly adds newItem to storage?

Answer

  • new NativeStorage(‘newItem’, {new: 1});
  • NativeStorage.setItem(‘newItem’, {new: 1}.then(()=>);
  • NativeStorage.newItem(‘newItem’, {new: 1}, cb);
  • NativeStorage.Item(‘newItem’, {new: 1});

Which of the following Google Maps instances are exists in ionic-native after installing google-maps package? Check all that apply
Answer

  • GoogleMapsLatLng
  • GoogleMap
  • GoogleMapsEvent
  • All of the above

Which code below will add a custom page transition on ionic 2?
Answer

  • import { Config } from ‘ionic-angular’;@NgModule({})
    class AppModule {
    constructor(private config: Config) {
    this.config.setTransition(‘fade-transition’, FadeTransition);
    }
    }
  • import { Component} from ‘@angular/core’;
    import { NavController, Slides} from ‘ionic-angular’;@Component({
    constructor(private config: Config) {
    this.config.setTransition(‘fade-transition’, FadeTransition);
    })
  • import { Config } from ‘ionic-angular’;@NgModule({})
    class AppModule {
    constructor(private config: Config) {
    this.config.setTransition(‘fade-transition’, FadeTransition);
    }
    }
  • All of the above

Which of the following SASS files is the “main” style file in Ionic 2 project?
Answer

  • style.scss
  • main.scss
  • global.scss
  • app.scss

Which of the following lines show the unique device id?
Answer

  • console.log(Device.device.id);
  • console.log(Device.device.uuid);
  • console.log(Device.uuid);
  • console.log(Device.device);

Which of the following statement are true about Ionic-nav-view?(Choose all that apply).
Note: There may be more than one right answer.
Answer

  • used for navigation
  • should be placed in index.html
  • should be placed inside app folder
  • None of the above

What is the impact on performance of localStorage in an Ionic app?
Answer

  • You should replace localStorage values frequently, because once you set value it will not be changed unless you change it
  • If application goes with large data, you have to choose sqllite
  • Avoid storing complex data in localStorage, because you should not play with code logic with the help of localStorage
  • All of the above

Which of the following params should be passed first while creating new map instance?
Answer

  • Class of element
  • DOM of element
  • All of the above

Which of the following are True regarding Ionic Framework?
Note: There may be more than one right answer.
Answer

  • It provides tools and services for building mobile UI with native look and feel
  • Ionic is used for developing mobile application
  • Ionic is open source
  • None of the above

Which of the following $color exists in Ionic 2? Check all that apply.
Note: There may be more than one answer
Answer

  • Primary
  • secondary
  • priority
  • All of the above

Using the following code, how can you disable cache with an attribute?
Answer

  • <ion-view cache-view=”false” view-title= “My Title!”>

    </ion-view>
  • <ion-view cache-view=”true” view-title= “My Title!”>

    </ion-view>
  • Both of the above
  • None of the above

Which option display Ionic framework JSON data retrieving?
Answer

  • $http.get(‘content.js’).success(function (response){
    //Whereever you want to put the data
    });
  • $http.get(‘content.js’).addSuccess(function (response){
    //Whereever you want to put the data
    });
  • $http.get(‘content.js’).getSuccess(function (response){
    //Whereever you want to put the data
    });
  • All of the above

Which of the following methods will display location on the map with special zoom level?
Answer

  • getLocation
  • animateMap
  • zoomCamera
  • animateCamera

Which option is used for a making a choice or editing an item by temporarily going over the user’s main view?
Answer

  • Model
  • View
  • Controller
  • Modal

How can Ionic framework be injected into javascript?
Answer

  • angular.module(‘myApp’, [‘ionic-app’])
  • angular.app(‘myApp’, [‘ionic-app’])
  • angular.app(‘myApp’, [‘ionic’])
  • angular.moducle(‘myApp’, [‘ionic’])

The CLI automatically adds a new _____ named resources.
Answer

  • Folder
  • File
  • Icon
  • Screen

A complex group has a button _____ with each button having a text.
Answer

  • Array
  • String
  • Label
  • Property

How can remove cache completely in Ionic
Answer

  • http.get(‘content.js’).success(function(response){
    $scope.doRefresh()
    });
  • $scope.$on(‘$ionicView.beforeEnter’, function () {
    $scope.doRefresh();
    });
  • http.get(‘content.js’).getsuccess(function(response){
    $scope.doRefresh()
    });
  • All of the above

Which of the following are Ionic 2 decorators?
Note: There may be more than one right answer.
Answer

  • @Pipe
  • @Push
  • @Page
  • @Plugin

Which of the following are css Components of Ionic?
Note: There may be more than one right answer.
Answer

  • Colors
  • Checkbox
  • Backdrop
  • All of the above

Which of the following command can be used to create a compenent with previw-box selecor?
Answer

  • ionic PreviewBox component -g
  • ionic -g component PreviewBox
  • ionic -g component previw-box
  • ionic -g PreviewBox component

Plugin are where Cordova stores the plugins that you add to your project. Plugin are added by the following command.
Answer

  • ionic plugin add {plugin}
  • ionic plugin install {plugin}
  • ionic plugin add (plugin)
  • ionic install plugin

Which service are used for navigation in ionic?
Answer

  • $navigationProvider
  • $ionicHistory
  • Both of the above
  • $viewProvider

By default, Ionic will cache a maximum of _____ views.
Answer

  • 10
  • 15
  • 30
  • 40

Which command(s) can you use to start an app from scratch.
Answer

  • ionic start myApp blank
  • ionic start myApp tabs
  • ionic start myApp sidemenu
  • All of the above

Which competent does not exists in Ionic 2?
Answer

  • Checkbox
  • Tooltip
  • Slides
  • Toast

Which of the following SASS variable exists in Ionic 2?
Answer

  • $action-sheet-wp-title-text-align
  • $action-sheet-ios-text-align
  • $action-ios-border-radius
  • All of the above

In AppCtrl controller, how can you retrieve and set platform using ionic.Platform?
Answer

  • .controller(‘AppCtrl’, function($scope) {
    $scope.platform = ionic.Platform.platform();
    })
  • .controller(‘AppCtrl’, function($scope) {
    $scope.platform = Platform.platform();
    })
  • Both of the above
  • .controller(‘AppCtrl’, function($scope) {
    $scope.platform = ionic.platform();
    })

Which service is used for Ionic Popover?
Answer

  • $ionicPopup
  • $ionicPopover
  • $ionicPopup
  • All of the above
SHARE
Previous articleObjective-C Upwork Test

LEAVE A REPLY

Please enter your comment!
Please enter your name here