Unit 2
Long Answer Question of PPS | Most Important Question of PPS with Answer
Q1 Write a short note on operators in C language? What are the different types of operator?
or
Explain Logic and bit operators with example?
Q2 Discuss type conversion in C?
or
Discuss mixed operands and type conversions?
Q3 Write the difference between type conversion and type casting. What are the escape sequence characters?
Q4 Write a short note on operator precedence and associativity in C language?
Q5 What are the different types of operators in C language and also write down the difference between the associativity and precedence of operators?
Q6 Describe if-else-if ladder?
or
What are the disadvantage of if-else ladder?
Q7 Write a program to check whether the given character is in Upper case , lower case or non alphabetic character?
Q8 Any year is input through the keyboard? Write a program to determine whether the year is a leap year or not?
Q9 A company gives insurance to its drivers in the following cases:
(i) If the driver is married.
(ii) If the driver is unmarried, male & above 30 years of age.
(iii) If the driver is unmarried, female & above 25 years of age.
In all other cases, the driver is not insured. If the marital status, gender and age of a driver are inputs, write a program to determine whether the driver is to be insured or not.
Q10 A five digit number is entered through the keyboard? Write a program to obtain the reversed number and to determine whether the original and reversed number are equal or not?
Q11 Explain switch statement
or
What is the role of switch statement in C programming language? Explain with example?
Q12 differentiate between nested if and switch statements in C with example?
Q13 Write a program to print all prime number from 1 to 300
or
Write a program to print all prime number from 1 to 100
Q14 Explain preprocessor and Conditional operators?
Q15 Write a C program to add first seven terms of the following series using for loop.
1/1! +2/2! +3/3! +——–
Q16 Write a program to check the number is palindrome of not. The program should accept any arbitrary number typed by user ?
Q17 What do you mean by order of complexity? Explain various notation to represent order of complexity with diagram?
Q18 Explain the following with example
Q1 Write a short note on operators in C language? What are the different types of operator?
or
Explain Logic and bit operators with example?
Q2 Discuss type conversion in C?
or
Discuss mixed operands and type conversions?
Q3 Write the difference between type conversion and type casting. What are the escape sequence characters?
Q4 Write a short note on operator precedence and associativity in C language?
Q5 What are the different types of operators in C language and also write down the difference between the associativity and precedence of operators?
Q6 Describe if-else-if ladder?
or
What are the disadvantage of if-else ladder?
Q7 Write a program to check whether the given character is in Upper case , lower case or non alphabetic character?
Q8 Any year is input through the keyboard? Write a program to determine whether the year is a leap year or not?
Q9 A company gives insurance to its drivers in the following cases:
(i) If the driver is married.
(ii) If the driver is unmarried, male & above 30 years of age.
(iii) If the driver is unmarried, female & above 25 years of age.
In all other cases, the driver is not insured. If the marital status, gender and age of a driver are inputs, write a program to determine whether the driver is to be insured or not.
Q10 A five digit number is entered through the keyboard? Write a program to obtain the reversed number and to determine whether the original and reversed number are equal or not?
Q11 Explain switch statement
or
What is the role of switch statement in C programming language? Explain with example?
Q12 differentiate between nested if and switch statements in C with example?
Q13 Write a program to print all prime number from 1 to 300
or
Write a program to print all prime number from 1 to 100
Q14 Explain preprocessor and Conditional operators?
Q15 Write a C program to add first seven terms of the following series using for loop.
1/1! +2/2! +3/3! +——–
Q16 Write a program to check the number is palindrome of not. The program should accept any arbitrary number typed by user ?
Q17 What do you mean by order of complexity? Explain various notation to represent order of complexity with diagram?
Q18 Explain the following with example
a) Relational operators
b) Top down program development?
Q19 Explain with example the syntax and usage of the following in C programming
Q19 Explain with example the syntax and usage of the following in C programming
1. operator precedence
2. Array of structure
Q20 Explain logical and bitwise operators with the help of suitable example?
Q21 Write a program to check the number is palindrome of not. The program should accept any arbitrary number typed by user
Q22 Explain the syntax and use of following directive with example
1) #ifdef 2) #undef 3)#pragma 4) #include
Q20 Explain logical and bitwise operators with the help of suitable example?
Q21 Write a program to check the number is palindrome of not. The program should accept any arbitrary number typed by user
Q22 Explain the syntax and use of following directive with example
1) #ifdef 2) #undef 3)#pragma 4) #include