COMPREHENSIVE QUESTIONS AND
SOLUTION GUIDE
◉ What is Moore's Law?
Answer: The observation that the number of transistors on a
microchip doubles approximately every two years, leading to
increased performance.
◉ What is an expression?
Answer: Can be a number, a variable name, or a simple calculation
like (numApples + 1).
◉ What happens when you divide a nonzero floating-point number
by zero?
Answer: It results in Infinity or -Infinity.
◉ What does ASCII stand for?
Answer: American Standard Code for Information Interchange,
which is a character encoding standard.
,◉ What is a program?
Answer: A list of statements, each carrying out some action and
executing one at a time.
◉ What is a return statement?
Answer: A statement that returns the specified value and
immediately exits the function.
◉ What is a function call?
Answer: An invocation of a function's name, causing the function's
statements to execute.
◉ What are characters?
Answer: Any letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.).
◉ What is a bit?
Answer: A single binary digit, either 0 or 1.
◉ What is an if-else statement?
Answer: A decision structure that executes one branch if the
condition is true, and another branch if it is false.
◉ What is a loop?
,Answer: A program construct that repeatedly executes a block of
statements known as the loop body.
◉ What is a sequence diagram?
Answer: A type of diagram that shows the interaction between
software components and the order of events.
◉ What is a Boolean?
Answer: A data type that has only two values: true or false.
◉ What is a variable?
Answer: A named item used by programs to refer to data and hold a
value.
◉ What is type conversion?
Answer: The process of converting one data type to another, such as
from an integer to a float.
◉ What is an equality operator?
Answer: An operator that checks whether two operands' values are
the same (==) or different (!=).
◉ What is a compiled language?
, Answer: A programming language whose code is translated into
machine code by a compiler before it can be executed.
◉ What is input?
Answer: Data that a program receives from various sources such as
files, keyboards, or networks.
◉ What is a logical operator?
Answer: An operator that treats operands as true or false and
evaluates to true or false.
◉ What is an operator?
Answer: A symbol that performs a built-in calculation, such as + for
addition.
◉ What is a reserved word?
Answer: A word that is part of the programming language and
cannot be used as an identifier.
◉ What is a do-while loop?
Answer: A loop that first executes the loop body's statements and
then checks the loop condition.