Job Roles

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

1 4689
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

0 4787
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

0 4988
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

14 16819
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

1 5767
Q:

The diagonals of two squares are in the ratio of 2:5. Find the ratio of their areas.

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

Explanation:

let the diagonals of the squares be 2x and 5x respectively

 

 

 

ratio of their areas = 12*2x2 :12*5x2 = 4:25

Report Error

View Answer Report Error Discuss

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

2 7151
Q:

A room of 5m 44cm long and 3m 74cm broad is to be paved with squre tiles. Find the least number of squre tiles required to cover the floor.

A) 136 B) 146
C) 166 D) 176
 
Answer & Explanation Answer: D) 176

Explanation:

area of the room = 544 x 374 sq.cm

size of largest square tile = H.C.F of 544cm and 374 cm= 34 cm

area of 1 tile = 34x34 sq cm

no. of tiles required = (544 x 374) / (34 x 34) = 176

Report Error

View Answer Report Error Discuss

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

61 41048
Q:

The perimeters of two squares are 40cm and 32 cm. Find the perimeter of a third square whose area is equal to the difference of the areas of the two squares.

A) 12 B) 24
C) 36 D) 48
 
Answer & Explanation Answer: B) 24

Explanation:

side of first square = 40/4 =10cm

 

side of second square = 32/4 = 8cm

 

area of third squre = 10² - 8² = 36 sq cm

 

side of third square = 36 = 6 cm

 


required perimeter = 6*4 = 24cm

Report Error

View Answer Report Error Discuss

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

8 15728