Question

Question 22: Describe two fundamental differences between terminal-based user interfaces and GUIs. What roles do the...

Question 22:

Describe two fundamental differences between terminal-based user interfaces and GUIs.

What roles do the parameters and the return statement play in a function definition?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 22:

Two fundamental differences between terminal-based user interfaces and GUIs:

1) In terminal-based user interfaces, a user has to issue a set of commands to execute or perform the task but in GUIs, users can execute tasks through graphical icons or visual indicators.

2) The terminal-based user interface requires less memory compared to GUIs as GUIs contain a lot of graphical components. Terminal-based user interfaces are faster compared to GUIs.

Roles of parameters and the return statement in a function definition:

During the calling of a function, we pass certain values with the function which are required to execute the function. The passed values are called as parameters of the function.

For example:

public static int minimum(int a, int b) { int min; if (a > b) min = b; else min = a; return min; }

For the function stated above a and b are parameters.

After the execution of a function, the function gives output by a return statement.

For example:

public static int minimum(int a, int b) {
   int min;
   if (a > b)
      min = b;
   else
      min = a;

   return min; 
}

the function returns the minimum value by the statement return min;

Add a comment
Know the answer?
Add Answer to:
Question 22: Describe two fundamental differences between terminal-based user interfaces and GUIs. What roles do the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT