# Question Bank Solutions for BE Civil Engineering Semester 2 (FE First Year) - University of Mumbai - Structured Programming Approach

Subjects
Topics
Subjects
Popular subjects
Topics
Structured Programming Approach
< prev  21 to 40 of 88  next >

Define pointer and its use. Explain array of pointer with example. Write program to swap the values by using call by reference concept.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: Array

Write a program to create two integer of size 8 and 7. Initialize the arrays with random values. Sort the arrays in ascending order with the help of user defined function namely “sort array”. Merge these arrays with the help of another user defined function named “merge arrays” which returns a new array. Program should display the arrays before and after sorting, also the merged arrays.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: Array

Explain gets() and puts() functions of C language. Comment on their parameters and return values.

[12] Functions and Parameter
Chapter: [12] Functions and Parameter
Concept: Function

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]

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: Array

Write a program to sort given array in ascending order.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: Array

Draw the flow chart to find roots of a quadratic equation.

[9.02] Algorithm and Flowchart
Chapter: [9.02] Algorithm and Flowchart
Concept: Three Construct of Algorithm and Flowchart

Comment on dynamic memory allocation. Write a program to read and store N integers in a Array, where value of N is defined by user. Find minimum and maximum members from the Array.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: Array

Explain switch case and if-else ladder with example.

[11] Control Structures
Chapter: [11] Control Structures
Concept: Control Structures > Branching

Select the correct option from multiple choice question.

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

[10] Fundamentals of C-Programming
Chapter: [10] Fundamentals of C-Programming
Concept: Identifiers and Keywords in C-Programming

State True or False with reason.

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

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

State True or False with reason.

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

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

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

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

Write user defined function to implement string concatenation.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

Explain need of file data and various modes of files also write program to create edit copy of file.

[14] Pointer and Files
Chapter: [14] Pointer and Files
Concept: Files

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

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

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

[14] Pointer and Files
Chapter: [14] Pointer and Files
Concept: Files

Why files are needed? Explain all the opening modes. Write a program to create copy of the user specify names of source and destination files.

[14] Pointer and Files
Chapter: [14] Pointer and Files
Concept: Files

Explain any 4 functions from string.h header file with suitable examples.

[13] Arrays , String Structure and Union
Chapter: [13] Arrays , String Structure and Union
Concept: String

Write the output of following code:
#include<stdio.h>
int main()
{
int val = 1;
do{
val++;
++val;
}while(val++>25);
printf(“%d\n”,val);
return 0;
}

[11] Control Structures
Chapter: [11] Control Structures
Concept: Control Structures > Looping

Write a program to validate whether accepted string is palindrome or not.

[11] Control Structures
Chapter: [11] Control Structures
Concept: Control Structures > Looping
< prev  21 to 40 of 88  next >