Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Task 2 What will be the result of the calculation of the following expressions: a) 1 + 6 * 2 b) 3 mod 7 c) 3 div 5

user-image
Question added by Tomasz Modrzejewski , Python Developer , Freelancer
Date Posted: 2014/08/24
Tomasz Modrzejewski
by Tomasz Modrzejewski , Python Developer , Freelancer

Answer a) 13 b) 3 c) 0

Shagufta Mubasher
by Shagufta Mubasher , Web Developer , MP CJ O Shopping Sdn. Bhd.

Thanks for invitation

As you answered yourself its:

a)13

b)3

c)0

 

And as said by Mr. Hashim, I would like to request you to give us more time to respond before aswering yourself, thanks :)

Deleted user
by Deleted user

a)13

b)3

c)0

Deleted user
by Deleted user

Thank for the invitation , and sorry for late answer . As you answered already A)13 B)3 C)0

Abdulelah Fallatah
by Abdulelah Fallatah , Computer Operator , شركة الحاسب الآلي العربي

a) 13 (Why13? Refer to "order of precedence")

 

b) 3

 

c) It is 0 if and only if both3 and5 are integers. Otherwise, the answer is0.6.

هاشم المشارقة
by هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)

a)13

b)7

c)0

why you ask then answer quickly ?!

give us more time :)

Vinod Jetley
by Vinod Jetley , Assistant General Manager , State Bank of India

I agree with Abdulelah Fallatah

 

Gayasuddin Mohammed
by Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

a)1 +6 *2=1+12=13 b)3 mod7= modulous operator (reminder) =3 c)3 div5 = zero times division possible here.

More Questions Like This