0% found this document useful (0 votes)
2 views

Manipal_MCA_C_Programming_Model_Question Paper

The document outlines the syllabus for the Programming in C course (DCA6110) for the Master of Computer Applications (MCA) program, Semester I. It includes multiple-choice questions, short answer questions, and long answer questions covering various topics such as variable names, operators, recursion, and memory allocation. Students are instructed to answer all questions in the specified format on separate answer sheets.

Uploaded by

ameentoyz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Manipal_MCA_C_Programming_Model_Question Paper

The document outlines the syllabus for the Programming in C course (DCA6110) for the Master of Computer Applications (MCA) program, Semester I. It includes multiple-choice questions, short answer questions, and long answer questions covering various topics such as variable names, operators, recursion, and memory allocation. Students are instructed to answer all questions in the specified format on separate answer sheets.

Uploaded by

ameentoyz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PROGRAMME MASTER OF COMPUTER APPLICATIONS (MCA)

SEMESTER I

COURSE CODE & NAME PROGRAMMING IN C DCA6110

Section A
Multiple Choice Questions (2 Marks each)
[Please answer all the questions]

1. Which of the following is not a valid C variable name?


a) int number;
b) float number;
c) int $main;
d) char c;

2. __________ is used in finding the location of the record with the given key value.
a) searching
b) traversing
c) sorting
d) deleting

3. Keywords are the ______ words of a programming language.


a) Fixed
b) Reserved
c) forbidded
d) revered

4. The conditional operator (?:) takes _____ operands.


a) 1
b) 2
c) 3
d) 4
5. We cannot have 2 or more recursive functions in a program.
a) TRUE
b) FALSE
6. What is the scope of an automatic variable?
a) Within the block it appears
b) Within the blocks of the block it appears
c) Until the end of program
d) Within the block it appears
7. Automatic variables are allocated space in the form of a __________
a) stack
b) queue
c) priority queue
d) random
8. Which of the following is a storage specifier?
a) enum
b) union
c) auto
d) volatile
9. Structure members need to be linked to the structure variables in order to make them
meaningful members
a) TRUE
b) FALSE
10. Which one of the following is correct syntax for opening a file.
a) FILE *fopen(const *filename, const char *mode)
b) FILE *fopen(const *filename)
c) FILE *open(const *filename, const char *mode)
d) FILE open(const*filename)

Section B
SHORT ANSWERS (5 Marks each)
[Please answer Any Four questions in a separate page answer sheet especially provided for this purpose]

1. Write a note on integer constants and Real constants.


2. What are bitwise operator?
3. What is recursion? Discuss with an example.
4. Discuss array of pointers.
5. Explain the concept of dynamic memory allocation.
6. Discuss the characteristics and building blocks of an Algorithm.
Section C
LONG ANSWERS (10 Marks each)
[Please answer Any Three questions in a separate page answer sheet especially provided for this purpose]

1. What are the major components of a C program?


2. What is the precedence of operators? How are expressions evaluated using the precedence?
3. What is the difference between function declaration and function definition?
4. How do you declare a pointer to a floating point quantity and a double precision quantity?
Illustrate it.
5. What is the difference between structures and Union?

You might also like