Exam Details
Subject | programming using - c | |
Paper | ||
Exam / Course | m.c.a.science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | November, 2016 | |
City, State | maharashtra, solapur |
Question Paper
Master of Computer Application I (Science) Examination:
Oct/Nov 2016 Semester I (Old CBCS)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR U
02
Friday
18/11/2016
10:30 AM
to
01:00 PM
Programming using C
C
Instructions: Question no. 1 2 are compulsory
Attempt any three questions from Q. No. 3 to Q. No. 7
Figures to the right indicate full marks.
Total Marks: 70
Q.1 Choose correct alternatives 10
Which of the following functions support dynamic memory allocation?
malloc realloc
calloc All the tree b and c
is a
machine language low level language
middle level language high level language
Where do we use a 'continue' statement?
In statement In 'switch' statement
In statement None of these
Which is the output of the following code?
void main()
int
int
int
printf
5 10
1 2
What is the output of the following code?
void main()
int
*f2
*f1
printf
2 16
4 none of these
Page 1 of 3
What is the output of the following code?
void main()
int
j=j I print f("YOU CAN")
printf
4 1 4 7
YOU CAN 4 1 YOU CAN 4 7
What is the output of the following code?
void main()
char "HELLO";
printf
HELL HELLO
Compiler error too many initializers HEL
The statement char ch would store in ch
the character Z the ASCII value of
Z
A along with the single inverted
commas
both a and b
A do-while loop is useful when we want that the statements within the loop
must be executed:
Only once a least once
More than once None of the above
10) To receive the string "We have got the guts, you get the glory!!" in an
array char str[100] which of the following functions would you use?
scanf gets(str);
getche(str); fgetchar(str);
State whether following statements are true or false 04
A character variable can never store more than 8 characters.
If a file opened for writing already exists its contents would be
overwritten.
We can send arguments at command line even if we define main()
function without parameters.
All structure elements are stored in contiguous memory locations.
Q.2 Write a short notes on the following
Pseudo code
Flow chart
08
Answer the following
Write steps to exchange the contents of two integer variables x and y
without using third temporary variable.
Draw a flow chart to calculate sum of 1-10 numbers
06
Page 2 of 3
Q.3 Answer the following
What is the purpose of malloc function? Give an example.
What is function? Write the general format of function definition. Write a C
program with a function.
06
08
Q.4 Answer the followings
What is Recursion? Write a program to calculate factorial of a given number
using recursive function.
Write a program to find and print the given number is odd or even. Using only
one printf (output) statement, no conditional statement and no logical,
relational and arithmetic operators.
07
07
Q.5 Answer the followings
Write a C program to arrange the given list of numbers in descending order.
What is the use of and 'continue' statements?
08
06
Q.6 Answer the following
Write a program using pointer to print a string in reverse.
Differentiate structure and union with example
08
06
Q.7 Answer the following
Twenty-five numbers are entered from the keyboard into an array. The
number to be searched is entered through the keyboard by the user. Write a
program to find if the number to be searched is present in the array and if it is
present, display the number of times it appears in the array.
What is preprocessor? How are they categorized and explain each with
suitable example?
Oct/Nov 2016 Semester I (Old CBCS)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR U
02
Friday
18/11/2016
10:30 AM
to
01:00 PM
Programming using C
C
Instructions: Question no. 1 2 are compulsory
Attempt any three questions from Q. No. 3 to Q. No. 7
Figures to the right indicate full marks.
Total Marks: 70
Q.1 Choose correct alternatives 10
Which of the following functions support dynamic memory allocation?
malloc realloc
calloc All the tree b and c
is a
machine language low level language
middle level language high level language
Where do we use a 'continue' statement?
In statement In 'switch' statement
In statement None of these
Which is the output of the following code?
void main()
int
int
int
printf
5 10
1 2
What is the output of the following code?
void main()
int
*f2
*f1
printf
2 16
4 none of these
Page 1 of 3
What is the output of the following code?
void main()
int
j=j I print f("YOU CAN")
printf
4 1 4 7
YOU CAN 4 1 YOU CAN 4 7
What is the output of the following code?
void main()
char "HELLO";
printf
HELL HELLO
Compiler error too many initializers HEL
The statement char ch would store in ch
the character Z the ASCII value of
Z
A along with the single inverted
commas
both a and b
A do-while loop is useful when we want that the statements within the loop
must be executed:
Only once a least once
More than once None of the above
10) To receive the string "We have got the guts, you get the glory!!" in an
array char str[100] which of the following functions would you use?
scanf gets(str);
getche(str); fgetchar(str);
State whether following statements are true or false 04
A character variable can never store more than 8 characters.
If a file opened for writing already exists its contents would be
overwritten.
We can send arguments at command line even if we define main()
function without parameters.
All structure elements are stored in contiguous memory locations.
Q.2 Write a short notes on the following
Pseudo code
Flow chart
08
Answer the following
Write steps to exchange the contents of two integer variables x and y
without using third temporary variable.
Draw a flow chart to calculate sum of 1-10 numbers
06
Page 2 of 3
Q.3 Answer the following
What is the purpose of malloc function? Give an example.
What is function? Write the general format of function definition. Write a C
program with a function.
06
08
Q.4 Answer the followings
What is Recursion? Write a program to calculate factorial of a given number
using recursive function.
Write a program to find and print the given number is odd or even. Using only
one printf (output) statement, no conditional statement and no logical,
relational and arithmetic operators.
07
07
Q.5 Answer the followings
Write a C program to arrange the given list of numbers in descending order.
What is the use of and 'continue' statements?
08
06
Q.6 Answer the following
Write a program using pointer to print a string in reverse.
Differentiate structure and union with example
08
06
Q.7 Answer the following
Twenty-five numbers are entered from the keyboard into an array. The
number to be searched is entered through the keyboard by the user. Write a
program to find if the number to be searched is present in the array and if it is
present, display the number of times it appears in the array.
What is preprocessor? How are they categorized and explain each with
suitable example?
Other Question Papers
Subjects
- .net
- artificial intelligence
- computer communication network
- computer graphics
- computer oriented statistics
- data mining and warehouse
- data structures
- database management system
- digital circuits and microprocessors
- digital image processing
- discrete mathematical structures
- distributed operating system
- finite automata
- introduction to computers
- java programming
- management
- mobile computing
- network security
- numerical analysis
- object oriented programming using c++
- opeartions research
- operating system
- pattern recognition mobile computing
- programming using - c
- programming with php
- software engineering
- system software
- uml
- web design techniques
- web technology