• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/10

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

10 Cards in this Set

  • Front
  • Back

Write the code for invoking a method named sendSignal. There are no arguments for this method .Assume that sendSignal is defined in the same class that calls it.

sendSignal();

printTodaysDate is a method that accepts no arguments and returns no value . Write a statement that calls printTodaysDate.Assume that printTodaysDate is defined in the same class that calls it.

printTodaysDate();

Write the code for invoking a method named sendObject. There is one argument for this method which is of type Customer.




Assume that there is a reference to an object of type Customer, in a variable called John_Doe.




Use this reference as your argument .Assume that sendObject is defined in the same class that calls it.

sendObject(John_Doe);

Write the code for invoking a method named sendNumber . There is one int argument for this method . Send the number 5 as an argument to this method .




Assume that sendNumber is defined in the same class that calls it.

sendNumber(5);

Write the code for invoking a method named sendVariable. There is one int argument for this method .




Assume that an int variable called x has already been declared and initialized to some value .




Use this variable 's value as an argument in your method invocation.Assume that sendVariable is defined in the same class that calls it.

sendVariable(x);

Write the code for invoking a method named sendTwo.




There are two arguments for this method :


a double and an int .




Invoke the method with the double value of 15.955 and the int value of 133.Assume that sendTwo is defined in the same class that calls it.

sendTwo(15.955,133);

printErrorDescription is a method that accepts one int argument and returns no value .




Write a statement that invokes the method printErrorDescription, passing it the value 14.




Assume that printErrorDescription is defined in the same class that calls it.

printErrorDescription(14);

printLarger is a method that accepts two int arguments and returns no value .




Two int variables , sales1 and sales2, have already been declared and initialized .




Write a statement that calls printLarger, passing it sales1 and sales2.




Assume that printLarger is defined in the same class that calls it.

printLarger(sales1, sales2);

add is a method that accepts two int arguments and returns their sum .




Two int variables , euroSales and asiaSales, have already been declared and initialized .




Another int variable , eurasiaSales, has already been declared .




Write a statement that calls add to compute the sum of euroSales and asiaSales and that stores this value in eurasiaSales.




Assume that add is defined in the same class that calls it.

eurasiaSales = add(euroSales, asiaSales);

toThePowerOf is a method that accepts two int arguments and returns the value of the first parameter raised to the power of the second.




An int variable cubeSide has already been declared and initialized .




Another int variable , cubeVolume, has already been declared .




Write a statement that calls toThePowerOf to compute the value of cubeSide raised to the power of 3 and that stores this value in cubeVolume.




Assume that toThePowerOf is defined in the same class that calls it.

cubeVolume = toThePowerOf(cubeSide, 3);