NativeScript MCQ Questions & Answers - Mobile Development
NativeScript MCQs : This section focuses on "NativeScript" in Mobile Development. These Multiple Choice Questions (MCQ) should be practiced to improve the NativeScript skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. NativeScript is an open source framework for creating native?
A. iOS
B. Android
C. Both A and B
D. Blackberry
View Answer
Ans : C
Explanation: NativeScript is an open source framework for creating native iOS and Android apps in Angular, TypeScript, or JavaScript
2. NativeScript was developed by?
A. Nitobi Software
B. Progress Telerik
C. Microsoft
D. IBM
View Answer
Ans : B
Explanation: It was developed by Progress Telerik. NativeScript allows you to build web and mobile apps from a single code-base.
3. Which of the following are features of NativeScript?
A. Extensible
B. Easy to setup
C. Can build rich animations, graphs, charts and lists
D. All of the above
View Answer
Ans : D
Explanation: All of the above are salient features of NativeScript.
4. NativeScript exposes the native API through a collection of JavaScript plugins called?
A. Native package
B. Native framework
C. Native plugins
D. Native modules
View Answer
Ans : C
Explanation: NativeScript exposes the native API through a collection of JavaScript plugins called Native plugins.
5. How many type of UI containers nativeScript application have?
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : B
Explanation: NativeScript application have two type of UI containers : Application Container and Model View Container.
6. The basic syntax to create a new application is?
A. tns create --template <template_name>
B. tns create <projectname>
C. tns create <template_name>
D. tns create <projectname> --template <template_name>
View Answer
Ans : D
Explanation: The basic syntax to create a new application is as below : tns create <projectname> --template <template_name>
7. tns-template-name is the name of the template.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, tns-template-name is the name of the template.
8. ________________ is used to create tab based application.
A. Navigation template
B. Master-Detail template
C. Tab navigation template
D. Custom template
View Answer
Ans : C
Explanation: Tab navigation template is used to create tab based application. It comes with pre-configured TabView component with several pages.
9. NativeScript provides a large set of user interface components and are called as widgets.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, NativeScript provides a large set of user interface components and are called as widgets.
10. ___________ Component is used to get multi-line text content from the user.
A. SearchBar
B. TextView
C. Switch
D. Slider
View Answer
Ans : B
Explanation: TextView Component is used to get multi-line text content from the user
11. NativeScript supports _______ layouts containers.
A. 3
B. 4
C. 5
D. 6
View Answer
Ans : D
Explanation: NativeScript supports six layouts containers : Absolute layout container, Dock layout container, Grid layout container, Stack layout container, Wrap layout container, FlexBox layout container.
12. ______________ container component is one of the complex layout container and arranges child elements in tabular format with rows and columns.
A. DockLayout
B. Absolute
C. GridLayout
D. StackLayout
View Answer
Ans : C
Explanation: GridLayout container component is one of the complex layout container and arranges child elements in tabular format with rows and columns.
13. WrapLayout is used to wrap contents on new rows or columns.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, WrapLayout is used to wrap contents on new rows or columns.
14. In NativeScript, navigation is split into __________ different categories based on the direction
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : D
Explanation: In NativeScript, navigation is split into four different categories based on the direction it applies as specified below : Forward navigation, Backward navigation, Lateral navigation, Bottom navigation.
15. In Forward Navigation, _________ is the root level component for navigation
A. Frame
B. Page
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: Forward Navigation refers to navigating users to the screen in the next level of hierarchy. It is based on two NativeScript components, Frame and Page.Frame is the root level component for navigation.
16. Which of the following Is true about Event sender?
A. function, which listen for a particular event and then executed when an event is fired.
B. object, which raise the actual event
C. Both A and B
D. None of the above
View Answer
Ans : B
Explanation: Event sender : object, which raise the actual event.
17. NativeScript supports ______ type of data binding.
A. 1
B. 3
C. 2
D. 4
View Answer
Ans : C
Explanation: NativeScript supports two type of data binding : One-Way data binding and Two-Way data binding.
18. How would you test your nativescript angular application?
A. Run it in Android emulator
B. Call it from a JSP
C. Use a custom Eclipse plugin
D. Run it in a web browser
View Answer
Ans : D
Explanation: You can test your nativescript angular application by Run it in a web browser.
19. Two-way Data Binding binds the model data to UI and also binds the data updated in UI to model.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Two-way Data Binding binds the model data to UI and also binds the data updated in UI to model.
20. Which module is useful for debugging?
A. Timer
B. Trace
C. Connectivity
D. All of the above
View Answer
Ans : B
Explanation: Trace : This module is useful for debugging. It gives the logging information.
Discussion