Exam Details
Subject | programming using - c | |
Paper | ||
Exam / Course | m.c.a.science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | December, 2018 | |
City, State | maharashtra, solapur |
Question Paper
M.C.A. (Semester (CBCS) Examination Nov/Dec-2018
Science
PROGRAMMING USING C
Time 2½ Hours Max. Marks: 70
Instructions: All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct answer. 14
void main
char "FULL";
a
printf("
FULL ULL
full none of these
What is „sizeof‟ in
Operator Reserve word
Both and Function
Study the following C Program
void main
int
for a
What will be the value of the variable on the execution of the above
program
1 0
None of these
Which of the following symbol is used to denote a pre-processor statement?
The operator can be applied to
integer values float values
double values All of these
Operators have hierarchy. It is used to know which operator
is most important is used first
is faster operates on large numbers
printf("%d",
prints A prints ASCII code of A
prints garbage none of these
The following statement
printf("%f",
prints
1.8 2.0
1.800000 None of these
Page 2 of 3
SLR-SN-2
The following program fragment
for (int n n
if(n continue;
else printf("%d",
1 2 4 5 1 2 4
2 4 5 None of these
10) The following program
void main()
int i
if return;
else printf(" i is not five");
printf("over");
results in
Syntax error 8
An execution error
Printing of over
Execution termination without printing anything
11) Consider the declaration
int a
The statement
printf("%d", a
prints
25 garbage
5 × address of b compile time error
12) The statement printf("%d",
prints the current value of a prints the current value of a 1
prints an error message prints garbage value
13) Which of the following mode in fopen is used to truncate the data in file?
a r
w t
14) An array elements are always stored in memory.
sequential random
sequential and random none of these
Q.2 Answer the following. (Any four) 08
Evaluate the following expression and show their hierarchy
on ink act 2 3 2 act
(ink act assume „on' to be an int)
Point out the errors, if any, in the following C statements:
class
ii) 3.14 r r area;
What is a modulus operator? What are restrictions of a modulus
operator?
Write a statement using caste operator to print the integer part of the
number 15.2234.
Which are the arithmetic operators in
Write short notes on. (Any two) 06
printf() function
strcpy() function
increment operator
Page 3 of 3
SLR-SN-2
Q.3 Answer the following. (Any two) 08
Explain any four functions in math.h with example.
Write a function which takes two values x and y and returns the value of
y).
What is a pointer? What do the symbols and mean when they are
placed in front of a variable name?
Answer the following. (Any one) 06
Draw a flow chart to print all even numbers between 3 to 20.
Write a program to read a character and then convert it into uppercase if
it is in lowercase. (without using any string function)
Q.4 Answer the following. (Any two) 10
What is mean by function argument, function call and return? Explain
with example.
Explain the function fseek() and rewind().
Write a program to display the following pattern:
1 2 3 4
1 2 3
1 2
1
Answer the following. (Any one) 04
Write a program to swap values of two integer variables without using the
temporary variable.
What are formal and actual arguments? Explain.
d
Q.5 Answer the following. (Any two) 14
Differentiate between if-else-if and switch statement.
Write a C program to find sum of 7 14 21 ……… n
Write a C program to find the position of given number in array of 10 integers.
Science
PROGRAMMING USING C
Time 2½ Hours Max. Marks: 70
Instructions: All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct answer. 14
void main
char "FULL";
a
printf("
FULL ULL
full none of these
What is „sizeof‟ in
Operator Reserve word
Both and Function
Study the following C Program
void main
int
for a
What will be the value of the variable on the execution of the above
program
1 0
None of these
Which of the following symbol is used to denote a pre-processor statement?
The operator can be applied to
integer values float values
double values All of these
Operators have hierarchy. It is used to know which operator
is most important is used first
is faster operates on large numbers
printf("%d",
prints A prints ASCII code of A
prints garbage none of these
The following statement
printf("%f",
prints
1.8 2.0
1.800000 None of these
Page 2 of 3
SLR-SN-2
The following program fragment
for (int n n
if(n continue;
else printf("%d",
1 2 4 5 1 2 4
2 4 5 None of these
10) The following program
void main()
int i
if return;
else printf(" i is not five");
printf("over");
results in
Syntax error 8
An execution error
Printing of over
Execution termination without printing anything
11) Consider the declaration
int a
The statement
printf("%d", a
prints
25 garbage
5 × address of b compile time error
12) The statement printf("%d",
prints the current value of a prints the current value of a 1
prints an error message prints garbage value
13) Which of the following mode in fopen is used to truncate the data in file?
a r
w t
14) An array elements are always stored in memory.
sequential random
sequential and random none of these
Q.2 Answer the following. (Any four) 08
Evaluate the following expression and show their hierarchy
on ink act 2 3 2 act
(ink act assume „on' to be an int)
Point out the errors, if any, in the following C statements:
class
ii) 3.14 r r area;
What is a modulus operator? What are restrictions of a modulus
operator?
Write a statement using caste operator to print the integer part of the
number 15.2234.
Which are the arithmetic operators in
Write short notes on. (Any two) 06
printf() function
strcpy() function
increment operator
Page 3 of 3
SLR-SN-2
Q.3 Answer the following. (Any two) 08
Explain any four functions in math.h with example.
Write a function which takes two values x and y and returns the value of
y).
What is a pointer? What do the symbols and mean when they are
placed in front of a variable name?
Answer the following. (Any one) 06
Draw a flow chart to print all even numbers between 3 to 20.
Write a program to read a character and then convert it into uppercase if
it is in lowercase. (without using any string function)
Q.4 Answer the following. (Any two) 10
What is mean by function argument, function call and return? Explain
with example.
Explain the function fseek() and rewind().
Write a program to display the following pattern:
1 2 3 4
1 2 3
1 2
1
Answer the following. (Any one) 04
Write a program to swap values of two integer variables without using the
temporary variable.
What are formal and actual arguments? Explain.
d
Q.5 Answer the following. (Any two) 14
Differentiate between if-else-if and switch statement.
Write a C program to find sum of 7 14 21 ……… n
Write a C program to find the position of given number in array of 10 integers.
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