divide 100 by 7, and you get 14.28. (Obviously you aren’t talking about decimals here) and so 14 numbers can be divisible by 7 up to 100.
The answer is 14.
we can draw 12 tangents, 4 for 2 circles and 12 for 3
circles
let a = 9 * 9 * 9;
let b = 12 * 12 * 12;
let c = 15 * 15 * 15;
sum = a + b + c;
edge = Math.cbrt(sum);
console.log(edge);
LCM of 4,6,8 and 10 are 120
So, the least number of four digits is 120*9=1080 ( <1000 )
8 games They played
A own 3 games = 18 Rs
B loss 3 Rs and own 1 games i,e 9(A own 3 Games)-6(B own
1 game)=3
c own 12 Rs and loss 4 games(A own 3+b own 1) and own 4
games i.e 24(own)-12(loss)
so totally A own 3 games
B own 1 game
c own 4 games
=8
Percentage of people passed = (passed in eng) + (passed in math) – ( passed in both)
Which is 90% of students passed and 10% failed
10% of X = 40
X = 400
Servlets are faster as compared to JSP, as they have a short response time.
JSP is slower than Servlets – JSP is a HTML-based codes.
Servlets are harder to code, as here, the HTML codes are written in Java – JSPs are easier to code, as here Java is coded in HTML.
In an MVC architecture, Servlets act as the controllers. – In MVC architectures, the JSPs act as a view to present the output to the users.
The service() function can be overridden in Servlets. – The service() function cannot be overridden in JSPs.
Had is correct ! Anil went in right direction but ended up
with wrong answers
Soln: B lied ( see anil’s comment ) which implies B has not
stolen mule. So B could steal camel or sheep.
1) Lets assume B stole camel.
In that case, A lies ( refer – A says “B had stolen sheep”
), which implies A had stolen sheep ( becoz a lier cant
steal mule ). So A->sheep B->camel C->mule. But this cant
happen because C cant lie ( refer – C says ” B had stolen
mule” ).
2) Lets assume B stole sheep.
In that case, A is true ( refer – A says “B had stolen
sheep” ), which implies A had stolen mule. So A->Mule
B->Sheep C->camel. Here C lies ( refer – C says ” B had
stolen mule” )
SO ANS: answer A- mule, B-sheep, C camel
RABBIT
9 AND 3
A parabola is obtained as the intersection of a cone with a
plane
Answer: 3121 gold coins
Let total no of coins be M
Let the disbursement D to each son:
D1 = 1 + (M – 1)/5 = (M + 4)/5
D2 = 1 + ( M – D1 -1)/5 = (D1) * 4/5
D3= (D2) * 4/5
D4= (D3) * 4/5
D5= (D4) * 4/5
Total disbursements to sons=
= ∑D= (M+4)*1/5[ 1+4/5+(4/5)(4/5)+ (4/5)(4/5)(4/5)+(4/5)(4/5)(4/5)(4/5) ]
= (2101/3125)*(M+4)
Thus balance left for daughters =M-{(2101/3125)*(M+4)}
=(1024M-8404)/3125
This balance should be a positive integer ( assuming M and all disbursements are full coins )
Thus 1024M-8404 should be a multiple of 3125….so….
1024M – 8404 = N*3125 where N is an integer
Using Python code:
n=int(input(“Enter num n: “))
X=int()
a=int()
a=0
X=’ ‘
for a in range(0,n+1):
a=a+1
X= (3125*a + 8404)/1024
if (3125*a + 8404)% 1024== 0:
print(X,a)
Enter num n: 10000
3121.0 1020
6246.0 2044
9371.0 3068
12496.0 4092
15621.0 5116
18746.0 6140
21871.0 7164
24996.0 8188
28121.0 9212
We get minimum value of N = 1021 and M = 3121 gold coins
D. Rs. 187500
let the third no be x ,
then the first no is 3x ,
second no is 2*3x ie 6x
average is (3x+6x+x )/3 = 20
10x/3 = 20
x= 60/10 = 6
third no is 6 , second is 6x = 36, first no is 3x = 18
largest no is 36 i.e second no
150
C
17 secs