MB-820 practice question 13 of 25
You need to create the access modifier for IssueTotal. Which variable declaration should you use?
Full set: 116 questionsDomain Configure Microsoft Dynamics 365 Business Central
The Internal access modifier restricts the accessibility of a variable to the AL code within the same module or extension. This is the correct choice for creating a variable that should be accessible across different objects (like codeunits or pages) within the same app but should not be exposed to other extensions. The syntax in the option correctly identifies Internal as a valid modifier for a variable declaration.
A. The keyword vat is a syntax error; the correct keyword for variable declaration is var.
C. Public is not a valid access modifier for variable declarations in the AL language. It is used for procedures.
D. Local is the default scope for variables declared inside a procedure and is not used as an explicit modifier in a global variable declaration.
E. This option has incorrect syntax. A colon (:) must separate the variable name and its data type, not a semicolon (;).
1. Microsoft Learn: Method and variable access modifiers. This document explicitly lists the valid access modifiers for variables in AL. It confirms that Internal and Protected are valid for variables, while Public is not.
Reference Section: The table under "Accessibility Levels" shows that Internal is "Only accessible from code in the same module".
2. Microsoft Learn: Variables. This document outlines the basic syntax for declaring variables. It shows the standard declaration format is var : ;, confirming that options A and E have incorrect syntax.
Reference Section: "Declaring Variables".
Keep practicing
Take the free MB-820 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other MB-820 practice questions
- Question 8You need to determine why the debugger does not start correctly. What is the cause of the…
- Question 11A company has a Business Central online environment. You need to create an HTTP GET reque…
- Question 17You need to improve performance when ticketAPI is used to analyze the POS data. What shou…
- Question 22You create a Business Central report. You need to insert values on the Request page to be…
- Question 25You need to define the data types for the fields of the N on-conformity table. Which two …
