CSC Exam 3 ||Verified Exam!!!|| Most Recent Exam
Actual Complete Real Exam Questions And Correct
Answers (Verified Answers) Already Graded A+ ||
Newest Exam!!!
Black Box Testing - Answer-A testing approach that
focuses on the functionality of the application or product
and does not require knowledge of the code intervals
How many arguments does the method call Math.pow(10,
3) have? - Answer-two
-each value in the parentheses is an argument
What is the first argument of this method call?
Math.pow(10, 3) - Answer-10
What is the first argument of the method call Math.pow(5 +
5, 3)? - Answer-10
-When an argument is an expression, it is first computed
before it is passed to the method.
What is the return value of that method call? Math.pow(5 +
5, 3) - Answer-1000
,2|Page
-1000 = 10^3. This value is passed from the method to the
caller.
How many arguments does a call to the Math.sqrt method
have? - Answer-one
-A typical call is Math.sqrt(4). You pass one argument to
this method.
How many arguments does a call to the Math.random
method have? - Answer-none
-A typical call is Math.random(). This method takes no
arguments.
Strings.abbreviate method - Answer-takes two arguments:
a string and an integer-the desired length of the
abbreviation.
What is the return value of Math.ceil(2.3)? - Answer-3.0
-The first number greater than 2.3 that is an integer (whole
number) is 3.0.
-The Math.ceil method receives a single argument a of
type double and returns the smallest double value ≥ a that
is an integer.
, 3|Page
parameter variable: - Answer-A variable of a method that
is initialized with a value when the method is called
argument - Answer-A value supplied in a method call
-Each parameter variable is initialized with the
corresponding argument
method - Answer-A sequence of statements that has a
name, may have parameter variables, and may return a
value. A method can be invoked any number of times, with
different values for its parameter variables.
argument - Answer-A value supplied in a method call, or
one of the values combined by an operator. The "input"
return value - Answer-The value returned by a method
through a return statement. The "output"
-Methods can receive multiple arguments, but they return
only one value. It is also possible to have methods with no
arguments. An example is the Math.random method that
requires no argument to produce a random number.