Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Qa – Placement Quizzes
→
Algebra in Qa – Placement Quizzes
→
A C++ class can contain a member of SELF type if t...
1.
A C++ class can contain a member of SELF type if the member is.StaticPointerNon-static(A) Only 3(B) Both 2 and 3(C) Both 1 and 2(D) Only 1
Answer»
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Which of the following statement is used to copy data from one table and insert into another ?(A) SELECT AND INSERT INTO(B) INSERT INTO AND SELECT(C) SELECT FROM AND INSERT INTO(D) INSERT INTO SELECT
What will be the output of the below C program:int calc(int i){while(++i > 10); // statement 0i++;return i;}int main() {int i = 2;printf("%d", calc(i));return 0;}Also, if we replace pre-increment operator by post-increment operator in statement 0, then what will be the output of the new program?(A) 11 and 12(B) 12 and 11(C) 4 and 5(D) 4 and 4
Consider the following page reference string:4, 3, 2, 1, 2, 1, 5, 6, 1, 2, 7, 6, 3, 1, 4, 2Which of the following options, gives the correct number of page faults related to LRU page replacement algorithms with 04 page frame and if there is an increment in page frame i.e. 05 page frame then what will be the correct number of page faults, assuming all frames are initially empty?(A) 10 and 10(B) 11 and 10(C) 10 and 11(D) 11 and 11
Select the statements that are true about default and copy constructors in C++:Compiler doesn’t create a default constructor if the user writes any constructor except the copy constructor.Compiler creates a copy constructor if the user doesn’t write its own copy constructor.Compiler doesn’t create a default constructor if the user writes any constructor even if it is copy constructor.(A) 1 and 2(B) Only 3(C) Only 2(D) 2 and 3
How does DHCP server dynamically assigns IP address to requesting host?(A) Dynamically, IP address is leased to requesting host for finite lease duration by DHCP server.(B) Dynamically IP address is leased to requesting host for an Infinite lease duration by DHCP server.(C) Dynamically, Static IP address is leased to requesting host for a finite lease duration by DHCP server.(D) Statically, dynamic IP address is leased to requesting host for an Infinite lease duration by DHCP server.
What is the probability of getting a Saturday in a Week?(A) 1(B) 1/7(C) 1/2(D) 2/7(E) 0
What will be the remainder when 7100 is divided by 5?(A) 0(B) 1(C) 2(D) 3
A C++ class can contain a member of SELF type if the member is.StaticPointerNon-static(A) Only 3(B) Both 2 and 3(C) Both 1 and 2(D) Only 1
In an experiment, one red dice and one black dice(both are fair) are rolled. What is the probability that,The number on black dice will divide the number on red dice.Number on black dice is multiple of the number on red dice.(A) 22 / 36 and 14 / 36 respectively(B) 12 / 36 and 18 / 36 respectively(C) 14 / 36 and 14 /36 respectively(D) 6 / 36 and 8 / 36 respectively
What will be the output of the below C++ program?#include<iostream>using namespace std;int main(){int a[] = {10,20,30,40,50};cout<<(*(&a+1)-a);return 0;}(A) 10(B) 0x7ffc7185f754(C) 50(D) 5
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies