University of Mumbai BE Chemical Engineering सत्र २ (इंजीनियरिंग) Important Questions for Structured Programming Approach - Fundamentals of C-Programming
Advertisements
Advertisements
Chapter wise important questions with answers and solutions for Structured Programming Approach in University of Mumbai BE Chemical Engineering सत्र २ (इंजीनियरिंग).
What is file? What are different functions available to read data from file? Specify the different modes in which files can be opened along with syntax.
पाठ: [10] Fundamentals of C-Programming
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.
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
Which bitwise operator is used to multiply the number by 2n where n isnumber of bits.
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
Which operator has the lowest priority?
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
Which of these is a valid variable declaration?
पाठ: [10] Fundamentals of C-Programming
What is an error ? Explain different types of errors occurred in program.
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
What will be the output of the following program?
Void main() {
Double x=28;
Int r;
r=x%5;
printf(“\n r=%d”,r);}
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
What will be the output of following program
Void main() {int x[]={10,20,30,40,50};
printf(“\n%d%d%d%d”,x[4], 3[x], x[2], 1[x], x[0]); }
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
Which of the following is not a keyword of ‘C’?
पाठ: [10] Fundamentals of C-Programming
Explain any four standard library functions from sting.h ?
पाठ: [10] Fundamentals of C-Programming
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); }
पाठ: [10] Fundamentals of C-Programming
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
पाठ: [10] Fundamentals of C-Programming
Select the correct option from multiple choice question.
Which of the following is used as a string termination character?
पाठ: [10] Fundamentals of C-Programming
State True or False with reason.
A float constant cannot be used as a case constant in a switch statement.
पाठ: [10] Fundamentals of C-Programming
State True or False with reason.
A function can have any number of return statements.
पाठ: [10] Fundamentals of C-Programming
Enlist all data types in C language along with their memory requirement, format specifiers and range.
पाठ: [10] Fundamentals of C-Programming
State True or False with reason.
Comments in the program make debugging of the program easier.
पाठ: [10] Fundamentals of C-Programming
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.
पाठ: [10] Fundamentals of C-Programming
Predict output of following program segment.
main()
{
int a,b,*p1,*p2,x,y;
clrscr();
a=48;b=10;p1=&a;p2=&b;
x=*p1**p2-8;
*p1=*p1+*p2;
y=(*p1/ *p2)+20;
printf("%d%d%d%d%d%d",*p1,*p2,a,b,x,y);
}
पाठ: [10] Fundamentals of C-Programming
Predict output of following program segment.
main()
{
int x=4, y=9,z;
clrscr();
z=x++ + --y+y;
printf("\n%d%d%d",x,y,z);
z= --x+x+y--;
printf("\n%d%d%d",x,y,z);
getch();
}
