Dummy Exam-1.pdf
Document Details
Uploaded by EntertainingObsidian4592
Universidade de Coimbra
Tags
Full Transcript
### Section 1: Advanced Domain Model Skills 1. **Inheritance is used to:** - A) Ensure unique data entry for each entity. - B) Share behavior and structure across specialized entities. *(Correct Answer)* - C) Optimize database performance. - D) Create non-relational data structures. 2. **Wh...
### Section 1: Advanced Domain Model Skills 1. **Inheritance is used to:** - A) Ensure unique data entry for each entity. - B) Share behavior and structure across specialized entities. *(Correct Answer)* - C) Optimize database performance. - D) Create non-relational data structures. 2. **What is the result of generalizing the Player entity by the Person entity?** - A) One combined table. - B) Two tables, one per entity. *(Correct Answer)* - C) A shared ID across all tables. - D) A merged entity with combined attributes. 3. **What will happen to the IDs after generalizing the Player and Staff entities by the Person entity?** - A) IDs will be combined into a new sequence. - B) Player and Staff IDs will keep their own sets and sequences. *(Correct Answer)* - C) IDs will be duplicated across tables. - D) IDs will be restructured and reassigned. 4. **Which statement is correct?** - A) A 1-1 association is a HAS relation, and inheritance is an IS type relation. *(Correct Answer)* - B) A 1-1 association is an IS relation, and inheritance is a HAS type relation. - C) Both 1-1 association and inheritance are HAS relations. - D) Both 1-1 association and inheritance are IS relations. 5. **Why is it a best practice to create a specialization of the FileDocument and Image entities?** - A) To reduce file size. - B) To better configure security and properties based on purpose. *(Correct Answer)* - C) To increase file storage capacity. - D) To avoid creating redundant attributes. ### Section 2: Working with Data 6. **What is the default value of the attribute `DeleteAfterDownload`?** - A) True. - B) False. *(Correct Answer)* - C) NULL. - D) Undefined. 7. **Where are files or images stored by default?** - A) In the database. - B) On the file server located on the application server. *(Correct Answer)* - C) In cloud storage. - D) In the user's local device. 8. **When is it better to place indexes?** - A) If there are more write actions. - B) If there are more read than write actions. *(Correct Answer)* - C) If the application is read-heavy. - D) If the application is write-heavy. 9. **What happens when you apply an index?** - A) The speed of write actions will increase. - B) The speed of read actions will increase. *(Correct Answer)* - C) The application becomes slower. - D) Data retrieval becomes inconsistent. 10. **What is the result of the association in the image below?** - A) A list of IDs in the Staff object. *(Correct Answer)* - B) A list of IDs in the Player object. - C) A set of unique identifiers. - D) A new entity combining both objects. ### Section 3: Advanced Security Configuration 11. **What type of domain model changes can impact the data in the database?** - A) Structural changes and format changes. - B) Type changes and structural changes. *(Correct Answer)* - C) Format changes and index changes. - D) Only index changes. 12. **What are the four stages of data conversion?** - A) Clean up model, Model the conversion, Deploy and convert, Extend domain model. *(Correct Answer)* - B) Backup, Clean up, Convert, Deploy. - C) Analyze, Convert, Deploy, Test. - D) Prototype, Model, Convert, Deploy. 13. **Why is it a best practice to redeploy your app after cleaning up the model?** - A) To reduce the size of the application. - B) To ensure no data is lost during conversion. - C) To avoid complex sync behavior during the next deployment. *(Correct Answer)* - D) To test new features. 14. **What does the function `reversed()` do in XPath?** - A) It reverses the order of retrieved objects. - B) It changes the direction in which the association is queried. *(Correct Answer)* - C) It sorts objects in descending order. - D) It filters out related objects. 15. **What is the best naming for a self-reference where the buddy is referenced by an apprentice?** - A) Buddy_Apprentice. - B) Apprentice_Buddy. *(Correct Answer)* - C) BuddyReference. - D) SelfReference. ### Section 4: Localization and Time Zones 16. **When localize is set to No, the date displayed in the client is based on:** - A) User's time zone. - B) UTC value. *(Correct Answer)* - C) Application server time. - D) Browser settings. 17. **Localizing a DateTime attribute affects:** - A) Only the client. - B) Only the application server. - C) Both client and application server. *(Correct Answer)* - D) Neither client nor server. 18. **If both the App and User time zones are set, the value of the localized DateTime attribute displayed in the client depends on:** - A) The server time zone. - B) The client time zone. *(Correct Answer)* - C) The database time zone. - D) The UTC time. 19. **Jane in the Amsterdam time zone (UTC +2) selects 07/11/2020 in a date picker for a non-localized attribute. What will be the value stored in the database?** - A) 07/11/2020 02:00 AM. - B) 07/11/2020 12:00 AM. *(Correct Answer)* - C) 07/11/2020 10:00 AM. - D) 07/11/2020 04:00 AM. 20. **Nick in the Amsterdam time zone (UTC +2) selects 07/11/2020 in a date picker for a non-localized attribute. What will be the date value if Nick converts it to a string in a microflow using `formatDateTime`?** - A) 07/11/2020 12:00 AM. - B) 07/11/2020 02:00 AM. *(Correct Answer)* - C) 07/11/2020 04:00 AM. - D) 07/11/2020 10:00 AM. ### Section 5: Working with Microflows 21. **Which of the following is not a possible source of data for a microflow?** - A) A page passed as input parameter by another microflow. *(Correct Answer)* - B) An entity retrieved from the database. - C) A constant defined in the model. - D) An enumeration. 22. **True or false: Retrieving by association will always be an in-memory retrieve.** - A) True. - B) False. *(Correct Answer)* 23. **Is there ever a reason to retrieve an object from the database instead of over association?** - A) No, it is always better to retrieve over association. - B) Yes, when constraints other than a single association are applicable. *(Correct Answer)* - C) No, retrieving from the database is slower. - D) Yes, when the database retrieval is explicitly needed for performance. 24. **In which microflow will the combination of retrieve and aggregation be optimized?** - A) Only in microflow A. *(Correct Answer)* - B) Only in microflow B. - C) In both microflows. - D) In neither microflow. 25. **What is an important rule to keep in mind when creating effective indexes?** - A) The index should cover all attributes in a table. - B) The index order should match the search and retrieve queries. *(Correct Answer)* - C) Indexes should be placed only on primary keys. - D) The index should be created on text attributes only. ### Section 6: XPath and Performance 26. **Which of the following is NOT a benefit that XPath provides to the Mendix Platform?** - A) XPath can be used to retrieve data efficiently. - B) XPath supports complex queries. - C) XPath can be used to automatically generate pages and widgets. *(Correct Answer)* - D) XPath can be used to filter data across associations. 27. **What does the following XPath query return? `[OrderManagement.OrderLine_Product/OrderManagement.OrderLine/OrderManagement.O rderLine_Order != $Order]`** - A) All products ordered at least once, but not on the affected order. *(Correct Answer)* - B) All products that have never been ordered. - C) All orders that contain the specified product. - D) All products that are currently in stock. 28. **How can this XPath query be optimized? `[OrderManagement.OrderLine_Product/OrderManagement.Product/MinimalStock > 50] [OrderManagement.OrderLine_Product/OrderManagement.Product/CurrentStock < 20]`** - A) Combine both conditions into a single filter. - B) Replace the `AND` operator with an `OR`. - C) Perform one query with a set of conditions and then a retrieve by association. *(Correct Answer)* - D) Use the `not()` function instead of `>`. 29. **True or false: Queries across associations are always performed in memory.** - A) True. - B) False. *(Correct Answer)* 30. **Which index will be used if the following XPath query is executed: `[OrderManagement.Order/OrderManagement.Order_Customer/OrderManagement.Custom er/Name = $CustomerName]`** - A) An index on `OrderManagement.Customer.Name` *(Correct Answer)* - B) An index on `OrderManagement.Order.Order_Customer` - C) An index on `OrderManagement.Order.Name` - D) No index will be used. ### Section 7: Complex User Interface Logic 31. **How can conditional visibility be used to hide or show certain elements on a page?** - A) By using microflows. - B) By setting up visibility conditions in the widget properties. *(Correct Answer)* - C) By applying a CSS class. - D) By using XPath expressions. 32. **What should be considered when working with complex forms that include multiple dynamic elements?** - A) The number of pages in the application. - B) Performance, as many dynamic elements can slow down the page. *(Correct Answer)* - C) The layout, ensuring it remains consistent. - D) The color scheme. 33. **Which of the following best practices should be followed when designing UI for large data sets?** - A) Load all data at once to provide a complete view. - B) Use pagination to limit the number of records loaded at a time. *(Correct Answer)* - C) Disable filters to simplify queries. - D) Display data in a single table for ease of access. 34. **When is it better to use a Data View instead of a Data Grid?** - A) When you need to display a list of objects. - B) When you need to display a single object with many attributes. *(Correct Answer)* - C) When you need to apply sorting on attributes. - D) When you need to show multiple objects in a tabular format. 35. **True or False: A list view is more efficient than a template grid when displaying many records.** - A) True. *(Correct Answer)* - B) False. ### Section 8: Extensibility and Custom Widgets 36. **How can custom widgets extend the functionality of a Mendix application?** - A) By allowing the use of JavaScript and HTML to create unique interfaces. *(Correct Answer)* - B) By replacing built-in widgets with external code. - C) By reducing the need for native Mendix widgets. - D) By allowing custom data models. 37. **What should be considered when developing a custom widget for Mendix?** - A) The compatibility with all major browsers. - B) The impact on Mendix project size. - C) The Mendix version compatibility and project dependencies. *(Correct Answer)* - D) The widget's color scheme and layout. 38. **Which of the following is NOT a reason to use a pluggable widget?** - A) To customize the appearance of a Mendix app. - B) To add functionality not available in standard widgets. - C) To directly manipulate the database structure. *(Correct Answer)* - D) To create a reusable component for multiple projects. 39. **What language is used to create Mendix pluggable widgets?** - A) Java. - B) JavaScript and React. *(Correct Answer)* - C) Python. - D) HTML. 40. **Which step is critical when testing a custom widget?** - A) Deploying the widget in a live environment. - B) Testing the widget in all supported browsers and devices. *(Correct Answer)* - C) Skipping the testing phase to expedite deployment. - D) Manually coding around the widget's potential errors. ### Section 9: Version Control and Collaboration 41. **Which version control system is integrated with Mendix Studio Pro?** - A) Git. - B) SVN (Apache Subversion). *(Correct Answer)* - C) Mercurial. - D) CVS. 42. **What should you do before merging a branch into the mainline in Mendix?** - A) Delete all unused files. - B) Resolve all conflicts and ensure the branch builds correctly. *(Correct Answer)* - C) Check the branch's size. - D) Test the application on a different server. 43. **What is a commit in version control?** - A) A way to copy code from one branch to another. - B) A change or set of changes recorded in the version control history. *(Correct Answer)* - C) A method to resolve conflicts between versions. - D) A method to roll back to a previous state. 44. **True or False: You can only work on one branch at a time in Mendix.** - A) True. - B) False. *(Correct Answer)* 45. **When should you create a new branch in Mendix?** - A) When you want to try out an experimental feature. - B) When you're fixing a critical bug. - C) When working on a new feature or a major change. *(Correct Answer)* - D) Only when deploying to production. ### Section 10: Testing and Deployment 46. **What tool can be used for automated testing of Mendix applications?** - A) Selenium. - B) Mendix ATS (Automated Testing Suite). *(Correct Answer)* - C) JUnit. - D) Jenkins. 47. **What should be considered when deploying a Mendix application to the cloud?** - A) The type of database used. - B) The security settings and access control. *(Correct Answer)* - C) The color scheme. - D) The number of pages. 48. **How can performance issues be identified before deploying a Mendix application?** - A) By checking the logs in the development environment. - B) By using Mendix Application Performance Monitor (APM). *(Correct Answer)* - C) By increasing the application's memory. - D) By running the application locally. 49. **What is a deployment package in Mendix?** - A) A set of Mendix modules to be installed. - B) A file that contains the entire application, ready for deployment. *(Correct Answer)* - C) A library for custom widgets. - D) A zip file with the source code. 50. **When scaling a Mendix application in the cloud, what factor is most important?** - A) The number of users and their geographical distribution. *(Correct Answer)* - B) The size of the application. - C) The color scheme. - D) The number of pages in the application.