Advertisements
Advertisements
Compare the following
break and continue statements
Concept: undefined >> undefined
Compare the following
if-else and switch statements
Concept: undefined >> undefined
Advertisements
An electronic component vendor supplies three products: transistors, resistors and capacitors. The vendor gives a discount of 10% on order of transistor if the order is more than Rs. 1000. On order of more than Rs. 100 for resistors, a discount of 5% is given and discount of 10% is given on order for capacitors of value more than Rs. 500. Assume numeric code 1, 2 and 3 used for transistors, capacitors and resistors respectively. Write a program that reads the product code and order amount and prints out the net amount that the customer is required to pay after discount. (Note: Use switch-case)
Concept: undefined >> undefined
Write a program to print following patterns for N lines.
5 4 3 2 *
5 4 3 * 1
5 4 * 2 1
5 * 3 2 1
* 4 3 2 1
Concept: undefined >> undefined
Write a programs to print following patterns for N lines.
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
Concept: undefined >> undefined
Select the correct option from multiple choice question.
Which of these is a valid variable declaration?
Concept: undefined >> undefined
Select the correct option from multiple choice question.
Study the following C program
Void main() {
int a=0;
for( ;a;);
a++; }
what will be the value of the variable a, on the execution of above program
Concept: undefined >> undefined
What do you mean by file? What are the different functions available to read data from file? Specify the different modes in which file can be opened along with syntax.
Concept: undefined >> undefined
Explain call by value with an example.
Concept: undefined >> undefined
Select the correct option from multiple choice question.
Which bitwise operator is used to multiply the number by 2n where n isnumber of bits.
Concept: undefined >> undefined
Select the correct option from multiple choice question.
Which operator has the lowest priority?
Concept: undefined >> undefined
Explain any four standard library functions from sting.h ?
Concept: undefined >> undefined
State True or False with reason.
A function can have any number of return statements.
Concept: undefined >> undefined
State True or False with reason.
Comments in the program make debugging of the program easier.
Concept: undefined >> undefined
Write a menu driven program to perform arithmetic operations on two integers. The menu should be repeated until user selects “STOP” option. Program should have independent user defined functions for each case.
Concept: undefined >> undefined
Enlist bitwise operator in c language. Explain any 2 with examples.
Concept: undefined >> undefined
What is recursion? Write a program to find xy using recursion.
Concept: undefined >> undefined
What is an error ? Explain different types of errors occurred in program.
Concept: undefined >> undefined
Select the correct option from multiple choice question.
What will be the output?
Void main() {
Int y;
y=0x10+010+10;
printf(“\ny=%x”,y); }
Concept: undefined >> undefined
What are advantages and disadvantages of recursion? Comment on conditions to be considered while writing a recursive function. Write a program to print Fibonacci series up to N terms using a recursive function.
Concept: undefined >> undefined
