Exam Details

Subject programming using - c
Paper
Exam / Course m.c.a.science
Department
Organization solapur university
Position
Exam Date November, 2017
City, State maharashtra, solapur


Question Paper

M.C.A. (Semester (CBCS) Examination Oct/Nov-2017
Science
PROGRAMMING USING C
Day Date: Saturday, 18-11-2017 Max. Marks: 70
Time: 10.30 AM to 01.00 PM
Instructions: Question No.1 and 2 are compulsory.
Attempt any 3 questions from Q. No. 3 to Q. No. 7.
Figures to the right indicate full marks.
Q.1 Choose correct alternatives: 10
What is the output of the following program?
#include <stdio
void main()

int x
Continue: printf("
Hello");
If(
goto gen;
gen: printf("Student");

Hello Hello Student
Student None of the above
A character variable can at a time store
1 character 8 characters
254 characters None of these
The expression x 4 − 8 evaluates to
6
4 None of the above
What is the output of the following program?
#include <stdio.h>
void main(

int a 300,
if
b a
c 200;
Printf b,c

Compiler error 400 300
300 200 200 300
Every C program contain
Two functions Three functions
At least one function More than three functions
A float occupies in memory.
4 bits 2 bytes
32 bits 16 bits
Page 2 of 3
SLR-SM-2
A variable's storage class tells us:
Where the variable would be stored.
What is the scope of the variable; i.e. in which functions the value
of the variable would be available.
What is the life of the variable; i. e. how long would the variable
exist.
All c
Which of the following is not feature of a variable defined to have an
automatic storage class?
Storage CPU registers
Default initial value An unpredictable value.
Scope Local to the block in which the variable is defined.
Life Till the control remains within the block in which the
variable is defined.
What is the output of the following program?
#include <stdio.h>
void main()

int a 300,
if
b 300;
c 200;
printf

Complier error 400 300
300 200 200 300
10) All macro substitutions in a program are done
Before compilation of the program
After compilation
During execution
None of these
State whether true or false. 04
A variable name in C cannot start with digit.
The statements within the while loop would keep on getting executed
till the condition being tested remains true.
In switch statement multiple cases cannot use same expression.
Every C program contains exactly one function.
Q.2 Write short notes on the following: 08
Precedence order of operator evaluation.
Recursion
Answer the following: 06
Enlist features of C languages.
Write the algorithm to find sum of any 5 numbers.
Q.3 Answer the following:
Explain else' statement. 06
If cost price and selling price of an item is input through the keyboard,
write a program to determine whether the seller has made profit or
incurred loss. Also determine how much profit he made or loss he
incurred.
08
Page 3 of 3
SLR-SM-2
Q.4 Answer the following:
Describe the use of break and continue statements with suitable
example.
06
Write a program to print ASCII values of A to Z. 08
Q.5 Answer the following:
Explain different data types used in C language? 06
What are the different input and output functions used in C language? 08
Q.6 Answer the following:
What is array? How to declare array? Explain with suitable example. 06
Explain different storage class specifies in C. 08
Q.7 Answer the following:
What is a pointer? Explain pointer to structure in detail. 06
Explain any four string handling functions with example. 08


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