The……….. is used to concat to
Strings.
a) Concatenation operator
b) + symbol
c) Concat function
d) Cat function
Explanation: The concatenation operator is used to concat or join two strings which is the &. While concatenating two strings, you must make sure that there is a space before and after the ampersand, otherwise, the code editor will not recognize the & as the concatenation operator.
Specifying the number of decimal places and special characters to display in a number is called as……….
a) Including
b) Formatting
c) Emphasizing
d) Promoting
Explanation: Numbers representing monetary amounts are displayed with either zero or two decimal places and may include a $ sign. Similarly, numbers representing percentage amounts are displayed with zero or more decimal places and a % sign. Specifying the number of decimal places and special characters to display in a number is called formatting.
……….function is used to format numbers.
a) toString
b) toNumber
c) toFormat
d) toSpecify
Explanation: The toString function can be used to format numbers in any of the languages built into Visual Studio. The toString method’s syntax is numeric VariableName.to String (format String). The numericVariableName is the name of the numeric variable.
The toString method formats the number stored in the numeric value and then returns the result as a……….
a) Integer
b) Double
c) Character
d) String
Explanation: The toString method formats the number stored in the numeric value and then returns the result as a string. Specifying the number of decimal places and special characters to display in a number is called formatting.
……….in the syntax gives the format you want to use.
a) formatString
b) format
c) numericVariableName
d) toString
Explanation: The formatString argument in the syntax gives the format you want to use. The formatString argument must take the form “Axx” where A is the alphabetic character called the format specifier and “xx” is the sequence of digits called the precision specifier. The format specifier must be one of the built-in format characters.
………..displays an input dialog box containing a message, Ok and Cancel button and an input area.
a) Inputbox function
b) Inbox function
c) Dialogbox function
d) In function
Explanation: Inputbox function displays an input dialog box containing a message, Ok and Cancel button and an input area where the user can input information. The message in the inputbox should prompt the user to enter the apropriate information in the user area.