Cs 2nd Unit Answer Key
Cs 2nd Unit Answer Key
Q,1 (A)
1. (a)%
2. ( c )if-else
3. (b) continue
4. (a)int
5. (c) setw
6. (d)do-while
7. (b)continue
8. (d)binary
(B)
(b) Functions- To make large programs manageable programmers modularize them into small
modules or subprograms known as functions
(c ) Recursion- When a function calls itself within its body then it is known as Recursion.
2. (a) #include<conio.h>
(b)#include<stdlib.h>
(c) #include<math.h>
3. 3 differences
1. syntax
2. example
4. page no.65,66
5. page no. 68
6. page no. 76
7. Define-
(b) Function overloading- A function is said to be overloaded when it is declared more than once in
the program.
(c) Traversing- Visiting each and every element of the array exactly once.
9. page no. 44
10.page no. 73
11.Define-(a)pointer-
(c ) Constants- The numbers whose value can not be changed throughout execution of the program.
13.(b) variables- The placeholders in which the values can be stored and that can be changed.
(B) 4 marks q.
1. page no. 49
2. page no. 52
3. Function prototype- When a function is declared along with its data type and argument list before
mian function
4.page no. 82
5. page no. 84
6. page no. 74
7. page no. 78