Scripting and Programming -
Foundations || Questions and Correct
Detailed Answers ||100% Guaranteed
Pass!!
<Latest Version>
1.Algorithm- ANSWER ✔
Algorithm step-by-step procedure for solving a problem, generating correct output
for any valid input values. Has an input, a question to answer, and desired output.
Reduces the number of steps. Ensures proper ordering to improve accuracy.
Computers need all steps stated clearly, making a pb&j. Don't skip steps, don't
assume it knows missing steps.
2.Flowchart- ANSWER ✔ A
Flowchart depicts a program graphically, using a node for each statement.
3.Statement- ANSWER ✔ A
Statement action in a program that the interpreter carries out.
It gets a value from input into a variable, assign a variable with a value, or puts a
value to the output.
Example: In the picture, each shape is a statement.
,4.Universal Modeling Language (UML) (2) - ANSWER ✔
Universal Modeling Language (UML) modeling language for software design that
uses different types of diagrams to visualize the structure and behavior of
programs. Used in the planning process prior to when code is written.
Structural Diagram visualizes static elements of software, such as the types of
variables and functions used in the program (objects). The components of the
program.
Behavioral Diagram visualizes dynamic behavior of software, such as the flow of
an algorithm (what's happening). How things work, how the objects fit together.
5.UML Diagrams (4 - Not Their Definitions) - ANSWER ✔
UML VISUAL Diagrams:
Use Case Diagram
Class Diagram
Activity Diagram
Sequence Diagram
6.Use Case Diagram- ANSWER ✔
Use Case Diagram (behavioral) used to model how a user interacts with a
program.
Actions from users and the accompanying actions in software, as well as
connections between different components of the software.
7.Class Diagram & Class- ANSWER ✔
Class Diagram (structural) models the classes, or objects, of a program, including
class' name, data members and functions.
Class a code blueprint for creating an object that is composed of data members
and functions that operate on those data members.
Data Members various data types, such as integers, floating-point numbers,
strings, booleans, or user-defined types.
,Pictured
The "Car" class consists of two string member variables "make" and
"model". Member variable names are followed by a colon and then the
member variable type.
The CarForSale class has a float member variable salePrice and an integer
daysOnLot.
A car for sale is still a car, so the CarForSale class can inherit the make and model
members from the Car class, using inheritance. An arrow indicates that a
class inherits the data member and functions of another class.
The UsedCarLot class has a cars member that store a list of Cars and a sellCar
member function to sell a car on the lot.
The unfilled diamond indicates the UsedCarLot class "has" CarForSale items,
which are elements of the class' cars list. A diamond connecting
two classes indicates one class has data members of another class type.
8.Activity Diagram- ANSWER ✔
Activity Diagram (behavioral) flowchart of an activity (loop, function, etc.) within
the program.
9.Sequence Diagram- ANSWER ✔
Sequence Diagram (behavioral) interaction between software components and
the order of events.
Pictured
A sequence diagram can be used to illustrate the sequence of events for a web
search.
Horizontal arrows are used to indicate communication between the computer and
the web server.
Vertical dashed lines represent the lifelines of the computer and server.
Horizontal dashed lines represent responses from the server.
, Time passes from top to bottom in the diagram, allowing the ordering of events to
be determined.
10.Software Requirements Specification (SRS) - ANSWER ✔
The analysis phase of each approach commonly produces a Software
Requirements Specification (SRS), a document describing all requirements for the
software product. An SRS commonly has UML diagrams for several of the
software product's use cases.
11.Type Conversion & Implicit Conversion- ANSWER ✔ A
Type conversion conversion of one data type to another, such as an integer to a
float.
Implicit Conversion conversions between integer and float types automatically
performed by Coral. If either operand is a float, the other is automatically
converted to float.
integer-to-float conversion is straightforward: 25 becomes 25.0.
float-to-integer conversion just drops the fraction: 4.9 becomes 4.
3. = 1.5
2 is first converted to 2.0, then 3..0 yields 1.5.
(numItems + 10) / 2 = 7 (numItems = 5)
5 + 10 is 15. yields 7 (remainder of 1 is ignored).
(numItems + 10) / 2.0 = 7.5 (numItems = 5)
5 + 10 is 15. That integer is converted to float 15.0. Then 15..0 yields 7.5.
12.Type Cast- ANSWER ✔ A