All questions are mandatory of part 1. Each question carries 1 mark for Part 1, Part 2 marks written front of question.
1. Example of exit control loop.
2. Jump to the starting point of loop.
3. Which of the following is a valid example of built in data type?
4. Which of the following is valid example of relational operator?
5. Storage capacity of long int
- / Operator is used to return remainder.
- All statement of C language terminated by ;
- if statement cannot be reside inside of nested loop.
- Logical error can be detected by compiler.
- All variable in C language initialize by 0.
Math the column
(I) Used in loop
Fill in the blanks
(B) Prefix Increment
(G) Postfix Increment
(H) Semi Colon
(K) Big int
(1) A do while loop must have ……………….. at the end.
(2) …………….. Is a special character which prints more than one space?
(3) …………… operators first use current value of variable before solving expression.
(4) ………………… function used to clear screen.
(5) …………… is used while taking input of long data type.
(1) Write a program to check whether a number is palindrome?
A number said to palindrome if reverse of each digit is same as input number
(2) Write a Program to check Perfect number.
A number said to perfect if sum of its entire divisor is equal to given number
|Image Source Wikipedia|
(3) Write down short notes on Logical and relational operator.
(4) Write a program to check whether a number is prime or not using do-while loop.