boolean foo(int urn) { return false; } int dip(boolean let) { if(let) { return 1; } else { return -1; }}void setup() { int a = 5; boolean b = foo(a+5); float c = dip(4>3);}Formal parameter for foo is Answer 1 Question 6Actual parameter for foo is Answer 2 Question 6Return type of foo is Answer 3 Question 6Formal parameter for dip is Answer 4 Question 6Actual parameter for dip is Answer 5 Question 6Return type of dip is Answer 6 Question 6
Question
boolean foo(int urn) { return false; } int dip(boolean let) { if(let) { return 1; } else { return -1; }}void setup() { int a = 5; boolean b = foo(a+5); float c = dip(4>3);}Formal parameter for foo is Answer 1 Question 6Actual parameter for foo is Answer 2 Question 6Return type of foo is Answer 3 Question 6Formal parameter for dip is Answer 4 Question 6Actual parameter for dip is Answer 5 Question 6Return type of dip is Answer 6 Question 6
Solution
Answer 1 Question 6: int urn Answer 2 Question 6: a+5 Answer 3 Question 6: boolean Answer 4 Question 6: boolean let Answer 5 Question 6: 4>3 Answer 6 Question 6: int
Similar Questions
Which of the following is used to make a variable of one type behave like another type.Select one:Scope of variablesTypecastingfunctionsarguments
Which of the following is used to make a variable of one type behave like another type.Select one:functionsTypecastingScope of variablesarguments
answerWhich one is a valid declaration of a boolean?Optionsboolean b1 = 1;boolean b3 = false;boolean b2 = ‘false’;boolean b4 = ‘true’
A -----------expression provides a way to represent one method interface using an expression.a)terynaryb)arithmeticc)conditionald)lambdae)logical
Select the correct answerThe parameters in a function definition are:OptionsActual parameters Formal parameters We can call them actual as well as formal argumentsDummy parametersReal parameters
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.