Question
1.) Write the postfix of the following expression by using stack algorithm method: A + B * C / D - E (Put one space
1.) Write the postfix of the following expression by using stack algorithm method: A + B * C / D - E (Put one space between each character, do not put space at the end of the string which you come up, use capital letter)
2.) "A polymorphic reference uses _______________, not the type of the reference, to determine which version of a method to invoke. "
A. the type of the object | ||
B. the type of the reference | ||
C. both A and B | ||
D. none of the above |
3.) Which of the following is the correct way to instantiate an array of 10 generic objects?
A. T[] x = new T[10]; | ||
B. T[10] x = new T[]; | ||
C. T[] x = (T[])(new object[10]); | ||
D. None of the above |
4.) Write the prefix of the following expression by using stack reverse algorithm technique: A + B * C / D - E, (Put one space between each character, do not put space at the end of the string which you come up, use capital letter)
5.) The variable top in the array implementation of a Stack refers to
A. The next available position in the array | ||
B. The item at the top of the Stack | ||
C. The number of items in the stack | ||
D. A and C |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started