Bpops103 Module 2 Important Questions
Bpops103 Module 2 Important Questions
1.Write a note on the following operators. i) Relational ii) Logical iii) Conditional (6)
2. Write a note on the following operators. i) Unary ii) Arithmetic iii) Bitwise (6)
5. Explain with syntax, if, if-else & cascaded if else statements in C program
10. Explain the syntax of for loop and write a program using for loop to find sum of first n natural
numbers (8)
11. Explain the syntax of if statement and write a program to find largest of 3 numbers using if
statement (8)
12. Explain the syntax of do while statement. Write a c program to find the factorial of a number
using do while where the number n is entered by user (8)
13. Write a c program to read a year as input and check whether it is a leap year or not (4)
14. List the types of looping statements in c. Explain any two with syntax and example (6)