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 (Computer Science)
Examination: Oct/Nov 2016 Semester I (New CBCS)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR U
47
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
The geometrical figure shown below in flow chart represents
start stop looping
processing decision
Who developed C language?
Bjarne strostrup James Gosling
Dennis Ritchie Bill Gates
C language follow the
Object oriented
programming method
Procedural programming method
Both a and b None of these
Which of the following is a keyword used for storage class?
int intern
auto externa
Preprocessor directives are used for
Macro substitution File inclusion
Conditional compilation All of these
Which of the following is a string termination character?
What is the output of the following program?
void main()
int x 20; y 30; z 80;
if y
printf("
Hello world");
else
printf("
Good
i
Hello world Good bye
Compile time error Hello world Good bye
What is valid range of numbers for data type?
0 to 256 -32767 to +32768
-32768 to +32767 -32768 to +32768
How will you free the dynamically allocated memory
Delete(variable_name); Drop(variable_name)
Free(variable_name); Release(variable_name)
Page 1 of 2
10) Which header file should be included to use the functions like malloc() and
calloc
stdio.h conio.h
memory.h stdlib.n
State whether following statements are true or false 04
If is an integer variable the will assign 2.500000 to variable
is a data type in which all members are stored in the same location.
A function is a module or block of program code which deals with a
particular task.
The static variable in initialized at run time but is not reinitialized when the
functions is called.
Q.2 write a short notes on the following 08
Flow chart
Modes of opening a file
Answer the following 06
Explain operator precedence
Write a program using ternary operator to find greatest among three integer
numbers
Q.3 Answer the following
Design an algorithm that reads a list of numbers and displays the count of
the negative and positive numbers in the list
Explain Call by Value and Call by Reference.
08
06
Q.4 Answer the followings
Explain the various decision making statement in C with an example for
each.
Write a program to get an integer from the user. If the number is even and
two digit number then print the message "Thank you" else display the
message "Bye"
08
06
Q.5 Answer the followings
Define a structure called "Cricket" that will describe the following
information.
Player name, team name and batting average. Using Cricket, declare an
array with 50 elements and write a program to read the information of all
the players and print the same information in tabular form.
What is preprocessor? Write use of any three preprocessor.
08
06
Q.6 Answer the following
Write a program to demonstrate use of array as function argument.
Discuss the unary operators in C language.
08
06
Q.7 Answer the following
Discuss structure and union
Write a program to print the following output
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
06
08
Page 2 of 2
Examination: Oct/Nov 2016 Semester I (New CBCS)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR U
47
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
The geometrical figure shown below in flow chart represents
start stop looping
processing decision
Who developed C language?
Bjarne strostrup James Gosling
Dennis Ritchie Bill Gates
C language follow the
Object oriented
programming method
Procedural programming method
Both a and b None of these
Which of the following is a keyword used for storage class?
int intern
auto externa
Preprocessor directives are used for
Macro substitution File inclusion
Conditional compilation All of these
Which of the following is a string termination character?
What is the output of the following program?
void main()
int x 20; y 30; z 80;
if y
printf("
Hello world");
else
printf("
Good
i
Hello world Good bye
Compile time error Hello world Good bye
What is valid range of numbers for data type?
0 to 256 -32767 to +32768
-32768 to +32767 -32768 to +32768
How will you free the dynamically allocated memory
Delete(variable_name); Drop(variable_name)
Free(variable_name); Release(variable_name)
Page 1 of 2
10) Which header file should be included to use the functions like malloc() and
calloc
stdio.h conio.h
memory.h stdlib.n
State whether following statements are true or false 04
If is an integer variable the will assign 2.500000 to variable
is a data type in which all members are stored in the same location.
A function is a module or block of program code which deals with a
particular task.
The static variable in initialized at run time but is not reinitialized when the
functions is called.
Q.2 write a short notes on the following 08
Flow chart
Modes of opening a file
Answer the following 06
Explain operator precedence
Write a program using ternary operator to find greatest among three integer
numbers
Q.3 Answer the following
Design an algorithm that reads a list of numbers and displays the count of
the negative and positive numbers in the list
Explain Call by Value and Call by Reference.
08
06
Q.4 Answer the followings
Explain the various decision making statement in C with an example for
each.
Write a program to get an integer from the user. If the number is even and
two digit number then print the message "Thank you" else display the
message "Bye"
08
06
Q.5 Answer the followings
Define a structure called "Cricket" that will describe the following
information.
Player name, team name and batting average. Using Cricket, declare an
array with 50 elements and write a program to read the information of all
the players and print the same information in tabular form.
What is preprocessor? Write use of any three preprocessor.
08
06
Q.6 Answer the following
Write a program to demonstrate use of array as function argument.
Discuss the unary operators in C language.
08
06
Q.7 Answer the following
Discuss structure and union
Write a program to print the following output
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
06
08
Page 2 of 2
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