Question

In: Computer Science

Which is NOT a valid return type for a method declaration Select one: a. double b....

Which is NOT a valid return type for a method declaration

Select one:

a. double

b. char

c. null

d. String

e. boolean

f. float

g. int

h. void

Statements that allow a program to choose, based on a boolean expression, between alternative blocks of code are known as:

Select one:

a. Selection statements or Conditionals

b. Declarations

c. Methods

d. Repetition Statements or Loops

e. Composition

Solutions

Expert Solution

ans 1 == the right option is -- option h...

because void means null or not return anything.. basically void use with the method declaration ..

ill elaborate all options -- i- double - is a primitive data type

ii - char is also primitive data type

iii) - null means nothing or null value .

iv ) - String is a mutuable non primitivr data type

v) - float is a primitive data type

vi ) - int is a primitive data type

ans B ---

answer is option a --

Selection statements or Conditionals

these staments return result as a boolean value ...

for example - if condition statement - return the true or false [Boolean]

othere options are --

b - Declaration -- this is when we declare variable such as - int a ;

c -Methods - are the block of code .

d- Repetition Statements or Loops = are use to repeat a number of lines multiple times ..

e - Composition is provide the has-a relationship in classes...

hey there ! i am done ,, Please give me a like to appreciate my work and efforts...

Thank You ! Dont forget to like the code ...  


Related Solutions

Which of the following is NOT a method of source reduction? Select one: a. Recycling b....
Which of the following is NOT a method of source reduction? Select one: a. Recycling b. Making packages that weigh less c. Incineration d. Municipal composting
Write a method named area with one double parameter name radius. The method needs to return...
Write a method named area with one double parameter name radius. The method needs to return a double value that represents the area of a circle. If the parameter radius is negative , then return -1.0 to present an invalid value Write another overload method with 2 parameters side1 and side2 (both double) where side1 and side2 represent the sides of a rectangle. The method needs to return an area of a rectangle . If either or both parameters is/...
Write a method named area with one double parameter name radius, the method needs to return...
Write a method named area with one double parameter name radius, the method needs to return a double value that represents the area of a circle. If the parameter radius is negative, then return -1.0 to represents an invalid value write another overload method with 2 parameter side 1 and side 2 (double) where side 1 and side 2 represents the sides of a rectangle. The method needs to return an area of a rectangle. If either or both parameters...
Given the following method declaration, write a valid method call. public static void calcArea(String roomName, int...
Given the following method declaration, write a valid method call. public static void calcArea(String roomName, int length, int width)
Which of the following best measures an asset's risk? Select one: a. Expected return b. The...
Which of the following best measures an asset's risk? Select one: a. Expected return b. The cash return c. The standard deviation d. The probability distribution You are considering buying some stock in Continental Breakfast. Which of the following is an example of nondiversifiable risk? Select one: a. Risk resulting from a news release that there are issues with Continental's production b. Risk resulting from an explosion in a factory owned by Continental c. Risk resulting from a general decline...
Which of the following are valid limitation of the central limit theorem? Select one or more...
Which of the following are valid limitation of the central limit theorem? Select one or more answers: 1) The random variables must have finite variance 2) The random variables must have finite mean 3) The random variables under sample average must be normal 4)The random variables must be under sample average 5) The random variables under sample average must be i.i.d
Create program which verifies if input string is a valid variable declaration or not. Use C...
Create program which verifies if input string is a valid variable declaration or not. Use C programming language. - This program can only use the following variable types: char, float, and int - Remove any newline \n from input string - The input prompt should say ">>> " - If input declaration is valid, it should print "Valid dec\n" - If input declaration is invalid, it should print "Invalid dec\n" - Make sure the identifier entered matches the rules of...
360 feedback is an example of which type of intervention? Select one: a. trans-organizational b. organizational...
360 feedback is an example of which type of intervention? Select one: a. trans-organizational b. organizational c. individual d. team
Write a function that will take in an array (of type double), and will return the...
Write a function that will take in an array (of type double), and will return the array with all of the elements doubled. You must use pass-by-reference and addressing and/or pointers to accomplish this task. C++
java method for dequeue write the “dequeue” method for a queue of type double. If the...
java method for dequeue write the “dequeue” method for a queue of type double. If the queue is empty return 0.0. Make sure to change the links properly ensure that the data structure remains a queue. use the code provided below public class Q04 { public class ListNode//Public for testing purposes { public double data; public ListNode link; public ListNode(double aData, ListNode aLink) { data = aData; link = aLink; } } public ListNode head;//Public for testing purposes public ListNode...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT