You are on page 1of 2

Evaluate the following expressions: i) 22 + 3 < 6 && !5 || 22 = =7 && 22 – 2 > +5 ii) a + 2 > b || !

c && a =
= d *a – 2 < = e Where a=11, b=6, c=0, d = 7 and e=5.

An electricity board charges the following rates for the use of electricity: for the first 200 units 80 paise
per unit: for the next 100 units 90 paise per unit: beyond 300 units Rs 1 per unit. All users are charged a
minimum of Rs. 100 as meter charge. If the total amount is more than Rs 400, then an additional
surcharge of 15% of total amount is charged. Write a program to read the name of the user, number of
units consumed and print out the charges.

Attempts any eight questions:

4
Discuss structure of a C Program with suitable example.

Answered: Click to View Answer


5
What is variable? How is it different from constant? How do you write comments in c?

Answered: Click to View Answer


6
Explain formatted I/O functions in detail.

Answered: Click to View Answer


7
Write a program using your own function to find sum of two numbers

Answered: Click to View Answer


8
Write a program to print largest among three numbers entered by the user.

Answered: Click to View Answer


9
Explain dynamic memory allocation with example

Answered: Click to View Answer


10
Write a program that simply reads data from a file

Answered: Click to View Answer


11
Write a program to draw a line using graphics function.

Answered: Click to View Answer


12
Write short notes on:
a. History of C
b. Bitwise Operator

You might also like