Skip to main content

AX 7 Certification MB6-890 Dumps Sample Question for Describe x++,Exception handling



1. Which of the following code editor come with Dynamics  AX by default in latest version?



MorphX IDE



Visual studio IDE



Borland IDE



All of the above








2. 'Intellisense' is

10/10




obsolete is current version of AX



available in current version of AX



available but not backward compatible.



available but not recommended. It will be no longer supported in next version.





 3. Which of the following is not a primitive data type in AX? 10/10



AnyType



GUID



DayOfWeek



UTCDateTime







 4. Arrays are obsolete in current version of Dynamics AX. 10/10 True or False



True



False








5. Which one is NOT a keyword in AX?

10/10




case



var



using



index







 6. Which of the following is correct about variables in AX? 10/10



Inline variable declaration is not supported.



Inline variable declaration is supported upto the point that no value is assigned to any of variable in the method.



Inline variable declaration is supported but a value has to be assigned at the declaration itself.



Inline variable declaration is supported without any of the above conditions.



 7. What will be the output of the expression? 22*1+5/1*!0



132



27



0



Division by zero exception will be thrown












X++ control statements




8. Which of the below are looping statement in AX?

10/10


While




Do...While




Do....For




For




9. Which is NOT a conditional statement in AX?

10/10




If



Whether



Else



Else If

















10. Inner methods

10/10


are allowed in AX.




are not allowed in AX.




are allowed but only inside non-static methods.




are allowed but only inside static methods.




11. Choose the correct statement.

10/10


Inline variable assignment is allowed.




Inline variable assignment is allowed except for arrays.




Inline variable assignment is allowed except for variable type




'AnyType' and 'var'.




Inline variable assignment is not allowed.




12. A built-in function can be used in AX

10/10


by applying scope resolution operator to global class




directly by tying function name in code




by instantiating an object of global class and then by this object.




Declare global class in class declaration.




Classes



13. Which are the key methods of a class

10/10




ClassDeclaration



Instance methods



Static methods



All of the above.





14. An inherited class

10/10




can override parent class methods.



has to override parent class methods



can't override parent class methods.



can add new methods but can't touch original parent class methods.








15. During initialization of a parent class

10/10




it is required to defne exact last level child class for the instance.



It is required to defne next level child class for the instance.



no need to defne child class.



It is not possible to create instance of parent class directly. It have to be done via child class instance.







16. The difference between a class and runnable class is/are 10/10



Runnable class can be directly run as 'Startup object' from VS.



Runnable class must have main method.



Runnable class must have Ƹnalize method



Runnalbe class can't be instantiated directly.




17. Protected variable

10/10




will be accessed only by parent class



will be accessed by parent and child classes



will be accessed by parent, child and third party classes.



None of the above.




Data manipulation





18. Which of the following joins can be used in select statement

10/10


Left outer



Right outer



exist



None of the above








19. Select statement fetches one record at a time. True or

10/10


False?






True



False





20. Next statement is used to

10/10


Get the value of next field in the record




Get the value of next selected record from select statement




Get the value of next table involved in the select statement.




None of the above.




21. ttslevel

10/10




is a background counter which system keeps to track the current transaction locking level



is increased on ttsbeging statement



in decrased on ttscommit statement



All of the above.








22. Which keyword is required to update the data?

10/10




 frstOnly



 frstFast



forUpdate



 frst 10







Exception handling


23. Which of the below is NOT an exception type in AX?

10/10




info



ccerror



dderror



CLRError








24. In case of nested try...catch blocks, if an exception is thrown

10/10



The nearest catch statement is executed




The last (fartest) catch statement is executed




The nearest catch statement is executed except if the code is under



transnational(tts) control.




The last catch satement in the same method is executed.




25. Which of the below is NOT a keyword?

10/10




Try



Retry



Catch



Recatch







26. Finally block is executed

10/10




only if exception is thrown and after catch statement



only if exception not thrown



Only if exception is thrown and before catch statement



Always, irrespective of exception






Popular posts from this blog

strScan and Find a first occurrence of a string in a string using x++

strScan (Find a first occurrence of a string in a string) info("int strScan(str _text1,str _text2,int _position,int _number)"); info("Searches a text string for the occurrence of another string."); info("_text1 - The text string to search."); info("_text2 - The string to find."); info("_position - The position at which the search should start."); info("_number - The number of characters that should be searched."); info(int2str(strScan("ABCDEFGHIJ","DE",1,10)));

Get record from table on the basis of field id in Microsoft dynamics axapta x++

How to Get record from table on the basis of field id in dynamics axapta x++. just try following code in job to understand better way. emplTable emplTable; FieldId fieldId; ; fieldId = fieldNum(emplTable, Emplid); select emplTable; info(emplTable.(fieldId)); select emplTable where emplTable.(fieldId) == '1101'; info(emplTable.Name);

Code to get customer Primary Address in Ax 2012

Below Code to get customer Primary Address in Ax 2012. CustTable custTable_P; DirPartyTable dirPartyTable_P; DirPartyLocation dirPartyLocation_P; DirPartyLocationRole dirPartyLocationRole_P; LogisticsLocation logisticsLocation_P; LogisticsLocationRole logisticsLocationRole_P; LogisticsPostalAddress logisticsPostalAddress_P; LogisticsPostalAddress primaryAddress_P; while select custTable_P where custTable_P.AccountNum =='ED_01029' join dirPartyTable_P where dirPartyTable_P.RecId == custTable_P.Party join dirPartyLocation_P where dirPartyLocation_P.Party == custTable_P.Party && dirPartyLocation_P.IsPrimary==NoYes::Yes join dirPartyLocationRole_P where dirPartyLocationRole_P.PartyLocation == dirPartyLocation_P.RecId join logisticsLocationRole_P where logisticsLocationRole_P.RecId == dirPartyLocationRole