Skip to main content

Multiple Choice Questions - Angular 4 Bindings

Multiple Choice Questions - Angular 4 Bindings


1. Data bindings are applied as . . . . . . . . or as special sequences of characters in strings.

A) expressions
B) attributes on HTML elements
C) elements itself
D) none of above

2. Binding types such as Interpolation, Property, Attribute, Class and Style support . . . . . . data flow from the data source (exposed from the component) to a view or template.

A) one-way
B) two-way
C) three-way
D) both-ways

3. Angular provides a special version of the standard property binding, known as the . . . . . . . . ., that is used to include expression results in the text content of host elements.

A) string extrapolation binding
B) evaluation binding
C) crypto binding
D) string interpolation binding

4. A data binding has these four parts:

A) host element, curly brackets, target, expression
B) host element, square brackets, target, evaluation
C) host element, square brackets, target, expression
D) host element, parentheses, target, expression

5. Property binding works on component properties too.

A) True
B) False

6. Two-way binding allows for data to be easily displayed and updated simultaneously. This makes it easy to reflect any changes the user makes to the DOM. Angular does this by using . . . . . . to watch for changes and then update the value.

A) ng-init
B) ngModel
C) ng-bind
D) ngControl

7. The . . . . . . . tell Angular that this is a one-way data binding that has an expression that should be evaluated.

A) parentheses ()
B) curly brackets
C) angle brackets ⟨ ⟩
D) square brackets (the [ and ] characters)

8. Attribute binding is similar to property binding but is tied to the . . . . . . . . rather than the DOM property.

A) Page attribute
B) DOM attribute
C) Root attribute
D) HTML attribute

9. The most commonly encountered attribute without a corresponding property is . . . . . ., which is used to set the number of columns that a td element will occupy in a table.

A) href
B) src
C) colspan
D) rowspan

10.

A) This binding evaluates the expression and uses the result to replace any existing class memberships.
B) This binding evaluates the expression and uses the result to set the element’s membership of class.
C) This binding sets class membership of multiple classes using the data in a map object.

Answers

Comments

Popular posts from this blog

Conjunction Worksheet

Practice English Grammar Conjunctions with the below Conjunction worksheet. Apart from this Conjunction worksheet, you can also go through other Conjunction exercises: Conjunction exercise 1 , Conjunction exercise 2 . Co-ordinating Conjunctions A conjunction placed between words, phrases, clauses, or sentences of equal rank, e.g. and, but, or. [ Via ] Correlative Conjunctions They get their name from the fact that they work together (co-) and relate one sentence element to another. Correlative conjunctions include pairs like "both/and," "whether/or," "either/or," "neither/nor," "not/but" and "not only/but also". [ Via ] For example He'd rather run to school than walking. Identify Co-ordinating Conjunctions: 1. Many women and children came to see the movie. 2. I wrote to him, but she did not respond. 3. Her condition became worse, so she was taken to nearby hospital. 4. We should hire a cab, otherwise we will n...

100 Top XML Multiple Choice Questions and Answers

Below are the list of top 100 XML multiple choice questions and answers for freshers beginners and experienced pdf. XML Multiple Choice Questions and Answers 1. What does XML stand for? A. eXtra Modern Link B. eXtensible Markup Language C. Example Markup Language D. X-Markup Language Ans: B 2. What is the correct syntax of the declaration which defines the XML version?: A. <xml version="A.0" /> B. <?xml version="A.0"?> C. <?xml version="A.0" /> D. None of the above Ans: B 3. Which statement is true? A. All the statements are true B. All XML elements must have a closing tag C. All XML elements must be lower case D. All XML documents must have a DTD Ans: B 4. Is it easier to process XML than HTML? A. Yes B. No C. Somtimes D. Cant say Ans: A 5. Which of the following programs support XML or XML applications?: A. Internet Explorer 5.5 B. Netscape D.7 C. RealPlayer. D. both A and B Ans: D 6. Kind of Parsers are A. well-formed B. well-documente...

50 Top DHCP Multiple Choice Questions and Answers

Below are the list of top 50 DHCP multiple choice questions and answers for freshers beginners and experienced DHCP Multiple Choice Questions and Answers 1. What is the purpose of the DHCP server? A � to provide storage for email B � to translate URLs to IP addresses C � to translate IPv4 addresses to MAC addresses D � to provide an IP configuration information to hosts Answer: D 2. How is the message sent from a PC2 when is first powers on and attempts to contact the DHCP Server? A � Layer 3 unicast B � Layer 3 broadcast C � Layer 3 multicast D � Without any Layer 3 encapsulation Answer: B 3. What is the default behavior of R1 when PC1 requests service from DHCP server? A � Drop the request B � Broadcast the request to R2 and R3 C � Forward the request to R2 D � Broadcast the request to R2, R3 and ISP Answer: A 4. Refer to the exhibit. Which rule does the DHCP server use when there is an IP address conflict? A. The address is removed from the pool until the conflict is resolved. B. Th...