Week4 Week 4 Question QUESTION 1 What is required to set up an event handler to respond to a form submission

Week4
Week 4 Question
QUESTION 1
What is required to set up an event handler to respond to a form submission? (multiple answers)
The form must have an event handler function assigned to the (ngSubmit) attribute
A button in the form must be defined with attribute submit
The submit button must have an event handler function assigned to a (click) attribute
The form must have an event handler function assigned to the (ngSubmit) attribute
QUESTION 2
When a new page is generated on the command line without a module which files are generated?
HTML, TypeScript HTML, JavaScript
SCSS, TypeScript HTML, SCSS, and TypeScriptQUESTION 3
Which of the following bind the value of the src attribute of the img tag to the image property of the template’s class? (multiple answers)
; img {{src}} = image ;
; img src=”{{image}}” ;
; img image = “src” ;
; img src = “image” ;
QUESTION 4
What is the navigation controller function to display a new page by placing it onto the navigation stack?
pull
stack
display
push
QUESTION 5
A new page is created on the command line for the page named NewPage, write below the exact name of the directory created for the page (case sensitive)

QUESTION 6
Which of the following is required to ensure that two-way binding works with Ionic inputs? (multiple answers)
The class property referred to by (ngModel) must have an initial value
The input field must have an initial value defined in the HTML assigned to the value attribute
(ngModel) must be assigned a value which refers to a property from the template’s class
The input must have the name attribute defined
QUESTION 7
Each page in Ionic is passed a Navigation Controller, what is the class of the Navigation Controller object?
NavController NavigationController Nav Navigation Controller
QUESTION 8
What is the correct syntax to generate an Ionic page without a module from the command line?
ionic generate page –no-module
ionic generate NewPage ionic page NewPage –no-module
ionic generate page NewPage –no-module
QUESTION 9
When a new page on the command line called Person is created, what is the name of the class which is created? (case sensitive)

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

QUESTION 10
Which of the following will change the currently shown tab? (assume the code is in the page of the currently displayed tab)
this.navCtrl.parent.push(“NewTab”);
this.navCtrl.parent.show(3);
this.navCtrl.parent.select(“NewTab”);
this.navCtrl.parent.select(3);
Week 5
QUESTION 1
How long should the executive summary of a design document be?

More than one page
The executive summary is the entire document
Half to one page
No more than one sentence
QUESTION 2
Which of the following tasks should be performed before implementation begins? (select multiple)

Testing
Determine requirements
Client meeting
Screen designs
QUESTION 3
Which of the following are secondary navigation patterns? (select multiple)
Image carousel
Expanding list
Tab menu
Gallery
QUESTION 4
Which of the following are primary navigation patterns? (select multiple)
Dashboard
Tab menu
Springboard
Expanding list
QUESTION 5
When would a system overview be necessary in a design document?
If the app is a system
The app is large enough to be considered its own system
If the system consists of more than just the app, e.g. the app requires a server
The app has “system” in its name
week-7
QUESTION 1
What is the value of the variable num after the line below is executed?
var num:int;
undefined
null
0
“”
0.1 points   
QUESTION 2
Ionic Storage provides a storage interface to Ionic apps, but may use different underlying storage approaches. What is the type of interface that the Storage module provides to Ionic apps?
SQL queries
key/value storage
Relational database
MongoDB
0.1 points   
QUESTION 3
If the value of a storage property is retrieved but has not yet been assigned a value, the value returned is:
0
null
“”
undefined
0.1 points   
QUESTION 4
What is the correct way of storing the boolean value true for the key “hasOpened”?
this.storage.set(“hasOpened”, true);
this.storage.set(hasOpened, true);
this.storage.hasOpened = true;
this.storage.set(true, “hasOpened”);
0.1 points   
QUESTION 5
What is the correct way of retrieving the boolean value from the storage key “hasOpened” and storing in a class property “hasOpened”?
this.storage.get(“hasOpened”).then((val) => {
    this.hasOpened = val;
  });

this.hasOpened = this.storage.hasOpened;
this.storage.get(“hasOpened”).then((bool) => {
    this.hasOpened = bool;
  });

this.storage.hasOpened = val;
week8
QUESTION 1
What array function is used to delete an element from an array?
splice
remove
split
slice
0.1 points   
QUESTION 2
If we want to execute some code every time a page is displayed (e.g. repeatedly visiting a tab), where should the code go?
ionViewDidEnter ionViewWillLoad ionViewDidLoad constructor
0.1 points   
QUESTION 3
Which of the following represents a CSS class?
<ion-item *ngFor=”let person of people; odd as odd1″ ngClass=”{odd2: odd1}”>
odd2
ngClass odd1
odd
0.1 points   
QUESTION 4
When a page is shown for the first time, what order are the following executed?
                                             
ionViewDidLoad                                             
constructor
                                             
ionViewDidEnter                                             
ionViewWillEnterQUESTION 5
Which of the following is the correct syntax for an ngFor loop?
<ion-list>
<ion-item ngFor=”let grade in grades”>
<p>{{grades}}</p>
</ion-item>
</ion-list>

<ion-list>
<ion-item *ngFor=”let grades with grade”>
<p>{{grades}}</p>
</ion-item>
</ion-list>

<ion-list>
<ion-item *ngFor=”let grade of grades”>
<p>{{grade}}</p>
</ion-item>
</ion-list>

<ion-list>
<ion-item *ngFor=”let grade of grades”>
<p>grade</p>
</ion-item>
</ion-list>
week-9
QUESTION 1
When a template reference variable is created on a HTML element, what is it’s initial value?
The html element
undefined
null
The value of the input
0.125 points   
QUESTION 2
What is the correct code to access the email template reference variable from the component class?
@ViewChild emailInput;
ViewChild(’email’) emailInput;
@ViewChild(’email’) emailInput;
@ViewChild email;
0.125 points   
QUESTION 3
What is the way to access the value of an input field which has the template reference variable phone?
input.phonephone.valuephone.numberphone
0.125 points   
QUESTION 4
What is the correct way to define a template reference variable email?
; ion-input email ;
; ion-input let email ;
; ion-input #email ;
; ion-input var email ;