Mendix Advanced Exam.pdf, Exams of Nursing

Mendix Advanced Exam.pdf Mendix Advanced Exam.pdf MMendix Advanced Exam.pdf endix Advanced Exam.pdf

Typology: Exams

2023/2024

Available from 09/04/2024

Prof-Thomas-Sweeney
Prof-Thomas-Sweeney šŸ‡ŗšŸ‡ø

4.3

(12)

9.2K documents

1 / 26

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Mendix Advanced Exam
Inheritance is used to: - ANSWER >>Inherit the structure
and behaviour of an entity, so that all specializations can be
used individually within the same process.
What is the result of generalizing the Player entity by the
Person entity? - ANSWER >>Two tables, one per entity
What will happen to the ID's after generalizing the Player and
Staff entities by the Person entity? - ANSWER >>The ID's of
Player and Staff will keep their own set and sequence and will
equal the ID in the Person table.
Which statement is correct?
- A 1-1 association and inheritance are both an IS type of
relation.
- A 1-1 association is an IS and inheritance is an HAS type of
relation.
- A 1-1 association is a HAS and inheritance is an IS type of
relation.
- A 1-1 association and inheritance are both an HAS type of
relation. - ANSWER >>- A 1-1 association is a HAS and
inheritance is an IS type of relation.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Mendix Advanced Exam.pdf and more Exams Nursing in PDF only on Docsity!

Mendix Advanced Exam

Inheritance is used to: - ANSWER >>Inherit the structure and behaviour of an entity, so that all specializations can be used individually within the same process. What is the result of generalizing the Player entity by the Person entity? - ANSWER >>Two tables, one per entity What will happen to the ID's after generalizing the Player and Staff entities by the Person entity? - ANSWER >>The ID's of Player and Staff will keep their own set and sequence and will equal the ID in the Person table. Which statement is correct?

  • A 1-1 association and inheritance are both an IS type of relation.
  • A 1-1 association is an IS and inheritance is an HAS type of relation.
  • A 1-1 association is a HAS and inheritance is an IS type of relation.
  • A 1-1 association and inheritance are both an HAS type of relation. - ANSWER >>- A 1-1 association is a HAS and inheritance is an IS type of relation.

Why is it a best practice to create a specialization of the FileDocument and Image entities? - ANSWER >>It allows for better security and property configuration based on purpose. What is the default value of the attribute DeleteAfterDownload? - ANSWER >>false Where are the file(s) or image(s) stored by default? - ANSWER >>On the file server located on the application server When it is better to place Indexes? - ANSWER >>If there are more Read than Write actions. What happens when you apply an index? - ANSWER >>The speed of Read actions will increase. What is the result of the association in the image below? - ANSWER >>A list of ID's in the Staff object.

What does the function reverse() do? - ANSWER >>It changes the direction in which the association is queried. What is the best naming for a self-reference where the buddy is referenced by an apprentice? - ANSWER >>Apprentice_Buddy What is the correct XPath to retrieve the goals of the buddy of an apprentice? - ANSWER >>[SoccerSquad.Goal_Player/SoccerSquad.Player /SoccerSquad.Apprentice_Buddy [reversed()] = '[%CurrentObject%]'] When localize is set to No, the date displayed in the client is based on the: - ANSWER >>UTC value Localizing a DateTime attribute has an effect on: - ANSWER >>Client representation If both the App and User time zones are set, the value of the localized DateTime attribute displayed in the client depends on: - ANSWER >>The Client time zone

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? - ANSWER >>07/11/2020 12:00 AM 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? - ANSWER >>07/11/2020 02:00 AM The Mendix Client is: - ANSWER >>Built on a combination of HTML, CSS, and JavaScript and runs in your browser. Static resources in Mendix: - ANSWER >>Include stylesheets transmitted in CSS format to the client. The Communication between the Mendix Runtime and Database Server: - ANSWER >>Includes communication between the supported database servers using JDBC. What is NOT an advantage of using the database source option versus the XPath option? - ANSWER >>The database source option can be used to specify constraints that span entities.

What is an important rule to keep in mind when creating effective indexes? - ANSWER >>The index should have the same order of attributes defined as in search and retrieve queries in order to be available for queries. Which of the following is NOT a benefit that XPath provides to the Mendix Platform? - ANSWER >>XPath can be used to automatically generate pages and widgets to show data on. What does the following XPath query return? //Product [OrderManagement.OrderLine_Product/OrderManagement. OrderLine /OrderManagement.OrderLine_Order != $Order] - ANSWER >>All the products that are ordered at least once, but not on the affected order. This XPath query can be optimized as follows: [OrderManagement.OrderLine_Product /OrderManagement.Product/MinimalStock > 50] [OrderManagement.OrderLine_Product /OrderManagement.Product/Status = 'Active']] - ANSWER >>[OrderManagement.OrderLine_Product/Order Management.Product [MinimalStock > 50 and Status = 'Active'] ]

The request as result of this XPath can be optimized as follows: [OrderManagement.Stock_Product /OrderManagement.Product/Status = 'Deactivated' or OrderManagement.Stock_Supplier /OrderManagement.Supplier/Active = false()] - ANSWER >>The request can be optimized by splitting it into different requests and joining the results. Which of the following statements is NOT an XPath best practice with regards to optimal performance? - ANSWER >>Do not use XPath when you can use SQL instead. Consider a situation in which there is an entity called Request with an attribute status that has three values: Draft, Submitted, and Approved. There are three user roles: Administrator, Customer, and Employee. The Customer user role is granted the Customer module role. The only access rule configured is read/write access for the Customer with the XPath [Status = Draft] applied. What would a user with the Customer user role see on a page with a data grid without any additional XPath constraints? - ANSWER >>All the requests in the Draft status. Consider the exact same situation as above. What would Admin users see? - ANSWER >>No results would be returned.

and autogenerate a House_NewEdit page, which of the following statements is FALSE for an Admin user? - ANSWER >>Admin users will not see the SquareFoot attribute in the Edit page. Why is it more secure to add security rules on the entity level? - ANSWER >>Entity level restrictions are applied at the database level and are thus automatically applied throughout the application. For the following questions, assume there is an app with three user roles: Administrator, Teacher, and Student. Administrators are granted the ability to manage all user roles, and Teachers can manage users with the Student role. Which of the following statements is false? - ANSWER >>Administrators and teachers can create teacher accounts. Let's say you want Teachers to be able to manage accounts for Students, but only the Students who are in their class. So, you grant Teachers the ability to manage users with the Student role in the app security menu. Will this be sufficient?

  • ANSWER >>No, because teachers will have the ability to edit the accounts of any Student, not just their own.

What is a benefit of assigning only one user role to each user? - ANSWER >>Simplicity Which operation can be used to select a specific set of rows in a table? - ANSWER >>Selection The Set Union operation combines two lists into one that contains: - ANSWER >>one version of the objects from both lists What operation combines the data from two different entities into one table? - ANSWER >>Cartesian product What does the Projection operation do? - ANSWER >>It allows you to select attributes for all objects. Re-take Knowledge CheckNext What can you use a constrain function for? - ANSWER >>To filter on strings and dates in XPath queries. Which of the queries below can be used to filter on dates two weekso in the past? - ANSWER >>[%BeginOfCurrentDay%]

  • 2 * [%WeekLength%]

Why would you want to do normalization? - ANSWER >>To remove duplicate data from your app so you can avoid insertion, update, and deletion anomalies. What is denormalization? - ANSWER >>The duplication of information in several entities to increase performance. What set-up items do you need to have in place before creating your REST methods? Choose one of the below. - ANSWER >>An entity with attributes, a Published REST service and a resource in the Published REST service What does a GET method do? Choose one of the below - ANSWER >>Allows information sharing between my app and other apps, where the other system can determine when to retrieve that shared information. How can I test my POST method? Choose one of the below. - ANSWER >>Find the Location property of my published REST service, open that URL in your browser, go to the POST button of your collection and add a message. How can you get a response that shows if the POST method was executed correctly including the provided data? Choose one of the below. - ANSWER >>Go to the connecting

microflow of your POST method, export the information to a JSON String value, change the HTTPResponse object and create an HTTP header object. What type of input parameter do you need for the delete microflow belonging to the delete method? - ANSWER >>A unique ID to be able to retrieve the object to delete. Which of the following is a field of a Mendix log message? - ANSWER >>Log node

  • ANSWER >>In the console What is the difference between log messages in Studio Pro and log messages in the Developer portal? - ANSWER >>The log messages in the Developer Portal have a Source field. Where do log messages come from? - ANSWER >>Log messages are written by the person who created the functionality.

Why should you use an enumeration for your log node names? - ANSWER >>This allows you to standardize the log node name and group all log node names in your app. How do you ensure that your log node name is available after startup? - ANSWER >>Add a log activity to a microflow that you call in the After Startup microflow. You want to add a log event to an error flow on your REST Call to indicate a weather API call failed in your Holiday Request application. Which level of logging should you use? - ANSWER >>Warning, you can still continue but someone should look into why the REST call is failing and whether further action is needed. Which of the following is a valid Mendix token? - ANSWER >>CurrentUser You are creating a microflow where you have a Change Object activity. The change is dependent on a lot of checks and decisions (but, whichever choice, the change always happens). What is the best way to model this microflow? - ANSWER >>Use Decisions, but place them in a sub- microflow to determine what the new value should be, and then use the return value of that sub-microflow in the Change Object activity.

You need to determine what day of the week it is. What is the easiest way to do this? - ANSWER >>Use the formatDateTime function to achieve this. What is the best approach to retrieve an object over association, while also checking whether the association exists? - ANSWER >>Use a decision to first check whether the association exists. If it does, retrieve the associated object. Which of the following statements about lists is true? - ANSWER >>A list can have, among others, the following origins: a retrieve action, the creation of a new list, and the result of an input parameter. You have to determine how many customers are in the database and find that there are at least a couple thousand. How do you handle this? - ANSWER >>Retrieve all the customers at once and use an aggregate list activity to count them. Because this is an optimized query on the database, it will be very light and safe to use, even for big lists. What does the List Operation tail do? - ANSWER >>It grabs all elements in the list except the first element.

main microflow and then pass it along to the three sub- microflows as an input parameter. Which statement about rules is true? - ANSWER >>A rule can only be called from within a decision. What is a good reason to use a sub microflow? - ANSWER >>- To use it as a 'get or create' microflow.

  • To reuse the same bit of logic in multiple microflows.
  • To increase readability of large microflows. To which of the following errors types does the built-in consistency checker in the Modeler alert you? - ANSWER >>Technical issues in your model. Which of the following statements is true? - ANSWER >>The output of log nodes can be used to isolate problems and place breakpoints in a smarter way. When will this microflow break? - ANSWER >>Each time the breakpoint is passed. Can you pause a microflow only when certain conditions are met? - ANSWER >>Yes, by adding a conditional breakpoint.

When you're creating a new microflow and you have to create the logic, what is the recommended place to start? - ANSWER >>At the end of the microflow Why are we creating sub-microflows? - ANSWER >>To be able to reuse the functionality and have a microflow with dedicated functionality What happens when Mendix is not able to finish the transaction successfully and there is no Error Handling implemented? - ANSWER >>The transaction is stopped and Mendix will show an error message in the user interface. You need to create error handling for JAVA actions because: - ANSWER >>Mendix is not able to catch errors that occur in a JAVA action by default. Error handling can occur in microflows that are triggered by: - ANSWER >>Both, a user and the system It is necessary to create a log message and a user message because: - ANSWER >>The log message will not appear in the frontend.