Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

123151.

From the following select which one is Not the data type in JavaScript (a) Number(b) String (c) Boolean (d) Time

Answer»

Time is Not the data type in JavaScript

123152.

In JavaScript, a variable is declared using the keyword ....... 

Answer»

In JavaScript, a variable is declared using the keyword var

123153.

Write down the purpose of the following code snippet function print(){document .write (“ Welcome to JS”);}

Answer»

This code snippet is used to display the string, “Welcome to JS” on the screen(monitor).

123154.

Explain how a variable is declaring in JavaScript.

Answer»

For storing values you have to declare a variable, for that the keyword var is used. There is no need to specify the data type.

Syntax: 

var <variable name1> [,<variable name2> ,<variable name3> ,etc…] 

Here square bracket indicates optional. 

Eg: var x, y, z; 

x= 11; 

y = ”BVM”; 

z = false; 

Here x is of number type, y is of string and z is of Boolean type.

123155.

......... keyword is used to declare a variable in JavaScript.

Answer»

var keyword is used to declare a variable in JavaScript.

123156.

A group of codes with a name is called ....... 

Answer»

A group of codes with a name is called function

123157.

Write down the various data types used in JavaScript.

Answer»

1. Number: Any number(whole or fractional) with or without sign. 

Eg: +1977,-38.0003,-100, 3.14157,etc 

2. String: It is a combination of characters enclosed within double quotes. 

Eg: “BVM”, “[email protected]”, etc 

3. Boolean: We can use either true or false. lt is case sensitive. That means can’t use TRUE OR FALSE

123158.

Suppose you have written a JavaScript function named check Data(). You want to execute the function when the mouse pointer is just moved over the button. How will you complete the following to do the same?&lt;INPUT Type=”button”_____= “checkData()”&gt;

Answer»

<NPUT Type=”button” onMouseEnter = “checkData()”>

123159.

Among the following, identify the data types used in JavaScript int, oat, number, char, boolean, long

Answer»

From the list there is only two, number and boolean are the types used in JavaScript.

123160.

.......... function is used to return the data type.

Answer»

typeof() function is used to return the data type.

123161.

........... is a special data type to represent variables that are not defined using var.

Answer»

Undefined is a special data type to represent variables that are not defined using var.

123162.

Odd one out (a) &amp;&amp; (b) || (c) ! (d) %

Answer»

(d) %

It is an arithmetic operator, others are logical operator.

123163.

Odd one out (a) Google Chrome (b) Internet Explorer (c) Mozila FireFox (d) C++

Answer»

(d) C++, It is a programming language others are browsers.

123164.

Odd one out (a) &lt; (b) &gt; (c) == (d) !

Answer»

(d) ! 

It is a logical operator, the others are relational operator.

123165.

Odd one out (a) + (b) – (c) % (d) ==

Answer»

(d) ==

It is a relational operator the others are arithmetic operator.

123166.

Write importance of median.

Answer»

Importance of median:

(i) It is only average which is used while dealing with qualitative data.

(ii) It is used for typical value in problems concerning wages, distribution of wealth etc.

123167.

There are 45 students is a class in which 15 are girls. Average weight of girls is 45 kg and of boys 52 kg. Find average weight of one student.

Answer»

According to question, average weight of 15 girls

 = 45 kg.

So, \(\bar { X }=\quad \frac { { \Sigma x }_{ i } }{ n } \)

⇒ 45 = \(\frac { { \Sigma x }_{ i } }{ 15 } \)

⇒ Σxi = 45 × 15 = 675

Total weight of 15 girls Σxi = 675 kg

Average weight of 30 boys = 52 kg

So, \(\bar { Y }=\quad \frac { { \Sigma y }_{ i } }{ 30 } \)

⇒ 52 = \(\frac { { \Sigma y }_{ i } }{ 30 } \)

⇒ Σyi = 52 × 30 = 1560

Total weight of boys Σyi = 1560 kg

Average weight of 45 students

Σxi + Σyi = 675 + 1560 = 2235

Average weight of one student = 2235/45 

= 49.67 kg.

123168.

The average of 5 numbers is 18, if one number is removed, then average becomes 16. Find the removed number.

Answer»

Sum of 5 numbers = 18 × 5 = 90

Let removed number is x

Then, sum of four number = 16 × 4 = 64

⇒ Sum of four number + x = 90

⇒ 64 + x = 90

x = 90 – 64 = 26

Thus, fifth number = removed number = 26

123169.

The average weight of 25 students of group A of a class is 51 kg. Whereas average weight of 35 students of group B is 54 kg. Find the average weight of 60 students of this class.

Answer»

Average weight of 25 students of group A = 51 kg

Thus, total of weight of 25 students

W1 = 51 x 25 = 1275 kg

Average weight of 35 students of group B = 54 kg

Thus, sum of weight of 35 students, W2 = 54 x 35

= 1890 kg

∴ Average weight of 60 students of class

\(\frac { { W }_{ 1 }+{ W }_{ 2 } }{ 60 } \)

\(\frac { 1275+1890 }{ 60 } =\frac { 3165 }{ 60 } \) = 52.75 kg

Thus, average wt. of 60 students = 52.75 kg

123170.

Find the perimeter and the area of the square whose side is 8 cm.

Answer»

Perimeter of a square = (4 × side) units

Side = 8 cm

∴ Perimeter = 4 × 8 cm = 32 cm

Perimeter = 32 cm

Area of a square = (side × side) unit2 

= (8 × 8) cm2 = 64 cm2

Area = 64 cm2

123171.

Find the perimeter ofi) A scalene triangle with sides 7 m, 8 m, 10 mii) An isosceles triangle with equal sides 10 cm each and third side is 7 cm.iii) An Equilateral triangle with side 6 cm.

Answer»

i) Perimeter of a scalene triangle = (7 + 8 + 10) m = 25 m

ii) The three sides of the isosceles triangle are 10 cm, 10 cm and 7 cm

∴ Perimeter = (10 + 10 + 7) cm = 27 cm

iii) An equilateral triangle with side 6 cm.

The sides of equilateral triangle are 6 cm, 6 cm and 6 cm

∴ Perimeter = (6 + 6 + 6) cm = 18 cm

123172.

Find the perimeter and area of the right angled triangle whose sides are 6 feet, 8 feet and 10 feet.

Answer»

Perimeter of the triangle

= (a + b + c) units

= (6 + 8 + 10) feet

= 24 feet

Area of the triangle = 1/2 × b × h sq units

1/2 × 6× 8 feet square

= 24 sq. feet

123173.

The average of statistical data is called:(A) Arithmetic Mean(B) Median(C) Mode(D) Frequency

Answer»

Answer is (A) Arithmetic Mean

123174.

Number of students in a school according to their age are asAge (in yrs)891011121314151617No. of students152540364137201353Their mode is:(A) 41(B) 12(C) 3(D) 17.

Answer»

Answer is (B) 12

From above table it is clear that frequency 41 is maximum and its corresponding age group of 12. So its mode will be 12.

123175.

Find mode of the following distribution :(i)  2,  5, 7, 5 , 3, 1, 5, 8, 7, 5(ii)  2, 4, 6, 2, 6, 6, 7, 8(iii)  2.5,  2.5, 2.1, 2.5,2.7, 2.8, 2.5

Answer»

(i) Here 5 has maximum frequency (4 times) 

so mode of data will be 5.

(ii) Here 6 has maximum frequency (3 times) 

so mode of data will be 6.

(iii) Here 2.5 has maximum frequency (4 times) 

so 2.5 will be mode of data.

123176.

Mode of any observation is:(A) Mid-value(B) Value having maximum frequency(C) Minimum frequency value(D) Range

Answer»

Answer is (B) Value having maximum frequency

Value having maximum frequency is called mode.

123177.

The number of students of a school according to their age are as follows:Age (in years)891011121314151617No.of students152540364137201353Their mode will be:(A) 41(B) 12(C) 3(D) 17

Answer»

Answer is (B) 12

From table it is clear that students of age 12 years have maximum frequency 41.

So mode = 12

123178.

Find out the median.S. No.123456789Marks Obtained101214171820213032

Answer»

10, 12, 14, 17, 18, 20, 21 30, 32

N = 9 

Median = \((\frac{N+1}2)^{th}\)

Median = \((\frac{9+1}{2})^{th}\) = 5th item

Therefore, the median is given by the size of the 5th items. Therefore, the Median of the data so given is 18.

123179.

The average of n observation is \(\overline { X }\). If we add 1 in first term, 2 in second term similarly 3, 4, 5, ………., n, then new mean will be:(A) \(\overline { X }\) + n(B) \(\overline { X }\) + \(\frac { n }{ 2 }\)(C) \(\overline { X }\) + \(\frac { n+1 }{ 2 }\)(D) None of these

Answer»

Answer is (C) \(\overline { X }\) + \(\frac { n+1 }{ 2 }\) 

123180.

Find mode of the following frequency distribution :(i) x345678f246321(ii) x1.11.21.31.41.51.6f20508060158

Answer»

(i) 5 has maximum frequency (6), so mode = 5

(ii) 1.3 has maximum frequency (80), so mode = 1.3

123181.

The mode of distribution 3, 5, 7, 4, 2, 1, 4, 3, 4 is:(A) 7(B) 4(C) 3(D) 1

Answer»

Answer is (B) 4

In the distribution 4 has maximum frequency so mode of distribution = 4

123182.

Calculate the value of median from the following data:Income12,001,8005,0002,5003,0001,6003,500No. of Persons12162103157

Answer»
IncomeNumber of People(f)Cumulative Frequency(c.f.)
12001212
16001527
18001643
25001053
3000356
3500763
5000265
                    N = 65

Median = size of \((\frac{N+1}{2})^{th}\) item

Median = \(\frac{65+11}2=33^{rd}\) 

While locating the item in the Cumulative Frequency column, the item that exceeded 33rd is 43 that is corresponding to 1800. Thus, the median is 1800.

123183.

 In given formula \(\overline { x }\) = a+h\(\left( \frac { { \Sigma f }_{ i }{ u }_{ i } }{ { \Sigma f }_{ i } } \right)\), value of ui will be : (A) h(xi – a)(B) \(\frac { { x }_{ i }-a }{ h }\)(C) \(\frac { { a-x }_{ i } }{ h }\)(D) \(\frac { { x }_{ i }+a }{ h }\)

Answer»

Answer is (B) \(\frac { { x }_{ i }-a }{ h }\)

123184.

The number of members in 30 families of a village are according to following table. Find their mode.No. of members2345678No. of families12461035

Answer»

Here no. of members 6 has maximum frequency 10 so mode = 6.

123185.

Find out the median size from the following:X160150152161156f58637

Answer»
Xfcumulative Frequency (cf)
15088
152614
156721
160526
161329
N = 29


Median = size of \((\frac{N+1}{2})^{th}\) item

Median = \(\frac{29+1}{2}= 15^{th}\)
When locating the item inCumulative Frequency column. The item that exceeded 15th is 21 corresponding to 156. Therefore, median is 156.

123186.

Evaluate lower quartile and upper quartile from the following series.Variable510152025303540Frequency161822212414119

Answer»
VariableFrequency(f)Cumulative Frequency(c .f.)
51616
101834
152256
202177
2524101
3014115
3511126
409135
N = 135

Q1 = size of \((\frac{N+1}4)^{th}\) item

Or, Q= size of \((\frac{135+1}{4})^{th}\) item

= Q= 34th item

Upper Quartile

Q= size of 3 \((\frac{N+1}{4})^{th}\) item

or, Q1 = size of 3 \((\frac{135+1}{4})^{th}\) item

= Q1 = 102nd item

This corresponds to 115 in the cumulative frequency. Hence, upper quartile is 30.

123187.

Cumulative frequency table is helpful in: (A) Mean(B) Mode(C)Median(D) None of these

Answer»

Answer is (C)Median

123188.

Age of 11 students of class XI is given below. Find the modal age by: (i) Observation Method; (ii) Frequency distribution Method.Age (in years)1516161715161817151717

Answer»
Age (X)Tally MarksFrequency (f)
15III3
16III3
17IIII4Modal Class
18I1
N = 11

Since 17 occurs the highest number of times in the series i.e. 4 times. Hence, Mode = 17

123189.

If xi are mid-point of class-intervals of grouped data fi are their  corresponding frequencies and \(\overline { x }\) is mean, then Σ(fixi – \(\overline { x }\)) equals: (A) 0(B) -1(C) 1(D) 2

Answer»

Answer is (A) 0

123190.

For what value of digit x, is :7×34 divisible by 9 ?

Answer»

7×34 is multiple of 9 

=> 7 + x + 3+ 4 is a multiple of 9 

=> 14 + x = 0, 9, 18, 27, 

=> x = -1, 4, 13, 

Since, x is a digit 

x = 4

123191.

Tribal Area Development program is meant for those areas where tribal population is: (a) More than 75% (b) More than 60% (c) More than 50% (d) More than 33%

Answer»

(c) More than 50%

123192.

A particle moves along a circular path under the action of a force. The work done by the force is –(a) Positive and non zero(b) zero (c) Negative and non zero(d) none of the above

Answer»

Correct answer is (b) zero

123193.

The angle between the line of action of force and displacement when no work done (in degree) is (A) zero (B) 45 (C) 90 (D) 120

Answer»

Correct option is: (C) 90

123194.

On selling an article at a certain price a man gains 10%. On selling the same article at double the price, gain per cent is A. 20% B. 100% C. 120% D. 140%

Answer»

Let the cost price be Rs.100 

Gain = 10%

SP = \(\frac{100\,+\,Gain\%}{100}\times CP\)

\(\frac{100\,+\,10}{100}\times100\)

= Rs.110 

Now, according to question make the selling price double 

= 110 × 2 

= Rs.220 

Now, Gain will be 

= 220 – 100 

= Rs.120

\(Gain\%=\frac{Gain\,\times100}{CP}\)

\(\frac{120\,\times\,100}{100}\)

= 120%

123195.

If the momentum of a body is doubled, its KE. increases by (A) 50% (B) 300% (C) 100% (L) 400%

Answer»

Correct option is: (B) 300%

Kinetic energy , K = \(\frac{P^2}{2m}\)

When momentum p is doubled , the kinetic energy becomes

\(K^1 = \frac{(2p)}{2m}\)

\(K^1 = 4 (\frac{p^2}{2m})\)

\(K^1 = 4K\)

increases in kinetic energy = \(\frac{K^1 - K}{K}\)

\(= \frac{4K - K}{K} \times 100\)

\(\left(\frac{3K}{K}\right) \times 100\)

300%

Correct option is: (B) 300%

123196.

In the systems of equation determine whether the system has a unique solution, no solution or infinite solutions. In case there is a unique solution, find it: x − 3y = 3; 3x − 9y = 2

Answer»

The given system of equations is: 

x − 3y – 3 = 0 

3x − 9y − 2 = 0 

The above equations are of the form 

a1 x + b1 y − c1 = 0 

a2 x + b2 y − c2 = 0 

Here, a1 = 1, b1 = −3, c1 = −3 

a2 = 3, b2 = −9, c2 = −2 

So according to the question, we get 

\(\frac{a_1}{a_2}\) = \(\frac{1}{3}\) 

\(\frac{b_1}{b_2}\) = \(\frac{−3}{−9}\) = \(\frac{1}{3}\) and, 

\(\frac{c_1}{c_2}\) = \(\frac{−3}{−2}\) = \(\frac{3}{2}\) 

\(\frac{a_1}{a_2}\) =\(\frac{b_1}{b_2}\)\(\frac{c_1}{c_2}\) 

Hence, we can conclude that the given system of equation has no solution.

123197.

Given that \( f(x) =\begin{cases}\sqrt{x-1 } &amp; \quad \text{} x≥1 \text{ }\\4 &amp; \quad \text{} x &lt;1\text{ }\end{cases}\)Find(i) f(0) (ii) f(3) (iii) f(a + 1) in terms of a. (Given that a &gt; 0)

Answer»

f(x) = \(\sqrt{x-1}\); f(x) = 4

(i) f(0) = 4

(ii) f(3) = \(\sqrt{3-1}\) = \(\sqrt{2}\)

(iii) f(a + 1) = \(\sqrt{a+1-1}\) = \(\sqrt{a}\)

123198.

Let f(x) = √(1 + x2) then (1) f(xy) = f(x),f(y) (2) f(xy) ≥ f(x),f(y) (3) f(xy) ≤ f(x).f(y) (4) None of these

Answer»

(3) f(xy) ≤ f(x).f(y)

√(1 + x2y2) ≤ √(1 + x2) √(1 + y2)

⇒ f(xy) ≤ f(x).f(y)

123199.

Verify Lagrange’s mean value theorem for the functions on the indicated intervals. Find a point ‘c’ in the indicated interval as stated by the Lagrange’s mean value theorem:  f(x) = x(x – 1) on [1, 2]

Answer»

Given as f(x) = x (x – 1) on [1, 2]

= x2 – x

The every polynomial function is continuous everywhere on (−∞, ∞) and differentiable for all arguments. Here, f(x) is a polynomial function. Therefore it is continuous in [1, 2] and differentiable in (1, 2). Therefore both the necessary conditions of Lagrange’s mean value theorem is satisfied.

So, there exist a point c ∈ (1, 2) such that:

f'(c) = (f(2) - f(1))/(2 - 1)

f'(c) = (f(2) - f(1))/1

f (x) = x2 – x

Differentiate with respect to x

f’(x) = 2x – 1

For the f’(c), put the value of x=c in f’(x):

f’(c)= 2c – 1

For the f(2), put the value of x = 2 in f(x)

f (2) = (2)2 – 2

= 4 – 2

= 2

For the f(1), put the value of x = 1 in f(x):

f (1) = (1)2 – 1

= 1 – 1

= 0

∴ f’(c) = f(2) – f(1)

⇒ 2c – 1 = 2 – 0

⇒ 2c = 2 + 1

⇒ 2c = 3

c = (3/2) ∈ (1,2)

Thus, lagrange's mean value theorem is verified.

123200.

Verify Lagrange’s mean value theorem for the functions on the indicated intervals. Find a point ‘c’ in the indicated interval as stated by the Lagrange’s mean value theorem:  f(x) = 2x – x2 on [0, 1]

Answer»

Given as f(x) = 2x – x2 on [0, 1]

The every polynomial function is continuous everywhere on (−∞, ∞) and differentiable for all arguments. Here, f(x) is a polynomial function. Therefore it is continuous in [0, 1] and differentiable in (0, 1). Therefore both the necessary conditions of Lagrange’s mean value theorem is satisfied.

So, there exist a point c ∈ (0, 1) such that:

f'(c) = (f(1) - f(0))/(1 - 0)

⇒ f’(c) = f(1) – f(0)

f (x) = 2x – x2

Differentiate with respect to x:

f’(x) = 2 – 2x

For the f’(c), put the value of x = c in f’(x):

f’(c)= 2 – 2c

For the f(1), put the value of x = 1 in f(x):

f (1)= 2(1) – (1)2

= 2 – 1

= 1

For the f(0), put the value of x = 0 in f(x):

f (0) = 2(0) – (0)2

= 0 – 0

= 0

f’(c) = f(1) – f(0)

⇒ 2 – 2c = 1 – 0

⇒ – 2c = 1 – 2

⇒ – 2c = – 1

c = -1/-2 = (1/2) ∈ (0,1)

Thus, lagrange's mean value theorem is verified.