Home / MCQ Bank / Computer
Computer Computer Fundamental Miscellaneous Difficulty: Medium

Which is used to store firmware.

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> using namespace std; class A{ public: int a; A(int a=0){ this->a = a; } }; int main(int argc, char const *argv[]) { A a1, a2(10); cout<<a2.a; return 0; } Which statement correctly defines a structure named "Person" with members "name" and "age" of type char* and int respectively? What will be the output of the following C++ code? #include <iostream> #include <vector> using namespace std; int main() { vector<int> v1; vector<int> v2; for (int i = 1; i <= 5; i++) v1.push_back(i); for (int i = 6; i <= 10; i++) v2.push_back(i); v1.swap(v2); for(int i=0;i<v1.size();i++) cout<<v1[i]<<" "; for(int i=0;i<v2.size();i++) cout<<v2[i]<<" "; cout<<endl; return 0; } What will be the output of the following C++ code? #include <iostream> using namespace std; int main () { int numbers[5]; int * p; p = numbers; *p = 10; p++; *p = 20; p = &numbers[2]; *p = 30; p = numbers + 3; *p = 40; p = numbers; *(p + 4) = 50; for (int n = 0; n < 5; n++) cout << numbers[n] << ","; return 0; } Say s="hello" what will be the return value of type(s)?