PPS ASSIGNMENT - 1 QUESTIONS TO BE SUBMITTED ON 9 DECEMBER

 SAQ

1. What is a variable? Write a syntax to declare a variable.

2. Write an algorithm to swap two values without using temporary variables.

3. List and explain relational operators.

4. Define operating system. Write any 4 functions of OS.

5. Convert following binary numbers to octal and hexadecimal numbers:

(a) 1110011    (b) 01010100

6. Convert following decimal numbers to octal and hexadecimal numbers :

(a) 597    (b) 84

7. Explain conditional operator with example.

8. Explain binary and ternary operators.


LAQ

1. Mention the steps involved in creating and running the C program.

2. Draw a flow chart to print the factorial of a given number.

3. Draw a flow chart and also write a program to find sum of first n natural numbers.

4. Explain about different data types used in C?

Comments

Popular posts from this blog