Searching for "st"

Q:

What is an explicit constructor?

Answer

A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It’s purpose is reserved explicitly for construction

Report Error

View answer Workspace Report Error Discuss

Subject: C++
Job Role: Software Architect

Q:

How many ways are there to initialize int with a constant?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: B) 2

Explanation:

There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.

int foo = 123;

 

int bar (123);

Report Error

View Answer Report Error Discuss

Filed Under: C++
Job Role: Software Architect

Q:

P is the brother of Q and R. S is R's mother. T is P's father. Which of the following statements cannot be definitely true ? 

A) T is Q's father B) S is P's mother
C) P is S's son D) Q is T's son
 
Answer & Explanation Answer: D) Q is T's son

Explanation:

P, Q, R are children of same parents. So. S who is R's mother and T, who is R's father will be mother and father of all three. 

However, it is not mentioned whether Q is male or female So, D cannot be definitely true. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

Neelam, who is Deepak's daughter, says to Deepika, Your mother Rekha is the younger sister of my father who is the third child of Ramlal." How is Ramisl related to Deepika ? 

A) Uncle B) Father
C) Grandfather D) Father-in.law
 
Answer & Explanation Answer: C) Grandfather

Explanation:

Neelam's father is Deepak. Deepika's mother is` Rekha. Deepak is the third child of Ramlal. 

So, Deepak's younger sister Rekha is the daughter of Ramlal. So. Ramlal is father of Rekha and grandfather of her daughter Deepika. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

 A is the son of B, C.  B's sister has a son D and a daughter E. F is the maternal uncle of D.  How is E related to F ? 

A) Sister B) Daughter
C) Niece D) Wife
 
Answer & Explanation Answer: C) Niece

Explanation:

E is the daughter of C and D is the son of C. So, F, who is the maternal uncle of D, is also the maternal uncle of E. 

Thus, E is the niece of F. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

A is the son of B, C.  B's sister has a son D and a daughter E. F is the maternal uncle of D. How is A related to D ? 

A) Cousin B) Uncle
C) Nephew D) Brother
 
Answer & Explanation Answer: A) Cousin

Explanation:

A is the son of B and D is the son of the sister of B. So, A is the cousin of D. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

Q's mother is sister of P and daughter of M. S is daughter of P and sister of T. How is M related to T? 

A) Father B) Grandmother
C) Grandfather D) Grandfather or Grandmother
 
Answer & Explanation Answer: D) Grandfather or Grandmother

Explanation:

S is daughter of P and sister of T. So, T is daughter of P. 

Now, the sister of P is the daughter of M. This means that P is also the daughter of M. Clearly, T is the granddaughter of M. 

So, M is the Grandfather or Grandmother of T. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

Q is the brother of R;

P is the sister of Q;

T is the brother of S;

S is the daughter of R.

Who are the cousins of Q ? 

A) R and P B) P and T
C) Q and T D) S and T
 
Answer & Explanation Answer: D) S and T

Explanation:

T is the brother of S, who is the daughter of R. So, T and S are the children of R. 

Now. Q is the brother of R. So, T and S are the cousins of Q. 

 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations