Professional Documents
Culture Documents
6 Test
6 Test
SECTION B
Q2. Answer the following Questions (15 marks)
I. Describe the working of Format specifiers in C language? Also write the names
commonly used format specifiers in C language.
OR
II. What are the operators of C language? List the types.
III. What is the purpose of scanf() function? Also write down its syntax?
OR
IV. What is the purpose of printf() function? Also write down its syntax?
V. Define Ternary Operators? Also write down its syntax?
VI. Differentiate between basic and compound assignment operators?
OR
VII. Differentiate between unary and binary operators with the help of examples?
VIII. Evaluate the equation (70*10-5%3*4+9/3).
SECTION C
Q3. Answer the following Questions (10 marks)
I. Write down the program that input three numbers from the user and display their sum,
product and average?
II. Write down the program that input 2 numbers from user and print the smallest number
using conditional operators?