cse-1101-common-definitions-from-previous-exam
cse-1101-common-definitions-from-previous-exam
CSE-1101
Common questions (Definition) from previous exams:
--KN--
Page |2
5. Define Variable, Expression, Statement, and Symbolic constant with the declaration.
i. Variable: A variable is a named location in memory that is used to hold a value that
can be modified by the program. All variables must be declared before they can be
used.
ii. Expression: An expression is a formula in which operands are linked to each other
by the use of operators to compute a value. In other words, expression in C is any
valid combination of Operators, constants, functions, and variables.
iii. Statement: A statement is a part of program that can be executed. That is, a statement
specifies an action.
6. Define Function. Why is Function used in C?
A function is a block of statements that performs a specific task.
--KN--
Page |3
--KN--
Page |4
--KN--