PROGRAMMING WITH VBA - Practice Mode

1) How many levels of variable scope available in VBA?
Correct Answer: 4
2) What will be the output of the following VBA code?
Debug.printformat(#1/1/2017#,'yyyy/mm/dd')
Correct Answer: 01-01-2017
3) Which function returns true if the expression is a valid date, otherwise it returns false in VBA?
Correct Answer: IsDate()
4) What is the full form of UDF in VBA?
Correct Answer: User Defined Functions
5) Which function returns the day of the month (number from 1 to 31) given date value in VBA?
Correct Answer: Day()