Which one of the following is correct, when a class grants friend status to another class? (A) The member functions of the class generating friendship can access the members of the friend class. (B) All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship. (C) Class friendship is reciprocal to each other (D) There is no such concept.

1 Answer

Answer :

All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship. 

Related questions

Description : State True or False. i) A satic function can have access to only other static members (functions or variables) declared in the same class. ii) A static member function can be called using the class name (instead of its objects) A) True, True B) True, False C) False, True D) False, False

Last Answer : B) True, False

Description : If a function is friend of a class, which one of the following is wrong ? (A) A function can only be declared a friend by a class itself. (B) Friend functions are not members of a class, they are ... are members of a class. (D) It can have access to all members of the class, even private ones.

Last Answer : (C) Friend functions are members of a class.

Description : The friend functions are used in situations where A) We want to exchange data between classes B) We want to have access to unrelated classes C) Dynamic binding is required D) We want to create versatile overloaded operators.

Last Answer : A) We want to exchange data between classes

Description : If all the production rules have single non - terminal symbol on the left side, the grammar defined is : (A) context free grammar (B) context sensitive grammar (C) unrestricted grammar (D) phrase grammar

Last Answer : (A) context free grammar

Description : Which of the following keywords are used to control access to a class member? A) default B) break C) protected D) goto

Last Answer : C) protected

Description : Which of the following is not a member of class ? (A) Static function (B) Friend function (C) Const function (D) Virtual function

Last Answer : (B) Friend function

Description : Which of the following differentiates between overloaded functions and overridden functions ? (A) Overloading is a dynamic or runtime binding and overridden is a static or compile time binding. ... function overloading, while redefining a function in a friend class is called function overriding.

Last Answer : (B) Overloading is a static or compile time binding and overriding is dynamic or runtime binding.

Description : What is the implication of the Central Government granting "Special Status" to a State? (1) Substantially large percentage of the central assistance will be as grantsin-aid (2) The extent of loan as a ... account budgetary deficit will be bridged by the Central Government (4) Both (1) and (2) above

Last Answer : (4) Both (1) and (2) above Explanation: The Special category states category is meant for a specific category such as a hilly terrain and geographically difficult area where supply of public services is ... -special ones get 70 per cent of the resources as loan and remaining 30 per cent as grant.

Description : State true of false. i) We cannot make the function inline by defining a function outside the class. ii) A member function can be called by using its name inside another member function of the same class, this ... of member function. A) True, True B) True, False C) False, True D) False, False

Last Answer : C) False, True

Description : A computer checks the _____ of user names and passwords for 9 a match before granting access. 1) Website 2) Network 3) Backup file 4) Data base 5) None of these

Last Answer : Answer :4

Description : The dereferencing operator ………….. is used to access a member when we use pointers to both the object and the member. A) ->* B) .* C) Any of the above D) None of the above

Last Answer : A) ->*

Description : Some of the C++ operators cannot overloaded which are i) Member access operators (. And .*) ii) Conditional operator (? :) iii) Scope resolution operator (: :) iv) Size operator (sizeof) A) only i, ii and iii B) only ii, iii and iv C) only ii and iv D) All i, ii, iii and iv

Last Answer : D) All i, ii, iii and iv

Description : .......... displays the information about the active document such as page number, section number, number of pages, insertion point, position, etc. A) View Bar B) Menu Bar C) Status Bar D) Ruler Lin

Last Answer : C) Status Bar

Description : Which of the following is true about the static member variable in C++. i) It is initialized to zero when the first object of its class is created. Other initialization is also permitted. ii) It is visible only within ... , ii-True B) ii-False, ii-True C) i-True, ii-False D) i-False, iii-False

Last Answer : B) ii-False, ii-True

Description : Automatic initialization of object is carried out using a special member function called ………… A) Friend B) Casting C) Reference Parameter D) Constructor

Last Answer : D) Constructor

Description : Free Trade refers to - (1) free movement of goods from one country to another (2) movement of goods free of cost (3) unrestricted exchange of goods and service (4) trade free of duty

Last Answer : (1) free movement of goods from one country to another Explanation: Free trade is a policy by which a government does not discriminate against imports or interfere with exports by ... countries are determined by price strategies that may differ-from those that would emerge under deregulation.

Description : Free Trade refers to (1) free movement of goods from one country to another (2) movement of goods free of cost (3) unrestricted exchange of goods and service (4) trade free of duty

Last Answer : free movement of goods from one country to another

Description : The concept of multiple inheritance is implemented in Java by A) extending two or more classes B) extending one class and implementing one or more interfaces C) implementing two or more interfaces D) both B and C

Last Answer : D) both B and C

Description : The concept of multiple inheritance is implemented in Java by A) extending two or more classes B) extending one class and implementing one or more interfaces C) implementing two or more interfaces D) both B and C

Last Answer : D) both B and C

Description : Which of the following is used to make an Abstract class ? (A) Making atleast one member function as pure virtual function (B) Making atleast one member function as virtual function (C) Declaring as Abstract class using virtual keyword (D) Declaring as Abstract class using static keyword

Last Answer : (A) Making atleast one member function as pure virtual function

Description : …………… is a way to bind the data and its associated functions together which allows the data and functions to be hidden. A) Structure B) Class C) Enum D) Both A and B

Last Answer : B) Class

Description : Using which keyword we can access value of the instance variables and class variables of that class inside the method of that class itself. A) super B) final C) this D) either super or this

Last Answer : C) this

Description : If someones adulthood status can be removed then can a child be granted adulthood status?

Last Answer : answer:Well, children can be tried as adults in the US. Brother and sister, ages 12 and 13, are about to be freed after serving something like 18 years for killing their dad's girlfriend ... consequences of their adult actions, or they are hospitalized for not being safe for society or themselves.

Description : Is a temporary non-pay status absence and time off from duty granted at employee’s request, at the supervisor’s discretion, and within organizational policies.?

Last Answer : Family Medical Leave (FLMA)

Description : Is a temporary non-pay status absence and time off from duty granted at employee’s request, at the supervisor’s discretion, and within organizational policies.?

Last Answer : Family Medical Leave (FLMA)

Description : Which one of the following States has granted Sanskrit language the status of the second official language of the state? (1) Bihar (2) Chhattisgarh (3) Uttar Pradesh (4) Uttarakhand

Last Answer : (4) Uttarakhand Explanation: Uttarakhand has given to Sanskrit as the status of second official language of the state in January 2010.

Description : Which States has granted Sanskrit language the status of the second official language of the State?

Last Answer : Uttarakhand

Description : The United States has granted the status of ?major non-NATO ally? to which of the following countries recently ? (a) Pakistan (b) India (c) Afghanistan (d) Myanmar

Last Answer : Ans: ( a ) Pakistan

Description : State true or false for Java Program. i) Data members of an interface are by default final ii) An abstract class has implementations of all methods defined inside it. A) i-false, ii-false B) i-false, ii-true C) i-true, ii-false D) i-true, ii-true

Last Answer : C) i-true, ii-false

Description : Which of the following, in C++, is inherited in a derived class from base class ? (A) constructor (B) destructor (C) data members (D) virtual methods

Last Answer : (C) data members

Description : Which of the following is/are the functions of operating system? i) Sharing hardware among users. ii) Allowing users to share data among themselves. iii) Recovering from errors. iv) Preventing users from interfering with one another. ... only C) i, iii, iv and v only D) All i, ii, iii, iv and v

Last Answer : D) All i, ii, iii, iv and v

Description : Personal factors include A. online communities B. social class C. personality and self-concept D. roles and status

Last Answer : personality and self-concept

Description : Personal factors include A. online communities B. social class C. personality and self-concept D. roles and status

Last Answer : personality and self-concept

Description : Mention the main factor for granting Extraordinary leave When no other leave is admissible

Last Answer : When no other leave is admissible

Description : Which of the following is/ are the characteristics of friend function. A) It is not in the scope of the class to which it has been declared as friend. B) It can invoke like a normal function without the help of any object. C) Usually, it has the objects as arguments. D) All of the above.

Last Answer : D) All of the above.

Description : Four members of a band are walking to a night concert. They decide to take a shortcut, but must cross a bridge. Luckily they have one flashlight. Because of the varying size of their instruments, it ... bridge and still get to the concert on time. What order should they cross to get eve -Riddles

Last Answer : First, the one minute person and the two minute person must cross the bridge, for a total of two minutes. Then the one minute person should come back with flashlight - total of three ... minutes) and gets the one minute person and they cross together bringing the total to seventeen minutes.

Description : The marketing function's main concern is with (a) producing goods or providing services ; (b) procuring materials, supplies, and equipment (c) building and maintaining a positive image ; (d) generating the demand for the organization's products or services

Last Answer :  (d) generating the demand for the organization's products or services 

Description : Mark the correct option  a) Every member of district forum shall hold office a term of 5 years or up to age  65 years b) The member of district forum shall eligible for reappointment for ... of district forum may resign his office in writing addressed to state  government d) All the above

Last Answer : c) Up to twenty lac

Description : One aspect that has to be dealt with by the integrity subsystem is to ensure that only valid values can be assigned to each data items. This is referred to as A) Data Security B) Domain access C) Data Control

Last Answer : C) Data Control

Description : Serial access memories are useful in applications where (A) Data consists of numbers (B) Short access time is required. (C) Each stored word is processed differently. (D) None of these

Last Answer : (D) None of these Explanation: data naturally needs to flow in and out in serial form.

Description : Let f(n) and g(n) be asymptotically non-negative functions. Which of the following is correct? (A) θ(f(n) * g(n)) = min(f(n), g(n)) (B) θ(f(n) * g(n)) = max(f(n), g(n)) (C) θ(f(n) + g(n)) = min(f(n), g(n)) (D) θ(f(n) + g(n)) = max(f(n), g(n))

Last Answer : (D) θ(f(n) + g(n)) = max(f(n), g(n))

Description : Which one of the following is correct for overloaded functions in C++? (1) Compiler sets up a separate function for every definition of function. (2) Compiler does not set up a ... functions cannot handle different types of objects. (4) Overloaded functions cannot have same number of arguments.

Last Answer : Answer: 1

Description : When an array is passed as parameter to a function, which of the following statements is correct ? (A) The function can change values in the original array. (B) In C, parameters are passed by value, ... . (D) Results in a run time error when the function tries to access the elements in the array.

Last Answer : (A) The function can change values in the original array.

Description : Match the following HTTP status code to their respective definitions. i) 400 a) OK ii) 500 b) Not found iii) 200 c) Continue iv) 100 d) Internal server error A) i-b, ii-d, iii-a, iv-c B) i-a, ii-b, iii-c, iv-d C) i-b, ii-c, iii-a, iv-d D) i-b, ii-a, iii-c, iv-d

Last Answer : A) i-b, ii-d, iii-a, iv-c

Description : Match the following HTTP status code to their respective definitions. i) 400 a) OK ii) 500 b) Not found iii) 200 c) Continue iv) 100 d) Internal server error A) i-b, ii-d, iii-a, iv-c B) i-a, ii-b, iii-c, iv-d C) i-b, ii-c, iii-a, iv-d D) i-b, ii-a, iii-c, iv-d

Last Answer : A) i-b, ii-d, iii-a, iv-c

Description : In UNIX, processes that have finished execution but have not yet had their status collected are known as ................ (A) Sleeping processes (B) Stopped Processes (C) Zombie Processes (D) Orphan Processes

Last Answer : (C) Zombie Processes 

Description : The Register that stores all interrupt requests is: (A) Interrupt mask register (B) Interrupt service register (C) Interrupt request register (D) Status register

Last Answer : (C) Interrupt request register