Searching for "u"

Q:

What do you mean by inline function?

Answer

An inline function is a function that is expanded inline when invoked.ie. the compiler replaces the function call with the corresponding function code. An inline function is a function that is expanded in line when it is invoked. That is the compiler replaces the function call with the corresponding function code (similar to macro)

Report Error

View answer Workspace Report Error Discuss

Subject: C++
Job Role: Software Architect

Q:

What do you mean by reference variable in c++?

Answer

A reference variable provides an alias to a previously defined variable.


Data type & reference-name = variable name

Report Error

View answer Workspace Report Error Discuss

Subject: C++
Job Role: Software Architect

Q:

Which among the following is a scope resolution operator?

A) : B) ::
C) :? D) None
 
Answer & Explanation Answer: B) ::

Explanation:

:: is the scope resolution operator

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Software Architect

Q:

An equilateral triangle is described on the diagonal of a square. What is the ratio of the area of the triangle to that of the square?

A) 1:2 B) 1:3
C) 2:3 D) 3^(1/2) :2
 
Answer & Explanation Answer: D) 3^(1/2) :2

Explanation:

area of a square = a² sq cm

 

length of the diagonal = 2a cm

 

area of equilateral triangle with side  2a= 34*2a2
required ratio = 34*2a2:a2=3:2

Report Error

View Answer Report Error Discuss

Filed Under: Area
Exam Prep: Bank Exams
Job Role: Bank PO

Q:

If the area of a square with side a s equal to the area of a triangle with base a, then the altitude of the triangle is

A) a B) 2a
C) 5a D) 3a
 
Answer & Explanation Answer: B) 2a

Explanation:

Area of a square with side a = a² sq unts

Area of a triangle with base a = (1/2) * a * h sq.unts

a² =1/2 *a *h

=> h = 2a

altitude of the triangle is 2a

Report Error

View Answer Report Error Discuss

Filed Under: Area
Exam Prep: Bank Exams
Job Role: Bank PO

Q:

All the six members of a family A, B, C, D, E and F are travelling together. B is the son of C but C is not the mother of B. A and C are a married couple. E is the brother of C. D is the daughter of A. F is the brother of B. How is E related to D? 

A) Father B) Brother
C) Uncle D) Cannot be determined
 
Answer & Explanation Answer: C) Uncle

Explanation:

B is the son of C but C is not the mother of B means C is the father of B A is marned to C means A is the mother of B. F is brother of B means F is son of A and C. D is daughter of A means D is daughter of A and C 

E is the brother of C who is the father of D. So. E is the uncle of D. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

All the six members of a family A, B, C, D, E and F are travelling together. B is the son of C but C is not the mother of B. A and C are a married couple. E is the brother of C. D is the daughter of A. F is the brother of B.  Which of the following is a pair of females ? 

A) AE B) BD
C) DF D) AD
 
Answer & Explanation Answer: D) AD

Explanation:

B is the son of C but C is not the mother of B means C is the father of B A is marned to C means A is the mother of B. F is brother of B means F is son of A and C. D is daughter of A means D is daughter of A and C.

Clearly, the females are only the mother A and the daughter D 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations

Q:

All the six members of a family A, B, C, D, E and F are travelling together. B is the son of C but C is not the mother of B. A and C are a married couple. E is the brother of C. D is the daughter of A. F is the brother of B.  How many children does A have ? 

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

Explanation:

B is the son of C but C is not the mother of B means C is the father of B A is marned to C means A is the mother of B. F is brother of B means F is son of A and C. D is daughter of A means D is daughter of A and C

A has son B, son F and daughter D it three children. 

Report Error

View Answer Report Error Discuss

Filed Under: Blood Relations