About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Sunday 19 March 2017

PCD Assignment-III

1. What are formatted I/O functions? Explain with syntax and examples.

2. What are unformatted I/O functions? Explain with syntax and examples.

3. Explain the following operators in brief with examples.
Arithmetic, Relational, Logical, Increment / Decrement  operators and Bitwise operators.

4. What is conditional operator? Explain with syntax and example.

5. What are special operators? list and explain.

6. What is precedence and associativity of operator? Explain with example.

7. Solve the following mathematical expressions using precedence and associativity rules.

    a)  8&&7+100/5==1%10-5<10+(10/2)
    b) 5 && 10<<5+10

8. What is type conversion? List and explain different types with examples.

9. Convert the any ten mathematical expressions(as discussed in class) into C expressions.

10. What are decision making statements? Explain the following with syntax and programming examples.
simple if, if ... else statement and nested if statement.

11. What is cascaded if statement? Explain with syntax and example.

12. Discuss "switch" statement with syntax, flowchart and programming example.

13. Write C programs for following

1). To check for leap year.

2). To find largest of three numbers.

3). To check, whether the machine is 16 bits machine or not.

4). If the user entered name is your's name and password is your roll number, then permit the user to find area and perimeter of rectangle.

5). To display the Grades like "Honour" (Avg>=70), "First Division" (Avg>=60 and Avg<70), "Second Division" (Avg>=50 and Avg<60), "Passed" (Avg>=35 and Avg<50), "Fail" (Avg<35) by using else if ladder statement.

6). To provide menu options to find "Area of Circle", "Area of Rectangle" and "Area of Triangle" to work accordingly using switch statement.

7). To simulate "Simple Calculator" using switch statement.

8) To find roots of a quadratic equation for three non-zero coefficients a, b and c. (Lab Program)

9) SOLVE QUESTION PAPERS.



 
   








No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...