Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Internal Questions

Long Questions

1)WAP to swap 2 variables without using 3rd variable;


2) Wap to use ‘Bitwise AND’ and a ‘Sizeof’ operator and determine the size of integer and oat.
3)Wap to read values a,b,c adding them and check if it is range of 100 to 200.
4)wap to write university grade
5)wap to check greatest of three numbers
6)WAP to calculate the basic salary
TA DA. HRA
basic >= 50k 20%. 30%. 30%
Basic>=40k. 10%. 20%. 20%
basic>=30k 10%. 20%. 10%
Gross= Basic+TA+DA+HRA?
7)Explain the types of operator in C programming. WAP to illustrate the use of various operators.
8)Di erence between WHILE and doWhile loop with example.
9)Write the short note on :-
i)Typecasting
ii)Datatypes
iii)Increment/Decrement operator.
ff
fl
3 marks
• WAP to ask user his/her age and Check whether he/she is eligible to vote or not.
• Di erentiate between Compiler and Interpreter.
• WAP to check whether a no. is positive or negative,
• WAP to use Conditional operator with 2 statement.
• WAP to nd out the square of a given no.
• WAP to nd the area of a circle.
• WAP to nd Simple Interest.
• Write any 5 primary datatype with size and conversion speci er.
• Di erentitate between Operator , Operand and Expression.
• De ne the following with example:-
• (a) Unary (b) Binary (c) Ternary
• De ne Increment and Decrement operator with example
• What is the purpose of main() function?
• What is meant by errors and debugging?
• Write the rules of Identi er.
• Write rules of Varianle declaration.
ff
ff
fi
fi
fi
fi
fi
fi
fi

You might also like