TCS
Company
Numerical Ability
Number System
For real number x, int(x) denotes integer part of x. int(x) is the largest integer less than or equal to x.int(1,2)=1, int(-2,4)= -3. Find the value of int(1/2)+int(1/2+100)+int(1/2+2/100)+....+int(1/2+99/100)
Read Solution (Total 12)
-
- int(1/2)=0
int(1/2+100)=100
int(1/2+2/100)=0
int(1/2+3/100)=0
.....
int(1/2+50/100)=int(100/100)=1
.......
int(1/2+99/100)=int(1.49)=1
by adding all those values
we will get 150 - 11 years agoHelpfull: Yes(40) No(6)
- if it is int(1/2 + 100) the answer is 150 lest if it is int(1/2 + 1/100) the answer is 50.
from int(1/2 + 49/100)= 0 and from int(1/2 + 50/100)= 1 and int(1/2 + 99/100) = 1 so from 50 to 99 it is equal to 50 - 11 years agoHelpfull: Yes(13) No(1)
- @vardhani how int(1/2) is 0????
plzzz explain - 11 years agoHelpfull: Yes(4) No(4)
- @DIVYA SRIVASTAVA
simply he is giving silly hint that integer of -2.4 is -3 and 1.2 is 1 ,like wise he want us to calculate that sum of value i.e again integer of (1/2=0.5=0) and integer of(1/2+100=0.5+100=100.5=100) and so on....answer will come..:) - 11 years agoHelpfull: Yes(4) No(0)
- @GANESH RAVVA : Thanx..now i get the point... but one more question, its written int(1,2), so ',' sign here denotes for decimal point???
- 11 years agoHelpfull: Yes(3) No(0)
- why int(-2,4)=-3 ?? it should be 4..bcoz it is
- 11 years agoHelpfull: Yes(1) No(1)
- Not getting the question. please explain wat exactly the question is??
- 11 years agoHelpfull: Yes(1) No(0)
- i think it's not related to problem
they just gave to confuse us
@unmesh - 11 years agoHelpfull: Yes(1) No(0)
- Given that:
int(1/2)=int(0.5)=0
like this, From 1st term
int(1/2)=int(0.5)=0
int(1/2+1/100)=int(0.5+0.01)=int(0.51)=0
up to term int(1/2+49/100)=int(0.99)=0
now from this on-words int(1/2+50/100)=int(1)=1 up to last term int(1/2+99/100)=int(1.49)=1
so, there are 50 terms between this. By adding all 50 1's we will get "50" as answer - 7 years agoHelpfull: Yes(1) No(1)
- they already given int(x)is the largest integer less than or equal to x
so, int(1/2)=int(0.5)=0 - 11 years agoHelpfull: Yes(0) No(0)
- why int(-2,4)=-3 ?? it should be 4..bcoz it have to be less than or equal to x
- 11 years agoHelpfull: Yes(0) No(0)
- Here int(1,2) means int(1.2).
As it is given that int(x) is the largest integer less than or equal to x, so int(1.2)=1 which is less than 1.
similarly, int(-2,4)[which means int(-2.4)= -3 as -3 is less than -2.4.
Hope you all got it - 6 years agoHelpfull: Yes(0) No(0)
TCS Other Question