Page 24 - Modular_V2.0_C++_Flikpbook
P. 24

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?



                                                        In the lab                          21 st  Century   #Technology Literacy
                                                                                                Skills


                          Write a program to calculate simple interest.
                          Hint: The formula for Simple Interest is:
                          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.






                   22
                          Touchpad MODULAR (Ver. 2.0)
   19   20   21   22   23   24   25   26   27   28   29