BE Mechanical Engineering Semester 2 (FE First Year)University of Mumbai
Share
Notifications

View all notifications
Books Shortlist
Your shortlist is empty

Question Paper Solutions for Structured Programming Approach CBCGS 2017-2018 BE Mechanical Engineering Semester 2 (FE First Year)

Login
Create free account


      Forgot password?
Structured Programming Approach
CBCGS
2017-2018 June
Marks: 80

1) Question No. 1 is compulsory

2) Attempt any three from the remaining questions


[20]1
[10]1.a
[1]1.a.i

Select the correct option from multiple choice question.

Which bitwise operator is used to multiply the number by 2n where n isnumber of bits.

Bitwise-OR

Bitwise-AND

Bitwise Left shift

Bitwise Right shift

Chapter: [10] Fundamentals of C-Programming
Concept: Operators in C-Programming
[1]1.a.ii

Select the correct option from multiple choice question.

Which operator has the lowest priority?

++

%

+

| |

Chapter: [10] Fundamentals of C-Programming
Concept: Operators in C-Programming
[1]1.a.iii

Select the correct option from multiple choice question.

Which of these is a valid variable declaration?

in temp salary

float marks_student

float roll-no

int main

Chapter: [10] Fundamentals of C-Programming
Concept: Variables in C - Programming
[1]1.a.iv

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);}

r = 3

Run time Error

Compile time Error

None of the above

Chapter: [10] Fundamentals of C-Programming
Concept: Character Set in C-Programming
[1]1.a.v

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]); }

Error

10 20 30 40 50

50 40 30 20 10

None of these

Chapter: [10] Fundamentals of C-Programming
Concept: Character Set in C-Programming
[1]1.a.vi

Select the correct option from multiple choice question.

Which of the following is not a keyword of ‘C’?

auto

register

int

function

Chapter: [10] Fundamentals of C-Programming
Concept: Identifiers and Keywords in C-Programming
[1]1.a.vii

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); }

y = 34

x = 34

y = 22

Error

Chapter: [10] Fundamentals of C-Programming
Concept: Data Input and Output in C-Programming
[1]1.a.viii

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

1

0

-1

None of these

Chapter: [10] Fundamentals of C-Programming
Concept: Variables in C - Programming
[1]1.a.ix

Select the correct option from multiple choice question.

Which of the following is used as a string termination character?

0

\0

/0

None of these

Chapter: [10] Fundamentals of C-Programming
Concept: Character Set in C-Programming
[1]1.a.x

Select the correct option from multiple choice question.

void main() {
char a[]= “Hello world”;
char *p;
p=a;
printf(“\n%d%d%d%d”,sizeof(a),sizeof(p),strlen(a),strlen(p) ); }

11 11 10 10

10 10 10 10

12 12 11 11

12 2 11 11

Chapter: [14] Pointer and Files
Concept: Pointer
[10]1.b
[1]1.b.i

State True or False with reason.

Size of pointer variable is equal to the datatype it points to.

Chapter: [14] Pointer and Files
Concept: Pointer
[1]1.b.ii

State True or False with reason.

A float constant cannot be used as a case constant in a switch statement.

Chapter: [10] Fundamentals of C-Programming
Concept: Constants in C - Programming
[1]1.b.iii

State True or False with reason.

The statement void p; is valid. 

Chapter: [14] Pointer and Files
Concept: Pointer
[1]1.b.iv

State True or False with reason.

while(0); is an infinite loop.

Chapter: [11] Control Structures
Concept: Control Structures - Looping
[1]1.b.v

State True or False with reason.

scanf() function is used to input string having multiple words. 

Chapter: [13] Arrays , String Structure and Union
Concept: String
[1]1.b.vi

State True or False with reason.

A function can have any number of return statements.

Chapter: [10] Fundamentals of C-Programming
Concept: Operators in C-Programming
[1]1.b.vii

State True or False with reason.

In a union, space is allocated to every member individually.

Chapter: [13] Arrays , String Structure and Union
Concept: Union
[1]1.b.viii

State True or False with reason.

An algorithm is a graphical representation of the logic of a program. 

Chapter: [9.02] Algorithm and Flowchart
Concept: Three Construct of Algorithm and Flowchart
[1]1.b.ix

State True or False with reason.

Comments in the program make debugging of the program easier. 

Chapter: [10] Fundamentals of C-Programming
Concept: Operators in C-Programming
[1]1.b.x

State True or False with reason.

There is no difference between ‘\0’ and ‘0’. 

Chapter: [13] Arrays , String Structure and Union
Concept: String
[20]2
[10]2.a
[5]2.a.i

How to create array of structure variable and assign values to its members?

Chapter: [13] Arrays , String Structure and Union
Concept: Array
[5]2.a.ii

Differentiate between struct and union. When is union preferred over struct? Give on example of each.

Chapter: [13] Arrays , String Structure and Union
Concept: Structure
[10]2.b
[5]2.b.i

WAP to print the sum of following series.

1+22+33+………+nn

Chapter: [11] Control Structures
Concept: Control Structures - Looping
[5]2.b.ii
[2.5]2.b.ii.i

Compare the following

break and continue statements

Chapter: [11] Control Structures
Concept: Control Structures - Nested Control Structure
[2.5]2.b.ii.ii

Compare the following

if-else and switch statements

Chapter: [11] Control Structures
Concept: Control Structures - Nested Control Structure
[10]3
[6]3.a

Write a program to calculate number of vowels (a, e, i, o, u) separately in the entered string.

Chapter: [13] Arrays , String Structure and Union
Concept: String
[4]3.b
[2]3.b.i

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);
}

Chapter: [10] Fundamentals of C-Programming
Concept: Data Input and Output in C-Programming
[2]3.b.ii

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();
}

Chapter: [10] Fundamentals of C-Programming
Concept: Data Input and Output in C-Programming
[10]3.c

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)

Chapter: [11] Control Structures
Concept: Control Structures - Nested Control Structure
[20]4
[10]4.a

What is recursion? WAP using recursion to find the sum of array elements of size n.

Chapter: [12] Functions and Parameter
Concept: Functions - Recursion
[10]4.b

Write a C program to
i. Create a 2D array [Matrix] [in main function]
ii. Write a function to read 2D array[Matrix]
iii. Write a function that will return true(1) if entered matrix is symmetric or false(0) is not symmetric.
iv. Print whether entered matrix is symmetric or not [in main function]

Chapter: [13] Arrays , String Structure and Union
Concept: Array
[20]5
[5]5.a

Implement string copy function STRCOPY (str1,str2) that copies a string str1 (source) to another string str2 (destination) without using library function.

Chapter: [13] Arrays , String Structure and Union
Concept: String
[8]5.b

Explain file handling in c in details.[Note: Mention file type, file
modes, file related functions and its use)

Chapter: [14] Pointer and Files
Concept: Files
[7]5.c

WAP to print all possible combination of 1,2,3 using nested loops.

Chapter: [11] Control Structures
Concept: Control Structures - Looping
[20]6
[5]6.a

WAP to print following pattern for n lines. [Note: range of n is 1-9]

1
121
12321
1234321

Chapter: [10] Fundamentals of C-Programming
Concept: Data Input and Output in C-Programming
[5]6.b

WAP to print binary equivalent of entered decimal no.

Chapter: [10] Fundamentals of C-Programming
Concept: Data Input and Output in C-Programming
[10]6.c

what is significance of storage classes? Explain it with relevant examples.

Chapter: [12] Functions and Parameter
Concept: Storage Classes

Request Question Paper

If you dont find a question paper, kindly write to us





      View All Requests

Submit Question Paper

Help us maintain new question papers on shaalaa.com, so we can continue to help students




only jpg, png and pdf files

University of Mumbai previous year question papers Semester 2 (FE First Year) Structured Programming Approach with solutions 2017 - 2018

     University of Mumbai Semester 2 (FE First Year) Structured Programming Approach question paper solution is key to score more marks in final exams. Students who have used our past year paper solution have significantly improved in speed and boosted their confidence to solve any question in the examination. Our University of Mumbai Semester 2 (FE First Year) Structured Programming Approach question paper 2018 serve as a catalyst to prepare for your Structured Programming Approach board examination.
     Previous year Question paper for University of Mumbai Semester 2 (FE First Year) Structured Programming Approach-2018 is solved by experts. Solved question papers gives you the chance to check yourself after your mock test.
     By referring the question paper Solutions for Structured Programming Approach, you can scale your preparation level and work on your weak areas. It will also help the candidates in developing the time-management skills. Practice makes perfect, and there is no better way to practice than to attempt previous year question paper solutions of University of Mumbai Semester 2 (FE First Year).

How University of Mumbai Semester 2 (FE First Year) Question Paper solutions Help Students ?
• Question paper solutions for Structured Programming Approach will helps students to prepare for exam.
• Question paper with answer will boost students confidence in exam time and also give you an idea About the important questions and topics to be prepared for the board exam.
• For finding solution of question papers no need to refer so multiple sources like textbook or guides.
S
View in app×