1. Assignment-1
Subject: C Language Last Submission date: 14022013
1. Who developed the c language? Explain in brief.
2. Why the programming language is named as C language?
3. Why to compile the c programs before execution?
4. Explain Character set with relevant examples.
5. Define the following terms, give one example for each:
a. Identifiers.
b. Constant.
c. Keyword.
d. Relational expression.
e. Assignment statement.
6. Define variable and list Guidelines for Naming Variables.
7. Explain with example the order of evaluation of an arithmetic expression.
8. What do you understand by C built-in data types? List out Built-in Data Types provided in c
language and give relevant examples.
9. What is declaration give example?
10. What are the C Key Words-Rules?
11. Explain IF statement with an example giving it’s general syntax.
12. Give the general syntax for for() loop and explain the initialization, decision, updating.
2. Assignment-1
Subject: C Programming Lab Last Submission date: 14022013
1) Write a c program to implement KBC program and ask a question and display answer
after user’s choice.
2) Write a program to print HELLO WORLD on screen.
3) Write a program to display the following output statements after taking inputs from
user.
4) Subject Marks
5) -----------------------------
Mathematics 90
Computer 77
Chemistry 69
6) Write a program which accept two numbers and print their sum.
7) Write a program which accept temperature in Fahrenheit and print it in centigrade.
8) Write a program which accept principle, rate and time from user and print the simple
interest.
9) Write a program which accepts a character and display its ASCII value.
10) Write a program to swap the values of two variables without using third variable.
11) Write a program to calculate area of circle.
12) Write a program to check whether the given number is positive or negative (using ? :
ternary operator) Hint: if less than 0 it is negative else positive.
13) Write a program to check whether the given number is even or odd (using ? : ternary
operator ).
14) Write a program to find largest of three numbers.
15) write a program to display 100 number from zero using for loop.
16) find the area of cube i.e. volume of a cube