Answer:
C) 1 4 2 / + 1 + 2 + 3 * 2 /
Explanation:
Infix, Postfix and Prefix are 3 different ways of writing expressions which differ in relative placement of operator and operands.
In Infix , operator lies between the operands whereas in postfix operator is written after its operands.
For example: 1 + 2 is infix while 1 2 + is the corresponding postfix expression.
Converting the given infix expression (1 + 4 / 2 + 1 + 2) * 3 / 2 to postfix:
Let (1 + 4 / 2 + 1 + 2) be represented by x.
Converting x to postfix:
(1 + 4 / 2 + 1 + 2) => 1 4 2 / + 1 + 2 + ------------------------- (1)
So the overall infix expression becomes:
x * 3 / 2
Converting it to postfix:
x 3 * 2 /
Replacing the value of x from (1)
1 4 2 / + 1 + 2 + 3 * 2 /
Answer:
Pattern.
Explanation:
The pattern attribute can be used only with input boxes that store text.
Generally, the pattern attribute cannot be used with other types of data in computer programming.
Basically, it comprises of data types which mainly includes an attribute of the text, e-mail, telephone, uniform resource locator (URL), search input types and password which must all be matched with the input value in order to pass an authentication or authorization.
Answer:
The answer is "Option c".
Explanation:
In the given visual basic code, an integer array "Inventory" is declared, that includes 3 elements, that are "357, 126, and 220". In the next line, a call stock function is used, in the function, the array is passed as a parameter and in array parameter, the index value that is "2" is passed. This function use label to print array index value, that is "220". and other options are incorrect that can be described as follows:
- Option a and Option b both are wrong because array indexing always starts with 0 and ends with n-1, and in this array, it will take index value 2, which is not equal to 357 and 126.