Home / MCQ Bank / Computer
Computer Tally Difficulty: Medium

Professionals usually maintain accounts as

Select the correct option to test your answer:

More Computer Questions

How do you create a vector of characters in R? What will be the output of the following Java program? import java.util.*; public class genericstack <E> { Stack <E> stk = new Stack <E>(); public void push(E obj) { stk.push(obj); } public E pop() { E obj = stk.pop(); return obj; } } class Output { public static void main(String args[]) { genericstack <String> gs = new genericstack<String>(); gs.push("Hello"); System.out.print(gs.pop() + " "); genericstack <Integer> gs = new genericstack<Integer>(); gs.push(36); System.out.println(gs.pop()); } } What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class B { int b; public: B(int i){ b = i; } }; class C { B b; public: C(int i){ b = B(i); } friend void show(); }; void show() { C c(10); cout<<"value of b is: "<<c.b.b<<endl; } int main(int argc, char const *argv[]) { show(); return 0; } Which of these data types can be used for a method having a return statement in it? What would be the solution to the given prefix notation? + 9 * 3 / 8 4