Angular MCQ Quiz Question and Answer Set 2
Categories: Interview questions and answers Angular Angular JS MCQ
Angular MCQ Quiz Question and Answer Set 2
Q1- Which are the different Data Types supported by Typescript?
- Boolean var bValue: boolean = false
- Number var age: number = 16
- String var name: string = "jon"
- All of the above
Answer: D
Q2 - Which of the following is a valid AngularJS expression?
- {{ 2 + 2 }}
- { 2 + 2 }
- (( 2 + 2 ))
- { (2 + 2) }
Answer: A
Q3 - Which of the following is true about ng-init directive?
- ng-init directive initializes an AngularJS Application data.
- ng-init directive is used to put values to the variables to be used in the application.
- both
- none
Answer: C
Q4 - Which of the following directive bootstraps AngularJS framework?
- ng-init
- ng-app
- ng-controller
- ng-bootstrap
Answer: C
Q5 - The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.
- yes
- no
Answer: A
Q6 - Which of the below commands are used for installing dependencies in Node.
- npm add dependencyName
- npm i / install -g dependencyName
- node i / install dependencyName
- node i / install dependencyName
Answer : B
Q7 - How many types of Data Binding are there?
- 1 type
- 2 type
- 3 type
- 4 type
Answer: C
Q8 - If I write <button (click) = "onClick ()"> in a template, I use?
- interpolation
- property binding
- event binding
- none of the above
Answer: C
Q9 - What is the @Output decorator for?
- Share data from a parent component to a child
- Share data from a child component to a parent*
- Use event binding
- Use a service
Answer: B
Q10 - What is the @Output decorator for?
- Share data from a parent component to a child
- Share data from a child component to a parent
- Use event binding
- Use a service
Answer: B