QUESTIONS AND ANSWERS OUTLINE PACK
◉ What is a nested loop?
Answer: A loop that appears in the body of another loop.
◉ What are nested branches?
Answer: Branches that can take on various forms, where if-else
branches may even use different variables.
◉ What is a library?
Answer: A set of pre-written functions that carry out common tasks,
which a programmer can use to improve productivity.
◉ What is a newline?
Answer: A special two-character sequence \n that causes the cursor
to move to the next output line in an output string literal.
◉ What is algorithm time efficiency?
Answer: The number of calculations required to solve a problem.
◉ What does it mean to run or execute a program?
,Answer: To carry out a program's statements.
◉ What is a class diagram?
Answer: A diagram that models the objects of a program.
◉ What is testing?
Answer: The fourth step of the waterfall approach, which checks that
the programs correctly meet the goals.
◉ What is Not a number?
Answer: An indication of an unrepresentable or undefined value.
◉ What is RandomNumber()?
Answer: A function that takes two arguments, lowValue and
highValue, and returns a random integer in the range from lowValue
to highValue.
◉ What is an assignment statement?
Answer: A statement that assigns a variable with a value, such as
X=5.
◉ What is an iteration?
Answer: Each time through a loop's statement.
, ◉ What is a binary number?
Answer: A number using base two, consisting of 0s and 1s.
◉ What is a byte?
Answer: A unit of digital information that consists of eight bits.
◉ UML
Answer: A modeling language used to visualize requirements and
design software.
◉ Statically typed language
Answer: A programming language where the data type of a variable
is checked before the program runs (during compile time)
◉ Benefits of static typing
Answer: Finds errors earlier
◉ Drawbacks of static typing
Answer: Requires more setup/code
◉ Examples of statically typed languages