University of Calicut Previous Years Question Paper & Answer

University : University of Calicut
Course : B.Sc

Semester : SEMESTER 1

Year : 2014

Term : NOVEMBER

Branch : COMPUTER SCIENCE

Scheme : 2020 Full Time

Course Code : BCS 1B 01

Page:2





PDF Text (Beta):

11.

111.

4५५

2 D 74361

Answer all questions :
11 Explain any four types of operators in C.
12 What are the characteristics of a good program ?
13 How one dimensional and two dimensional arrays are initialized ?
14 Write a program to find whether a number is odd or even without using else statement.
15 Define a program loop. Write the steps included in the looping process.

(5 x 2 = 10 marks)
Write any five questions.
16 What are symbolic constants ? How it is defined ?
17 Write an algorithm and flowchart for finding first and second largest of n numbers.
18 Write a program to display the prime numbers ill a list of numbers.
19 Explain the scope and lifetime of any three storage classes in C.
20 Explain the syntax and execution of for loop.
21 Write a program to compute the sum of digits of a given integer number.
22 Explain any two string handling functions with example.
23 Write a program which will read a text and count all occurrences of a particular word.

(5 x 4= 20 marks)

Answer any five questions :
24 What are data types in C ? Explain the different types of data types with examples.

25 (a) What is the difference between passing by value and passing by reference ? To what types
of arguments does each apply ?

(b) Write a function that calculate and display the real rods of the quadratic equation

०४2 + ९.८ + ८ = 0.
26 Explain:
(a) Nested structure ; (b) Array of structures ;

(c) size of structure.

27 Write a program using pointers to read in an array of integers and print its elements in
reverse order.

28 Write a function program that allow a floating point numbers to be raised to an integer
11
power, y ‏ایر‎

29 Define a file. Explain the basic tile operations.

30 What is meant by dynamic memory allocation? Write a program to store a character sting in
a block of memory space created by malloc and then modify the same to store a larger string.

31 (a) Write a program to merge two sorted arrays in to a single sorted array in ascending order.
(b) Write a function to remove displicates from an ordered array.
(5 x 8 = 40 marks)

Similar Question Papers