MCQOPTIONS
Bookmark
Saved Bookmarks
→
C++ Programming
→
Constructors And Destructors in C++ Programming
→
Choose the right option
1.
Choose the right option
string* p, q;
A.
q is a pointer to a string, p is a string
B.
both p and q are pointers to string types
C.
p is a pointer to a string, q is a string
D.
All of above
E.
None of these
Answer» D. All of above
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br>using namespace std;<br> int main()<br> {<br> char ch = 'M';<br> <br> cout<< ch;<br> return 0;<br> }<br></iostream></pre>
What will be the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> int P = 20;<br> cout << "Given integer 'P' with 'true' :" << P && true;<br> return 0;<br> }<br></iostream></pre>
What is the output of the following program?<br><pre class="prettyprint lang-c">#include <iostream><br>using namespace std;<br> int main()<br> {<br> float n = 143.0f;<br> cout << n << endl;<br> return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iomanip><br>#include <iostream><br>using namespace std;<br> int main()<br> {<br> cout << setprecision(17);<br> double n = 0.2;<br> cout << n << endl;<br> return 0;<br> }<br></iostream></iomanip></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> float n1 = 10.1;<br> double n2 = 10.1;<br> if (n1 == n2)<br> cout << "Interview";<br> else<br> cout << "Mania";<br> return 0;<br> }<br></iostream></pre>
What would be the output of the following program (in 32-bit systems)?<br><pre class="prettyprint lang-c">#include <iostream><br>using namespace std;<br> int main()<br> {<br> cout << sizeof(char);<br> cout << " "<< sizeof(int);<br> cout << " "<< sizeof(float);<br> return 0;<br> }<br></iostream></pre>
What is the output of the following program?<br><pre class="prettyprint lang-c">#include <iostream><br>using namespace std;<br> int main()<br> {<br> int p = 10;<br> float q;<br> cout << sizeof(++p + q);<br> cout << " "<<p></p> return 0;<br> }<br></iostream></pre>
What is the output of the following program?<br><pre class="prettyprint lang-c">#include <iostream><br>using namespace std;<br> int main()<br> {<br> int n = 0x10 + 030 + 50;<br> cout << sizeof(n)< return 0;<br> }<br></iostream></pre>
What is the output of this program?<br><pre class="prettyprint lang-c">#include <iostream><br> using namespace std;<br> int main()<br> {<br> void num0 = 15, num1 = 16;<br> int num2;<br> num2 = num0 + num1;<br> cout << num2;<br> return 0;<br> }<br></iostream></pre>
What does the following statement mean?<br><pre class="prettyprint lang-c">void a;<br></pre>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply