 Java All : Math Functions Exam Paper Problems #### Using Math.pow and indexOf #3964

( As In Exam - ICSE2015 )

What is the value stored in variable res given below:
double res = Math

What is the value stored in variable res given below:
double res = Math.pow(“345”.indexOf(‘5’), 3);

#### Identifying functions by description #3984

( As In Exam - ICSE2015 )

(i) Name the mathematical function which is used to find sine of an angle giv

(i) Name the mathematical function which is used to find sine of an angle given in radians
(ii) Name a string function which removes the blank spaces provided in the prefix and suffix of a string

#### writing return data types endsWith() log() #4048

( As In Exam - ICSE2018 )

Write the return data type of the following function.
(i) endsWith()

Write the return data type of the following function.
(i) endsWith()
(ii)log()

#### Math functions output #4055

( As In Exam - ICSE2018 )

Give the output of the following:
(i) Math.floor(-4.7)
(ii)Math.c

Give the output of the following:
(i) Math.floor(-4.7)
(ii)Math.ceil(3.4)+Math.pow(2,3)

#### ceil abs #4237

( As In Exam - ICSE2016 )

Give the output of the following Math functions:
(i) Math.ceil(4.2)

Give the output of the following Math functions:
(i) Math.ceil(4.2)
(ii) Math.abs(-4)

#### Writing expression #4242

( As In Exam - ICSE2016 )

Write down java expression for :
T = square root (A2 + B

Write down java expression for :
T = square root (A2 + B2 + C2)

#### Writing Expression #7231

( As In Exam - ICSE2017 )

Write a Java expression for the following:
ax5 + bx3

Write a Java expression for the following:
ax5 + bx3 + c

#### Output based on Math functions #7244

( As In Exam - ICSE2017 )

What are the values stored in variables r1 and r2:
(i) double r1 = Math

What are the values stored in variables r1 and r2:
(i) double r1 = Math.abs(Math.min(-2.83, -5.83));
(ii) double r2 = Math.sqrt(Math.floor(16.3));

Exam Paper Problems:8
×