Exam Details

Subject problem solving and computer programming
Paper
Exam / Course mca
Department
Organization apj abdul kalam technological university
Position
Exam Date July, 2018
City, State kerala, thiruvananthapuram


Question Paper

A A1811 Pages: 2
Page 1 of 2
Reg
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIRST SEMESTER MCA DEGREE EXAMINATION, JULY 2018
Course Code: RLMCA101
Course Name: PROBLEM SOLVING AND COMPUTER PROGRAMMING
Max. Marks: 60 Duration: 3 Hours
PART A
Answer all questions, each carries 3 marks Marks
1 What do you mean by the scope of a variable within a program? What will be
the output of the following program?
int x 10;
main()
int x 20;
printf("%d",


show()
printf("%d",

2 Differentiate between malloc() and calloc() functions in C.
3 With example explain the use of break and continue statements in C.
4 What is the difference between passing by value and passing by reference?
5 What are Self referential structures? Explain.
6 Write the output of the following program.
void main()

int
x 0
ptr
y
*ptr


7 How are command line arguments passed to a C program?
8 What is a macro? Compare macros and functions.
PART B
Answer six questions,one full question from each module and carries6 marks
Module I
9 You have 5 bottles of pills. Each pill weighs 10gms, except for contaminated pill
contained in one bottle, where each pill weighs 9gms. How could you tell which
bottle had the contaminated pills in just one measurement.

What are library functions? How are library functions accessed in Are the
library functions a part of C language?

A A1811 Pages: 2
Page 2 of 2
OR
10 What do you mean by structured programming? Explain the principles of
structured programming.

Module II
11 Describe with example the use of conditional operator in C.
How the following C statements are interpreted?( where is string, is an
integer variable and is a float variable).
scanf("
scanf("
scanf(" m

OR
12 Write a C program to accept a string and display it in the reverse order without
using strrev function. Also print the sum of ASCII values of the characters in the
string?

Module III
13 Write a user defined function in C to find the average of the numbers stored in an
array?

What is the purpose of the return statement? Can a function return multiple
values?

OR
14 What do you mean by recursion? Write a recursive function to generate the prime
numbers less than 10.

Module IV
15 Write a C program to replace a substring with another string in a given line of
text.

OR
16 Create a structure to store roll no, name and array of marks in 3 subjects for 10
students. Write a C program to display the details of the students who secured
more than 80% of marks.

Module V
17 Write a program using pointers to count the number of words and number of
characters in a line of text.

Distinguish between array of pointers and pointer to an array?
OR
18 Write a program using array of pointers to find the difference of the
corresponding elements of two tables of integers.

Module VI
19 What do you mean by bitwise operations? Describe the logical bitwise operators.What is the purpose of each?

OR
20 Write a program to remove all the comments from a C program file.



Other Question Papers

Subjects

  • advanced database systems
  • advanced java programming
  • application development andmaintenance
  • applied probability and statistics
  • applied statistics lab
  • big data technologies
  • business intelligence and its applications
  • computational science
  • computer networks
  • computer organization andarchitecture
  • data structures
  • data structures lab
  • database lab
  • database managementsystems
  • design and analysis of parallel algorithms
  • design and analysis ofalgorithms
  • digital fundamentals
  • discrete mathematics
  • elective i
  • functional programming
  • introduction to machine learning
  • mobile application developmentlab
  • mobile computing
  • object oriented programming
  • object oriented programminglab
  • operating systems
  • operations research
  • principles of management
  • problem solving and computer programming
  • programming lab
  • software engineering
  • system design lab
  • web programming
  • web programming lab