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

Problem Solving Using CMarch 2015

Bsc computer science previous year question paper Calicut University

Uploaded by

anagha.raj1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Problem Solving Using CMarch 2015

Bsc computer science previous year question paper Calicut University

Uploaded by

anagha.raj1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

D 92845 (Pages: 2) Name......................................

R.eg. No..................................
FIRST SEMESTER B.Sc., DEGREE EXAMINATION, NOVEMBER 2015
(CUCBCSS-UG)
Core Course
Computer Science
BCS lB 01-PROBLEM SOLVING USING C
Time : Three Hours Maximum : 80 Marks

I. Answer the following :-


1 What is the output of the following code?
#include<stdio.h>
void main()
{int X = 97;
int y = sizeof (x++);
printff"X is %d", x) ;
}
2 What is mixed mode arithemetic?
3 What is recursive function?
4 What will be the value of Z in the sample code given below?
intz,x = 5,y = -10, a= 4, b = 2;
Z =x++ ___y* bl a ;
5 What is the purpose of register storage class?
6 What is top-down design?
7 How string variables are declared?
8 What are formal arguments?
9 Define structure.
10 What are files?
(10 x 1 = 10 marks)
II. Answer all questions :
11 What is a flowchart? Draw a flowchart to find the sum of first n natural numbers.
12 What are exit control loop? Explain with example.

Turn over
2 D 92845

13 Compare static and automatic variables.


14 Which are the different types of user defined functions?
15 Write a problem to find the factorial of a number.
(5 x 2 = 10 marks)
III. Answer any five questions :-
16 Explain the input and output statements used in C.
17 Write a program to check whether a number is palindrome or not.
18 With an example explain how will you declare and initialize two dimensional arrays ?
19 Explain the concept of call by value and call by reference with suitable example.
20 Write a program to read the age of n persons and count the number of persons in the age
group 50 to 60 using for and continue statements.
21 Write a program to find the biggest element in an array of elements using function.
22 Differentiate between structure and union with suitable examples.
23 Write a program to display the prime numbers in a list of numbers.
(5 x 8 = 40 marks)
IV. Answer any five questions:
24 What are constants? Explain the four basic types of constants with suitable examples.
25 Explan the following :-
(a) Precedence and associativity.
(b) Arrays of structures.
(c) Multidimentional arrays.
26 \Vhat are pointer expressions ? Write a program using pointers to compute the sum of all
elements stored in an array.
27 (a) Write a program to read a line of text and output the number of words and chaz:acters.
(b) Write a program to find prime numbers between 50 and 500.
28. (a) Write the syntactic rule associated with the 'for' statement.
(b) Write a loop that will examine each character in a character type array and determine
how many characters are vowels and how many are consonants.
29 Explain the general format of {seek function? Write a program to copy the content of one file
into another.
30 Write a function using pointers to add two matrices and to return the resultant matrix to the
calling function.
31 What are sequential files? Explain file handling functions with suitable examples.
(5 x 8 = 40 marks)

You might also like