Page 22 - Modular_V1.1_Flipbook
P. 22
4. An integer constant is a numeric value with fractions. ……………………
5. A constant is a variable value which can change during the
program execution. ……………………
C. Fill in the blanks using the words given below.
Initializing, Floating-Point, memory, variable, strongly-typed
1. …………………… constant is any real number in which a fraction is denoted by a decimal symbol.
2. …………………… a variable means to assign a value to the variable.
3. C++ is a …………………… language.
4. When a variable is declared, some space is reserved for it in the …………………… of the computer.
5. A …………………… name cannot start with a digit.
D. Short answer type questions.
1. What are primitive data types?
2. What is a data type? Write the names of any three data types provided by C++.
3. What is a character set in C++?
4. Write the syntax to declare a variable.
E. Long answer type questions.
1. State any four variable naming conventions.
2. What is the meaning of strongly-typed language?
3. What is the difference between delimiters and operators?
Inter-Disciplinary
In the lab
Write a program to calculate simple interest.
Hint:
SI = (P * r * t ) / 100
where,
P is for principle amount
r is for rate of interest
t is for time duration
Write a program to calculate the area of rectangle.
Teacher's Corner
Discuss all the fundamental concepts of C++ with the students.
20 Touchpad MODULAR (Version 1.1)-X

