Define decision making and describe its role in programming.
What will be an ideal response?
?The process of choosing which code to execute at a given point in an application is known asdecision making.When you write a computer program, regardless of the programming language, you often need to execute different sets of statements depending on some predetermined criteria. For example, you might create a program that needs to execute one set of code in the morning and another set of code at night. Or you might create a program that must execute one set of code when it's running on a larger screen, like a desktop or notebook computer, and another when it runs on a smaller screen, like a tablet or mobile phone. Additionally, you might create a program that depends on user input to determine exactly what code to run. For instance, suppose you create a web page through which users place online orders. If a user clicks the Add to Shopping Cart button, a set of statements that builds a list of items to be purchased must execute. However, if the user clicks the Checkout button, an entirely different set of statements, which completes the transaction, must execute.
You might also like to view...
Answer the following statements true (T) or false (F)
1. The process of documentation begins in the Identification/Assessment phase. 2. Collecting exculpatory evidence is exclusively the responsibility of the defense counsel. 3. A person has been sued by her neighbor for building a fence on the wrong side of the property line. She tries to act as her own defense attorney and is battered in court. She can appeal the case on Constitutional grounds, since she was never advised of her right to be represented by counsel. 4. The Third Amendment is the portion of the Bill of Rights that addresses a citizen’s right to privacy. 5. Only the Supreme Court can modify the Constitution. 6. The Bill of Rights, as defined in the Constitution, does not apply to citizens’ interactions with one another.
To make lengthy text occupy more than one line in a cell, use the ________ button
A) Wrap Text B) Align Text C) Cell Height D) Break Text
The Lightness slider increases or decreases the brightness of selected pixels.
Answer the following statement true (T) or false (F)
Clicking the Delete arrow in the Comments group provides all the following choices EXCEPT ________
A) Delete Comment Text B) Delete All Comments and Ink In This Presentation C) Delete D) Delete All Comments and Ink on This Slide