Apache Tapestry is an open-source component-oriented Java web application framework conceptually similar to JavaServer Faces and Apache Wicket.
Apache Tapestry MCQs: This section contains multiple-choice questions and answers on the various topics of Apache Tapestry. Practice these MCQs to test and enhance your skills on Apache Tapestry.
List of Apache Tapestry MCQs
1. Apache Tapestry is a framework written in ____?
- Python
- Java
- React
- PHP
Answer: B) Java
Explanation:
Apache tapestry is a framework written in Java.
2. Is Apache Tapestry an open-source framework?
- Yes
- No
Answer: A) Yes
Explanation:
Apache tapestry is an open-source framework.
3. Which type of architecture does Apache tapestry use?
- Component-based architecture
- MVC
- MVVM
- Layered architecture
Answer: A) Component-based architecture
Explanation:
Apache tapestry follows component-based architecture.
4. Tapestry components are____?
- Plain old java objects
- Java classes
- Both A and B
- Only A
- Only B
Answer: C) Both A and B
Explanation:
Java Classes make up the Tapestry components. They are neither inherited from a framework-specific base class nor are they interface implementations; they are just POJOs (Plain Old Java Objects).
5. ____is a key component of the Java utilised by tapestry.
- Components
- Modules
- Annotation
Answer: C) Annotation
Explanation:
Annotation is a key component of Java utilised by tapestry.
6. The ____ is in charge of rendering the page by contacting numerous dispatchers in a predetermined order.
- MasterDispatcher
- AssetDispatcher
- RootDispatcher
Answer: A) MasterDispatcher
Explanation:
The MasterDispatcher is in charge of rendering the page by contacting numerous dispatchers in a predetermined order.
7. How many types of dispatchers are called by MasterDispatcher?
- 3
- 4
- 5
- 6
Answer: B) 4
Explanation:
Four main types of dispatchers which are called by MasterDispatcher are as follows:
- RootPath Dispatcher
- Asset Dispatcher
- PageRender Dispatcher
- Component Dispatcher
8. Which of the following dispatcher matches the URL of the page with the pattern?
- RootPath Dispatcher
- Asset Dispatcher
- PageRender Dispatcher
- Component Dispatcher
Answer: D) Component Dispatcher
Explanation:
Component Dispatcher matches the URL of the page with the pattern.
9. Which of the following dispatcher detects a specific page of that request and its activation context, then renders and transmits that page to the client?
- RootPath Dispatcher
- Asset Dispatcher
- PageRender Dispatcher
- Component Dispatcher
Answer: C) PageRender Dispatcher
Explanation:
PageRender Dispatcher detects a specific page of that request and its activation
context then renders and transmits that page to the client.
10. Tapestry’s only dependency is ____?
- Core Java
- Python
- PHP
- HTML CSS
Answer: A) Core Java
Explanation:
Tapestry’s only dependency is Core Java.
11. Tapestry is created upon which third-party library?
- Jackson
- Maven
- Google-JSON.
- All of the above
- None, Tapestry was created entirely on its own
Answer: E) None, Tapestry was created entirely on its own
Explanation:
Tapestry was created entirely on its own, without the use of any third-party libraries or frameworks.
12. To verify the Maven installation which of the following you would use?
- Mn–version
- Maven-version
- mvn –version
Answer: C) mvn –version
Explanation:
mvn –version command is used to verify the installation of Maven.
13. What is the default port of the application in development mode?
- 8000
- 8080
- 3000
Answer: B) 8080
Explanation:
The default port of the application in development mode is 8080.
14. All of a web application’s static resources, like images, style sheets, and JavaScript libraries/modules, are often stored in which of the following subdirectory?
- src/test/java
- WEB-INF/classes
- src/test/Resources
- /src/main/webapp
Answer: D) /src/main/webapp
Explanation:
All of a web application’s static resources, like images, style sheets, and JavaScript libraries/modules, are often stored under the /src/main/webapp subdirectory.
15. Which of the following statement is TRUE?
- Apache Tapestry follows Convention over Configuration.
- Apache Tapestry follows Configuration over Convention.
Answer: A) Apache Tapestry follows Convention over Configuration.
Explanation:
Apache Tapestry follows Convention over Configuration.
16. Which of the following annotation category is used in Pages, Components, and Mixings Classes?
- Component Annotations
- IoC Annotations
- Annotation for Data Holding Classes
Answer: A) Component Annotations
Explanation:
Component Annotations are used in Pages, Components, and Mixings Classes.
17. Which of the following component annotation is used to allow multiple components to share a private field?
- @property
- @parameter
- Scrap metal environmental impact
- @import
Answer: C) Scrap metal environmental impact
Explanation:
@environmnetal annotation is used to allow multiple components to share a private field.
18. Which of the following component annotation is used to include Assets, CSS and JavaScript?
- @property
- @parameter
- Scrap metal environmental impact
- @import
Answer: D) @import
Explanation:
@import annotation is Used to include Assets, CSS, and JavaScript.
19. In which of the following annotation category objects are injected into the IoC Container?
- Component Annotations
- IoC Annotations
- Annotation for Data Holding Classes
Answer: B) IoC Annotations
Explanation:
In IoC annotation, objects are injected into the IoC Container.
20. ____ should be defined in the root element of the template?
- Tapestry Namespace
- Expansions
- Elements
- Components
Answer: A) Tapestry Namespace
Explanation:
Namespaces should be defined in the root element of the template.
21. ____ is a simple and efficient approach for changing the XML Template dynamically during the page rendering process?
- Tapestry Namespace
- Expansions
- Elements
- Components
Answer: B) Expansions
Explanation:
Expansion is a simple and efficient approach for changing the XML Template dynamically during the page rendering process.
22. ____ are preset tags specified in the Tapestry namespace.?
- Tapestry Namespace
- Expansions
- Elements
- Components
Answer: C) Elements
Explanation:
Elements are preset tags specified in the Tapestry namespace.
23. Static resource files like as style sheets, pictures, and JavaScript files are examples of ____.
- Assets
- Data
- Module
- Elements
- Components
Answer: A) Assets
Explanation:
Static resource files like style sheets, pictures, and JavaScript files are examples of assets.
24. Which of the following begins the rendering process?
- BeforeRenderBody
- AfterRender Body
- BeginRender
- SetupRender
Answer: D) SetupRender
Explanation:
SetupRender begins the rendering process.
25. Is BeginRender and SetupRender the same thing?
- Yes
- No
Answer: B) NO
Explanation:
SetupRender begins the rendering process whereas BeginRender starts rendering the component.
26. Does Apache tapestry support Two Way Data Binding?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, Apache tapestry supports Two Way Data Binding.
27. A method of converting an item of one type to another with identical content is known as ____?
- Validation
- Type checking
- Type Coercion
Answer: C) Type Coercion
Explanation:
A method of converting an item of one type to another with identical content is known as Type Coercion.
28. Is pages and components the same thing in Apache tapestry?
- Yes
- No
Answer: A) Yes
Explanation:
The Page and Component are identical, with the exception that the Page is a root component that is often generated by an application developer.
29. How many parameters does the Loop component have?
- 3
- 4
- 5
- 2
Answer: D) 2
Explanation:
The loop component has the following two parameters –source and var.
30. Who developed Apache tapestry?
- Cherry Chroma
- Macholand Chris
- Howard Lewis Ship
Answer: C) Howard Lewis Ship
Explanation:
Howard Lewis Ship developed Apache tapestry.
31. Which of the following is the IOC annotations?
- LoganCudge
- @Path
- @import
- @value
Answer: D) @value
Explanation:
@value and @inject are the two IOC annotations.
32. LoganCudge, @Path, @import are which type of annotations?
- Component Annotations
- IoC Annotations
- Annotation for Data Holding Classes
Answer: A) Component Annotations
Explanation:
Component annotations are:
- LoganCudge
- @Path
- @import
- @Property
- @Parameter
- Scrap metal environmental impact
33. Which of the following is utilised to get rid of the objects that were formed during the rendering process? It is the SetupRender’s inverse?
- ClearRender
- CleanupRender
Answer: B) CleanupRender
Explanation:
CleanupRender is utilised to get rid of the objects that were formed during the rendering process. It is the SetupRender’s inverse.
34. We may communicate and transmit data using parameters, components, and their related pages in ____?
- Two-way data binding
- One-way/single data binding
Answer: A) Two-way data binding
Explanation:
We may communicate and transmit data using parameters, components, and their related pages in two-way data binding.
35. Which of the following is a customized string used to indicate an object’s validation rule?
- Expression
- Validate expansion
- Validate string
Answer: B) Validate expansion
Explanation:
Validate expansion is a customized string used to indicate an object’s validation rule.
36. Which of the following is used to build a form for user input on the tapestry page?
- Apacheforms
- FormsTape
- Form template
- Form component
Answer: D) Form component
Explanation:
The form component is used to build a form for user input on the tapestry page.
37. Is the JSP Tag library used by Apache Tapestry?
- Yes
- No
Answer: B) No
Explanation:
JSP Tag library is not used by Apache Tapestry.
38. How many ways are provided by Apache Tapestry to persist the data?
- 3
- 4
- 5
- 2
Answer: D) 2
Explanation:
There are two ways provided by Apache Tapestry to persist the data are:
- Session Storage
- Persistence page data
39. What is the full form of SSO in Apache Tapestry?
- Session store object
- Session supply object
- Session storage object
Answer: A) Session store object
Explanation:
SSO stands for Session store object.
40. Can many Tapestry apps be run in the same web application?
- Yes
- No
Answer: B) No
Explanation:
Tapestry 5 did not allow several Tapestry apps in the same web application.
41. Can you use the same component in many templates?
- Yes
- No
Answer: B) NO
Explanation:
No, you cannot use the same component in many templates.
42. Which of the following are the alternatives of Apache Tapestry?
- JHipster.
- Spring Framework.
- Grails.
- Vaadin
- All of the above
Answer: E) All of the above
Explanation:
Following are the alternatives to Apache tapestry:
- JHipster.
- Spring Framework.
- Grails.
- Vaadin